What it does
Every mass attracts every other mass. This calculator uses Newton's law of universal gravitation to find that force for any two objects, whether it's two spacecraft, a person and Earth, or Earth and the Moon. It can also work backward to a mass or a distance. You can type very large or small numbers in scientific notation, like 5.9722e24.
How it's calculated
G = 6.674 30 × 10−11 m3 kg−1 s−2 (CODATA 2022)
r = √(G × m₁ × m₂ ÷ F) · m₁ = F × r2 ÷ (G × m₂)
F is in newtons, the masses in kilograms and r in meters. r is measured between the centers of the two objects, so for something on Earth's surface it's Earth's radius, not zero. G is the Newtonian constant of gravitation; the value used here is the CODATA 2022 recommended value published by NIST, with an uncertainty of ±0.000 15 × 10−11. It's the least precisely known of the fundamental constants. The calculator also shows each object's acceleration toward the other: a = F ÷ m.
Worked examples
- Two spacecraft: two 9,000 kg vehicles 10 m apart (the OpenStax example). F = 6.6743 × 10−11 × 9,000 × 9,000 ÷ 102 = 5.41 × 10−5 N, about the weight of a few grains of sand.
- You and Earth: a 70 kg person on Earth's surface. Earth's mass is 5.9722 × 1024 kg and its mean radius is 6,371 km (NASA). F = 6.6743 × 10−11 × 70 × 5.9722 × 1024 ÷ (6.371 × 106)2 = 687.4 N, which is the person's weight. Dividing by 70 kg gives 9.82 m/s2, matching NASA's mean surface gravity.
- Earth and Moon: with the Moon's mass of 7.346 × 1022 kg and a distance of 384,400 km, F ≈ 1.98 × 1020 N.
Getting a realistic number
- Measure from the centers. For spheres, Newton's law treats each one as if all its mass were at its center. For odd shapes that are close together, it's only an approximation.
- Gravity between everyday objects is tiny. Two 1 kg masses 1 m apart pull with only 6.67 × 10−11 N. You'll only notice gravity when at least one mass is planet-sized.
- Very strong gravity near black holes or neutron stars needs general relativity, not Newton's law.