A new method for calculating the work function of the crystal faces of elemental metals from first principles, using the uncertainty principle and the concept of a surface2-D electron gas, is developed. Results for tungsten and aluminum are presented and shown to be in good agreement with experimental values.