Gravitational Force Calculator
Calculate the gravitational force between two masses using Newton's law of universal gravitation. Enter masses and distance to find force and acceleration.
Inputs
Results
Gravitational force
Gravitational force is the mutual attraction that acts between any two objects that have mass. It keeps the Moon in orbit around Earth, Earth in orbit around the Sun, and objects resting on the ground. This calculator applies Newton's law of universal gravitation to find the attractive force between any two masses separated by a given distance, along with the acceleration that force produces on each body.
Newton's Law of Universal Gravitation
The formula is:
where:
- F is the gravitational force in newtons (N)
- G = 6.6743 × 10⁻¹¹ N·m²/kg² is the universal gravitational constant
- m₁ and m₂ are the masses of the two objects in kilograms
- r is the distance between the centres of mass in metres
The resulting acceleration on each body follows Newton's second law: a = F/m, so the smaller body accelerates more noticeably while the larger one barely moves.
Worked Example: Earth–Moon System
- Mass of Earth (m₁): 5.972 × 10²⁴ kg
- Mass of Moon (m₂): 7.342 × 10²² kg
- Distance between centres (r): 3.844 × 10⁸ m
That is 198 quintillion newtons — the force that both maintains the Moon's orbit and drives ocean tides.
The Inverse-Square Law
The force falls off as 1/r², not 1/r. This means:
| Change in distance | Change in force |
|---|---|
| 2× farther | ¼ as strong |
| 3× farther | ¹⁄₉ as strong |
| 10× farther | 1/100 as strong |
This is why satellites in low Earth orbit (≈400 km) experience about 89% of Earth's surface gravity, while a spacecraft at the Moon's distance feels only about 0.028% of it.
Earth's Surface Gravity (g ≈ 9.82 m/s²)
The familiar gravitational acceleration at Earth's surface is simply Newton's law with r = Earth's radius:
The calculator's default values reproduce this exactly. Increasing the distance shows how gravity weakens with altitude: at the International Space Station (400 km up), g ≈ 8.7 m/s² — astronauts are not weightless because gravity is absent, but because the station and everything inside it are falling together.
The Gravitational Constant G
G = 6.6743 × 10⁻¹¹ N·m²/kg² is one of the most fundamental — and least precisely known — constants in physics. Henry Cavendish first measured it in 1798 using a torsion balance: two small lead balls attracted to two large ones, twisting a thin wire by a measurable angle. Modern measurements have reduced the uncertainty to about 22 parts per million, but G remains harder to measure precisely than almost any other constant because gravity is so weak that even tiny vibrations in the laboratory floor introduce noise.
Limitations
This calculator treats objects as point masses (or uniform spheres, for which the result is identical). It does not account for:
- Non-spherical mass distributions — Earth is slightly oblate; the real gravitational field varies with latitude.
- Relativistic effects — at very strong fields or very high velocities, general relativity gives more accurate predictions than Newton's law.
- Tidal forces — the differential pull across an extended object (which deforms the Moon and causes ocean tides) is not computed here.
For everyday astronomical distances and non-relativistic speeds, Newton's law is accurate to better than one part in a billion.
Frequently Asked Questions (FAQ)
What is the formula for gravitational force?
Newton's law of universal gravitation states that F = G·m₁·m₂/r², where G = 6.6743 × 10⁻¹¹ N·m²/kg² is the gravitational constant, m₁ and m₂ are the masses of the two objects, and r is the distance between their centres. For example, two 1 kg spheres 1 metre apart attract each other with about 6.67 × 10⁻¹¹ N — far too weak to feel, but measurable with sensitive instruments.
What is the gravitational constant G?
The gravitational constant G = 6.6743 × 10⁻¹¹ N·m²/kg² is one of the fundamental constants of nature, first measured by Henry Cavendish in 1798 using a torsion balance. Its current CODATA value carries an uncertainty of about 22 parts per million — G is one of the least precisely known physical constants because gravity is extremely weak and difficult to isolate experimentally.
Why does gravitational force follow an inverse-square law?
Gravity follows an inverse-square law (force ∝ 1/r²) because gravitational field lines spread out uniformly in three-dimensional space. Imagine a sphere of radius r centred on a mass: as r doubles, the sphere's surface area quadruples (4πr²), so the field strength at any point on the surface is one-quarter as strong. The same geometry governs electric force (Coulomb's law) and light intensity — any effect that radiates uniformly from a point source obeys the inverse-square law.
How does this relate to Earth's surface gravity (g = 9.8 m/s²)?
Earth's surface gravitational acceleration g = GM_Earth/R_Earth² = 6.6743 × 10⁻¹¹ × 5.972 × 10²⁴ / (6.371 × 10⁶)² ≈ 9.82 m/s². The familiar g ≈ 9.8 m/s² is simply Newton's law applied with Earth's mass and radius. At the top of Mount Everest (8.85 km above sea level), r increases slightly, so g ≈ 9.77 m/s². At the International Space Station (400 km up), g ≈ 8.7 m/s² — astronauts are not weightless because gravity is absent, but because they are in free fall.
Recommended Next
Newton's Second Law Calculator
Apply F = ma to solve for force, mass, or acceleration. Switch between three modes to find any one quantity given the other two.