In this paper, we introduce an algorithm to solve the Advection equation by finite element method. In this method, we have chosen Three pattern of cubic B-Spline to approximate the nonlinear solution to convert the nonlinear PDE into a system of ODE, Then we solved this system equation by SSP-RK54 method, And we made a program implementing this algorithm and we checked the program using some examples, which have exact solutions, then we evaluate our results. As a conclusion we found that this method gives accurate results for advection equation.