An analysis has been implemented to study the influences of nonconstant viscosity and magnetohydrodynamics on pseudoplastic nanofluid through a porous medium. Ohmic dissipation, chemical reaction, and heat generation are taken into consideration. The current problem is debated under the molds of tiny or zero R e and δ approximation. Two models of nonconstant viscosity are deliberated. Model (I)-all parameters are nondimensional and have been measured as constants inside the flow. Model (II)-all these stated nondimensional parameters have been considered to differ with the temperature. Comparison among the solutions achieved by utilizing numerical results and multi-step differential transform method (Ms-DTM) is displayed in excellent agreement. Attention is dedicated to β, η-, and N b parameters. The governing equations for each case have been explained by an easy and highly perfect series established seminumerical Ms-DTM utilizing Mathematica 11, which uses mathematical software package. Nanofluids are active for drug carrying and drug delivery systems because of the N b control with the velocity of fluid. K E Y W O R D S heat generation, Ms-DTM, Ohmic dissipation, peristaltic flow, pseudoplastic nanofluid, temperature-dependent viscosity, Ms-DTM