We employ the continuum theory of granular materials due to Goodman and Cowin and some experimental results due to P. G. Nutting to arrive at a functional from for the free energy of granular materials in static equilibrium. The results obtained indicate the dominance of gravitational effect, modify and enlarge the results previously obtained by J. T. Jenkins.