It is usually calculated by assuming that the Earth is a perfect sphere and then by using Newton's law of universal gravitation to find the force on an object at the surface of the Earth. Input parameters are the gravitational constant and the radius and mass of the Earth.