Every mass in the universe attracts every other mass. Newton's law of universal gravitation puts a number on that pull: it grows with the product of the two masses and falls with the square of the distance between them. The same law that holds your feet on the ground keeps the Moon in orbit and the Earth circling the Sun.
This gravitational force calculator applies the law in two ways. In force mode, enter two masses and the distance between their centres, or choose a preset pair (Earth–Moon, Earth–Sun, a person standing on Earth), and get the force in newtons with scientific notation, plus the acceleration each body receives. With Solve for you can work backwards: what distance gives a certain force, or what mass is needed.
In surface gravity mode, the calculator finds g = GM/R² for the Earth, the Moon, Mars, Jupiter, the Sun or any body whose mass and radius you enter, together with the weight of a 70 kg person there and the escape velocity. The masses and radii of the presets come from NASA's planetary fact sheets and the gravitational constant from CODATA.
How to use this calculator
- Choose Force between two masses or Surface gravity.
- Force: pick a preset pair or enter m₁, m₂ and the distance r between centres. Scientific notation is accepted (5.9722e24).
- Surface gravity: pick a body or choose Other and enter its mass M and radius R.
- Read the force (or g), switch units if needed, and open the steps to see the calculation.
- Use Solve for to find the distance or a mass for a given force, or the mass or radius for a given g.
The formula
Newton's law of universal gravitation:
where is the distance between the centres of mass. Rearranged: and .
At the surface of a spherical body of mass and radius , the force on a mass is , so
and the escape velocity is . Each body receives an acceleration ; the two forces are equal and opposite.
Worked example
Two people. Two people of 70 kg and 60 kg standing 1 m apart attract each other with ≈ 2.803 × 10⁻⁷ N, far too small to notice.
Earth and Moon. With M = 5.9722 × 10²⁴ kg, m = 7.346 × 10²² kg and r = 384,400 km, ≈ 1.982 × 10²⁰ N. Between the Earth and the Sun (1 AU), it reaches 3.542 × 10²² N.
Your weight. A 70 kg person on the Earth's surface (R = 6,371 km) is pulled with 687.4 N, the weight measured by a scale.
Surface gravity. gives 9.82 m/s² for the Earth, 1.624 m/s² for the Moon, 3.73 m/s² for Mars and 25.92 m/s² for Jupiter. The Earth's escape velocity is 11.19 km/s.
Why gravity is so weak — and so strong
The constant is tiny, so the attraction between everyday objects is minute: Henry Cavendish needed a delicate torsion balance in 1798 to detect it between lead spheres. Gravity only dominates when at least one mass is enormous, like a planet. Because it falls with , doubling the distance divides the force by four; at the Moon's distance, about 60 Earth radii, the Earth's pull is about 3,600 times weaker than at the surface. The potential energy calculator and the free fall calculator use the surface value of g, which this law explains.
Gravitational force, weight and g
Weight is simply the gravitational force a planet exerts on you, , so a 70 kg person weighs about 687 N on Earth but only about 114 N on the Moon, with the same mass. The force is measured between centres of mass, which for spheres lies at their centres: that is why , not zero, is the distance for an object resting on the ground. Accelerations measured in multiples of g are covered by the g-force calculator, and a pendulum offers a classic way to measure g itself.
Frequently asked questions
What is the gravitational constant G?
G = 6.67430 × 10⁻¹¹ N·m²/kg² (CODATA 2018, unchanged in the 2022 adjustment). It is one of the least precisely known fundamental constants, with a relative uncertainty of about 2 × 10⁻⁵.
What is the gravitational force between the Earth and the Moon?
About 1.982 × 10²⁰ N, using NASA's masses and the mean distance of 384,400 km. This force supplies the centripetal acceleration that keeps the Moon in orbit.
How does distance affect gravitational force?
Through an inverse-square law: double the distance and the force drops to a quarter; triple it and it drops to a ninth. Doubling one of the masses doubles the force.
Why is surface gravity on Earth 9.82 and not 9.81?
GM/R² with the mean radius gives about 9.82 m/s². The Earth’s rotation reduces the felt value, especially at the equator, and its flattening changes the radius, so measured gravity ranges from about 9.78 to 9.83 m/s². The standard value 9.80665 is a convention.
Can the formula be used for objects that are not spheres?
Exactly only for point masses and spherical bodies. For other shapes it is a good approximation when the distance is large compared with their size; otherwise the attraction has to be added up piece by piece.
Sources
- OpenStax University Physics Vol. 1 — 13.1 Newton’s Law of Universal Gravitation
- OpenStax University Physics Vol. 1 — 13.2 Gravitation Near Earth’s Surface
- NIST CODATA — Newtonian constant of gravitation G = 6.67430 × 10⁻¹¹ m³ kg⁻¹ s⁻²
- NASA NSSDC — Earth fact sheet
- NASA NSSDC — Moon fact sheet
- NASA NSSDC — Sun fact sheet
Last updated: