In this paper, the problem of magnetohydrodynamics (MHD) boundary layer flow of nanofluid with heat and mass transfer through a porous media in the presence of thermal radiation, viscous dissipation and chemical reaction is studied. Three types of nanofluids, namely Copper (Cu)-water, Alumina (Al 2 O 3)-water and Titanium Oxide (TiO 2)-water are considered. The governing set of partial differential equations of the problem is reduced into the coupled nonlinear system of ordinary differential equations (ODEs) by means of similarity transformations. Finite element solution of the resulting system of nonlinear differential equations is obtained using continuous Galerkin-Petrov discretization together with the well-known shooting technique. The obtained results are validated using MATLAB “bvp4c” function and with the existing results in the literature. Numerical results for the dimensionless velocity, temperature and concentration profiles are obtained and the impact of various physical parameters such as the magnetic parameter M, solid volume fraction of nanoparticles 𝜙 and type of nanofluid on the flow is discussed. The results obtained in this study confirm the idea that the finite element method (FEM) is a powerful mathematical technique which can be applied to a large class of linear and nonlinear problems arising in different fields of science and engineering.