An analytic potential energy model was presented to calculate the energy levels of the quasi bi-dimen- sional electron gases in the GaAs-Ga1-xAl_xAs modulation-doped heterojuctions.The calculated results are in agreement with those of self-consistent calculations.The wave functions as well as the potential energy can be expressed analytically.It is an easy and practical way to calculate the energy levels with this analytic model.