Newton invented a formula for calculating the force of attraction between two bodies. He used it to calculate the force needed to keep the moon moving around the earth. Then he compared it with the force that made the apple fall downward. After allowing for the fact that the moon is much farther from the earth, and has a much greater mass, he discovered that the forces were the same. The moon is held in an orbit around the earth by the pull of earth’s gravity.