In this paper, impacts of magnetic field and porosity on the entropy generation of sodium-alginate (C6H9NaO7) fluid are studied. C6H9NaO7 is taken over a moving and heated vertical wall. Heat transfer is due to free convection. Initially, the problem is formulated in the form of PDEs along with physical conditions and then written in non-dimensional form. Problem is solved via Laplace transform and expression in analytical form is established for temperature and velocity field. The related relations for entropy generation and Bejan number and entropy generation are also examined. Nusselt number and Skin-friction are calculated and plotted in graphs. For numerical computations, a finite difference scheme is used using MATLAB software. The results in tables and graphs are discussed for embedded parameters. It is found that the magnetic field and porosity have strong influence on velocity, entropy generation and Bejan number. For greater Hartman number, entropy generation magnitude is greater compared to the Bejan number, conversely, this variation in Bejan number is more efficient. The porosity effect showed that if the medium is more porous, the entropy generation can decreases 50% when porosity increase from Ka = 1 to Ka = 2, however the Bejan number increases.