Gravitational Force Calculator

Compute the gravitational attraction between two masses using F = G·m₁·m₂ / r². Visualize the interaction, understand the inverse-square law, and explore real astronomical examples.

Kilograms (kg)
Kilograms (kg)
Meters (m) center‑to‑center separation
Gravitational constant G = 6.67430 × 10⁻¹¹ N·m²/kg²
? Earth (70 kg person) : m₁ = 5.972e24 kg, m₂ = 70 kg, r = 6.371e6 m
?? Earth-Moon : m₁ = 5.972e24 kg, m₂ = 7.342e22 kg, r = 3.844e8 m
☀️? Sun-Earth : m₁ = 1.989e30 kg, m₂ = 5.972e24 kg, r = 1.496e11 m
⚖️ Two 1 kg masses : m₁ = 1 kg, m₂ = 1 kg, r = 1 m
?️ ISS & Earth : m₁ = 4.2e5 kg, m₂ = 5.972e24 kg, r = 6.78e6 m
Privacy-first & accurate: All calculations are performed locally in your browser. No data is sent to any server. Uses the official CODATA value for G.

Understanding Universal Gravitation

Isaac Newton first formulated the law of universal gravitation in his 1687 work Philosophiæ Naturalis Principia Mathematica. The law states that every particle attracts every other particle with a force directly proportional to the product of their masses and inversely proportional to the square of the distance between their centers. This fundamental interaction governs planetary orbits, tides, star formation, and the large-scale structure of the universe.

F = G · (m₁ · m₂) / r²

Where G = 6.67430 × 10⁻¹¹ N·m²·kg⁻² (2018 CODATA recommended value)

Why Use an Interactive Gravitational Force Calculator?

  • Astrophysics & Education: Instantly compute forces between planets, moons, satellites, or everyday objects. Visualize how increasing distance dramatically reduces force.
  • Engineering Applications: Essential for spacecraft trajectory design, satellite orbit insertion, and interplanetary mission planning.
  • Intuitive Learning: The interactive diagram shows relative mass sizes and the mutual force vector, reinforcing the concept of action‑reaction.
  • Real‑World Scenarios: Pre‑loaded examples include Earth‑person (your weight), Earth‑Moon, Sun‑Earth, and ISS orbital attraction.

Derivation & Calculation Methodology

Our calculator implements the exact Newtonian formula using double‑precision arithmetic. Given masses m₁ and m₂ (in kg) and center‑to‑center distance r (in meters), the force magnitude is F = G × m₁ × m₂ / r². The direction is always attractive along the line joining the two masses. The accelerations a₁ = F/m₁ and a₂ = F/m₂ are also provided, demonstrating that the lighter mass experiences a greater acceleration — key to understanding why the Moon orbits the Earth.

The gravitational parameter μ = G·m (standard gravitational parameter) is also displayed, a crucial quantity in orbital mechanics (used in calculating orbital periods and velocities). The calculator handles extremely large and small numbers gracefully, using scientific notation where appropriate.

Step‑by‑step usage

  1. Enter mass values (positive numbers, any real magnitude).
  2. Enter distance in meters (must be greater than zero).
  3. Click “Compute Force” – the force magnitude, accelerations, and graphical representation update instantly.
  4. Use preset buttons to explore planetary‑scale interactions.
  5. Notice on the canvas: radii are scaled logarithmically to represent mass differences across many orders of magnitude.

Illustrative Examples & Verified Data

System Mass 1 (kg) Mass 2 (kg) Distance (m) Force (N) Physical meaning
Earth + 70 kg person 5.972×10²⁴ 70 6.371×10⁶ ~686.5 Weight force (mg ≈ 686 N)
Earth – Moon 5.972×10²⁴ 7.342×10²² 3.844×10⁸ 1.98×10²⁰ Keeps Moon in orbit
Sun – Earth 1.989×10³⁰ 5.972×10²⁴ 1.496×10¹¹ 3.52×10²² Central gravitational binding
Two 1 kg masses 1 1 1 6.674×10⁻¹¹ Extremely weak, negligible in daily life
Case Study: Geostationary Satellite Orbit

For a satellite to remain fixed above a point on Earth's equator, the gravitational force provides exactly the centripetal acceleration needed. Using our calculator, set m₁ = Earth mass (5.972e24 kg), m₂ = satellite mass (say 500 kg), and adjust distance r until the gravitational force matches the required centripetal force for an orbital period of 24 hours. The correct geostationary radius is approximately 42,164 km from Earth's center. Our tool helps confirm this value and demonstrates the inverse-square relation at work in modern telecommunications.

Common Misconceptions & Clarifications

  • “Gravity disappears in space” – False: gravitational force exists at any distance, but it weakens with r². Astronauts experience microgravity because they are in free‑fall, not because gravity is zero.
  • “G is different on other planets” – G is a universal constant; planetary surface gravity variations arise from different mass and radius.
  • “Force only acts on larger mass” – Newton's third law: both masses experience equal magnitude forces in opposite directions.

Applications Across Science & Engineering

  • Astrodynamics: Hohmann transfer orbits, interplanetary slingshots, Lagrange point calculations.
  • Geophysics: Measuring local gravity anomalies to detect mineral deposits.
  • Cosmology: Structure formation, galaxy cluster dynamics, dark matter inference.
  • Satellite Navigation: Precise orbit determination for GPS, Galileo, and GLONASS constellations.

Founded on rigorous physics – This calculator implements Newton’s law using the 2018 CODATA recommended value of G. The methodology aligns with standard physics textbooks (Halliday, Resnick, Krane) and open‑source astronomy resources. Verified against NASA's fact sheets for Earth, Moon, and Sun masses. Reviewed by the GetZenQuery tech team, last update June 2026.

Frequently Asked Questions

Gravity is the weakest fundamental force. Its small constant means that enormous masses are required to produce noticeable force, which is why we don't feel gravitational attraction from ordinary objects.

Yes, for classical Newtonian gravity it still gives the force at a given distance. However, for very strong fields general relativity becomes necessary, but the Newtonian estimate remains a good approximation for most scenarios.

The calculator handles distances up to 1e300 meters thanks to double‑precision floating point. For cosmological distances, the force becomes extremely tiny but remains mathematically well‑defined.

Set m₁ = planet mass, m₂ = your mass, and r = planet radius. The resulting force equals your weight on that planet's surface.

The structure is similar but with different constants. For electrostatic force, please refer to our Coulomb's Law calculator (coming soon).