Numerical solution of Euler–Euler model using different in-house, open source and commercial software can generate significantly different results, even when the governing equations and the initial and boundary conditions are exactly same. Unfortunately, the underlying reasons have not been identified yet. In this article, three methods for calculating the granular pressure gradient term are presented for two-fluid model of gas–solid flows and implemented implicitly or explicitly into the solver in OpenFOAM®: Method assumes that the granular pressure gradient is equal to the elastic modulus plus the solid concentration gradient; Method directly calculates the gradient using a difference scheme; Method , which is proposed in this work, calculates the gradient as the sum of two partial derivatives: one related to the solid volume fraction and the other related to the granular energy. Obviously, only Methods and are consistent with kinetic theory of granular flow. It was found that the difference between all methods is small for bubbling fluidization. While for circulating fluidization, both Methods and are capable of capturing non-uniform structures and producing superior results over Method . The contradictory conclusions made from the simulation of different fluidization regimes is due to the different contribution of the term related to the granular energy gradient. Present study concludes that the implementation method of granular pressure gradient may have a significant impact on the hydrodynamics of gas–solid flows and is probably a key factor contributing to the observed differences between different simulation software.