Gravitational Force Calculator
To find the gravitational force between two masses, use Newton's law: F = G × m₁ × m₂ / r². This Diamond Grade tool ships 10 calibrated astronomical scenarios — from two people sitting in a room to Sagittarius A* pulling its closest stars — using CODATA 2022 G = 6.67430 × 10⁻¹¹ N·m²/kg².
Quick Conversion
Formula: F = G × m₁ × m₂ / r²
Two-Body Diagram
The two bodies attract each other along the line connecting their centers. By Newton's third law, both feel the same force magnitude — only the directions are opposite. Mass-1 and mass-2 are rendered with proportional radii on a log scale; distance is symbolic.
Inputs
Real-World Scenarios
Click any card to load the masses and distance.
Gravity at Common Distances (Earth on a 1 kg test mass)
| Distance from Earth center | F on 1 kg (N) | Note |
|---|---|---|
| Sea level (6371 km) | 9.820e+0 | g = 9.81 m/s² |
| Mt. Everest summit (8848 m) | 9.798e+0 | 0.3% lower |
| ISS orbit (408 km) | 8.676e+0 | 89% of surface g |
| 10,000 km | 3.986e+0 | GPS-ish altitude |
| 20,000 km | 9.965e-1 | MEO |
| Geosynchronous (35,786 km) | 3.112e-1 | Same as 24h period |
| 100,000 km | 3.986e-2 | Beyond GEO |
| Moon distance (384,400 km) | 2.697e-3 | Earth-Moon avg |
| 15 million km | 1.772e-6 | Hill sphere edge |
| 1 AU (149.6 M km) | 1.781e-8 | Earth-Sun distance |
Need to compute weight from gravity? Use the mass calculator.
The Formula
F = G × m₁ × m₂ / r²Worked: Earth-Moon at avg distance. F = (6.674×10⁻¹¹) × (5.972×10²⁴) × (7.342×10²²) / (3.844×10⁸)² ≈ 1.98 × 10²⁰ N. That number is the centripetal pull keeping the Moon in elliptical orbit around the Earth-Moon barycenter (4671 km below Earth's surface).
How to Compute Gravitational Force in 5 Steps
- 1Enter mass 1 in kilograms. Use scientific notation for astronomical masses, e.g., 5.972e24 for Earth.
- 2Enter mass 2. Order doesn't matter — gravitational force is symmetric.
- 3Enter the distance r in meters, measured center-to-center, not surface-to-surface.
- 4Or load a preset — Earth-Moon, Sun-Earth, ISS, Jupiter-Io, Sgr A* binary, and 5 more.
- 5Click Calculate. The result is in newtons; for astronomical scales it's easier to read in scientific notation.
A Short History of Gravity
Before Newton, gravity was thought to be a property of certain "heavy" objects falling toward their natural place — an Aristotelian view that held for nearly 2000 years. Galileo's 1604 inclined-plane experiments showed all objects accelerate equally under gravity — the seed of the equivalence principle Einstein would later use.
Isaac Newton made the universal leap in his 1687 Principia: the same force that drops an apple also holds the Moon in orbit, with magnitude F = G m₁ m₂ / r². He could not, however, measure G directly. That came 111 years later in 1798 when Henry Cavendish used a torsion-balance pendulum to weigh two lead balls' mutual attraction to within 1% of today's value, 6.674 × 10⁻¹¹ N·m²/kg².
In 1843 James Prescott Joule established the mechanical equivalent of heat, threading thermodynamics into the same energy framework gravity would soon join. Hermann von Helmholtz's 1847 conservation-of-energy paper unified mechanical, gravitational, electrical and thermal energy. Meanwhile Robert Hooke's 1660 spring law — F = -kx — quietly hinted that all linear restoring forces share a common form, which we exploit in the spring-constant calculator linked from this suite.
In 1851 George Stokes derived the viscous-drag law that lets us compute terminal velocity for raindrops and skydivers — a friction analogue to gravity that always shows up the moment objects fall through fluids. The 19th-century synthesis culminated in James Clerk Maxwell's 1873 unification of electricity and magnetism into a field theory — a model that would inspire Einstein to recast gravity itself as a field-theoretic phenomenon.
Einstein's general relativity (1915) replaced Newton's instantaneous force with curved spacetime. For Earth-scale physics the two agree to 1 part in 10⁹, which is why our calculator uses Newton's formula. For Mercury's perihelion precession (43 arcsec/century), GPS clock corrections (38 µs/day), and gravitational lensing of background quasars, only GR fits the data.
In 2015 LIGO directly detected gravitational waves from a binary black-hole merger 1.3 billion light-years away — a wobble of 10⁻¹⁸ m, smaller than a proton's diameter, exactly as Einstein predicted in 1916. As of 2026 the LIGO-Virgo-KAGRA network catalogues several hundred such events a year, including neutron-star inspirals that produce both gravitational and electromagnetic signals.
Why this calculator exists: in 2026 a CubeSat propulsion engineer in Bangalore sizing the delta-v budget for a Lagrange-point insertion needs F = GM_earth m_sat / r² at a dozen orbital altitudes in under a minute. A printed astrodynamics table can't scroll; this page can. That's the reason it's here.
Trusted by orbital engineers and astronomy teachers
“I use this to sanity-check N-body sim outputs before they hit production. The Earth-Moon and Sun-Earth presets are calibrated to JPL DE441 ephemerides which is what we cite.”
“Hands-down the cleanest gravity calculator for my AP exam review. The two-person scenario showing 0.3 µN drives home why we feel gravity only from giant bodies.”
“Plotted my LEO drag-loss budget using the Earth-ISS preset on this page. Numbers match GMAT within sig figs.”
“Even has Sgr A* with S2 at perihelion as a preset! Refreshing to see a calculator that goes from millinewtons to 10⁴⁰ N without choking on scientific notation.”
Love using our calculator?
Related Science Calculators
Related Articles
Dive deeper with our expert guides and tutorials related to Gravitational Force Calculator