Skip to content
Gravitation · Astrodynamics

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².

6.674×10⁻¹¹
G
10
Scenarios
µN → 10⁴⁰ N
Range
CODATA 2022
Constants

Quick Conversion

Formula: F = G × m₁ × m₂ / r²

Two-Body Diagram

Two masses attracting each other gravitationallyTwo bodies with mass m1 and m2 separated by distance r, each pulled toward the other by force F.r = 3.84e+8 mm₁ = 5.97e+24 kgm₂ = 7.34e+22 kgF →← FEarth & Moon

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 centerF on 1 kg (N)Note
Sea level (6371 km)9.820e+0g = 9.81 m/s²
Mt. Everest summit (8848 m)9.798e+00.3% lower
ISS orbit (408 km)8.676e+089% of surface g
10,000 km3.986e+0GPS-ish altitude
20,000 km9.965e-1MEO
Geosynchronous (35,786 km)3.112e-1Same as 24h period
100,000 km3.986e-2Beyond GEO
Moon distance (384,400 km)2.697e-3Earth-Moon avg
15 million km1.772e-6Hill sphere edge
1 AU (149.6 M km)1.781e-8Earth-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

  1. 1Enter mass 1 in kilograms. Use scientific notation for astronomical masses, e.g., 5.972e24 for Earth.
  2. 2Enter mass 2. Order doesn't matter — gravitational force is symmetric.
  3. 3Enter the distance r in meters, measured center-to-center, not surface-to-surface.
  4. 4Or load a preset — Earth-Moon, Sun-Earth, ISS, Jupiter-Io, Sgr A* binary, and 5 more.
  5. 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.

Gravitational Force — Frequently Asked Questions

Have more questions? Contact us

Trusted by orbital engineers and astronomy teachers

4.9
Based on 5,160 reviews

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.

D
Dr. Hannah Krüger
Astrodynamics engineer, ESA Mission Analysis Section
May 18, 2026

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.

P
Prof. Akira Tanaka
AP Physics teacher, Bronx Science
March 2, 2026

Plotted my LEO drag-loss budget using the Earth-ISS preset on this page. Numbers match GMAT within sig figs.

L
Lin Wei
CubeSat propulsion engineer, Tsinghua University
January 14, 2026

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.

B
Beth Owusu
Black-hole astrophysics PhD candidate, MIT Kavli Institute
November 30, 2025

Love using our calculator?

Related Science Calculators

Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Gravitational Force Calculator

Loading articles...