Following Newton’s law, the force F between two masses m1 and m2, separated by a distance r, is given by F = Gm1m2/r2, where G is the gravitational constant. The gravitational acceleration, g, is then given by g = F/m1 = Gm2/r2 and is measured in gravity units.