In this article, we have discussed two-dimensional steady, incompressible, and laminar hydromagnetic flow along with the transfer of heat above a plane plate that contains water and ethylene glycol-based nanofluids with multi- and single-wall CNTs. The velocity slip boundary condition is included in this research article to evaluate the nature of flow. The plate surface is subjected to variable wall temperature. The transfer of heat has been contemplated in the company of suspended CNTs above a flat plate. Navier–Stokes and the concept of the Prandtl boundary layer have been used to determine the governing equations of heat transfer and flow. Since the attained governing equations representing energy and flow are nonlinear PDEs, they are altered into nonlinear ODEs accompanied by analogous boundary limitations by applying some appropriate similarity transformations. Hence the "RK45" function is used to solve them numerically. The influence of governing parameters on the dimensionless flow and heat transfer profiles are studied and discussed thorough graphical plots .