Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Gravity calculator

Find the pull of gravity between any two masses, from people to planets, or solve for a mass or the distance between them.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Lifting something near the surface? The potential energy calculator uses mgh.

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

F = G × m₁ × m₂ ÷ r2
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.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • Two 9,000 kg craft 10 m apart: 5.40618 × 10⁻⁵ N ✓
  • Two 1 kg masses 1 m apart: G = 6.6743 × 10⁻¹¹ N ✓
  • 70 kg on Earth's surface (6,371 km): 687.421 N ✓
  • Scientific notation: Earth and Moon pull with 1.98164 × 10²⁰ N ✓
  • Solving for distance: 1 kg, 1 kg and G newtons is 1 m ✓
  • A distance of zero is refused ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking cookies, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What is Newton's law of universal gravitation?

Any two masses attract with a force F = Gm₁m₂/r². The force grows with each mass and falls with the square of the distance between their centers.

What is the value of G?

6.674 30 × 10⁻¹¹ m³ kg⁻¹ s⁻² (CODATA 2022, from NIST), with an uncertainty of 0.000 15 × 10⁻¹¹. Textbooks often round it to 6.67 × 10⁻¹¹ N·m²/kg².

What happens to gravity if the distance doubles?

It drops to a quarter, because of the r² in the denominator. Triple the distance and it drops to a ninth.

Is G the same as g?

No. G is a universal constant. g is the acceleration from gravity at a particular place, about 9.8 m/s² at Earth's surface. They're linked by g = GM ÷ r².

Why don't I feel the gravity of objects around me?

Because it's tiny. Two 70 kg people 1 m apart attract with about 3.3 × 10⁻⁷ N, far too small to notice next to Earth's pull of about 687 N.

Related calculators