Home / Physics / Kinematics / Newton's Law of Universal Gravitation

Formula & Calculator

Newton's Law of Universal Gravitation

Every object with mass attracts every other object with mass. This law gives the strength of that pull: it grows with the product of the two masses and weakens with the square of the distance between them. For example, doubling the distance cuts the force to one quarter. It explains why the Moon orbits the Earth, why we stay on the ground, and why the tides happen. It is one of the greatest achievements of classical physics.

Physics Kinematics Gravitation
VORZEP · GRAVITATION

Universal Gravitation Calculator

Solve Newton's law of universal gravitation F = G · m₁ · m₂ / r² for any of its four unknowns — force, mass 1, mass 2, or separation — with step-by-step math, a live two-body schematic, charts, and companion gravitational metrics.

F = G · m₁ · m₂ / r²
Solve for
Gravitational Force (F) Attractive force between two masses. Always positive (attraction). Typical: 10⁻⁹ N for two 1 kg masses 1 m apart, 1.98×10²⁰ N for Earth-Moon, 3.5×10²² N for Earth-Sun.
N
Force must be greater than zero.
= 1.980×10²⁰ N · weight equivalent = 2.019×10¹⁹ kgf
Mass 1 (m₁) First mass. Positive. Typical: 1 kg for everyday objects, 10²⁴ kg for planets (Earth = 5.97×10²⁴ kg), 10³⁰ kg for stars (Sun = 1.99×10³⁰ kg).
kg
Mass must be greater than zero.
= 5.972×10²⁴ kg · Earth's mass
Mass 2 (m₂) Second mass. The gravitational force is symmetric — swapping m₁ and m₂ leaves F unchanged. Typical: 7.34×10²² kg for the Moon, 1.99×10³⁰ kg for the Sun, 1.9×10²⁷ kg for Jupiter.
kg
Mass must be greater than zero.
= 7.342×10²² kg · Moon's mass
Separation (r) Distance between the centers of the two masses. The force falls off as 1/r². Typical: 1 m for laboratory experiments, 3.84×10⁸ m for Earth-Moon, 1.50×10¹¹ m for Earth-Sun.
m
Separation must be greater than zero.
= 3.844×10⁸ m = 384,400 km · Earth-Moon distance
GRAVITATIONAL FORCE (F)
1.980×10²⁰ N
F = 1.980×10²⁰ N · m₁ = 5.972×10²⁴ kg, m₂ = 7.342×10²² kg, r = 3.844×10⁸ m
PLANETARY-SCALE FORCE — EARTH-MOON CLASS
F = G · m₁ · m₂ / r²
Step-by-step solution
Force vs. separation
Current m₁·m₂ m₁·m₂ × 0.5 m₁·m₂ × 2.0
Force vs. mass product
Current r r × 0.5 r × 2.0
Sensitivity
Companion gravitational metrics
Universal gravitation — live two-body schematic
UNIVERSAL GRAVITATION · F = G · m₁ · m₂ / r² m₁ 5.972e24 kg m₂ 7.342e22 kg F = 1.980×10²⁰ N attractive (equal & opposite) r = 3.844e8 m GRAVITY STATE F = 1.980e20 N a₁ = 3.32e-5 m/s² a₂ = 2.70e-3 m/s² F = 6.674×10⁻¹¹ × 5.972×10²⁴ × 7.342×10²² / (3.844×10⁸)² = 1.980×10²⁰ N
Mass 1 (m₁) Mass 2 (m₂) Gravitational attraction (equal & opposite)
What the universal gravitation relation really measures
Fforce
=
Ggravitational constant
×
m₁ · m₂mass product
/
r²separation squared

Gravity is a universal attractive force

Every object with mass attracts every other object with mass. This is the deepest insight of Newton's theory: the same force that makes an apple fall makes the Moon orbit the Earth and the planets orbit the Sun. The force is always attractive, never repulsive, and it acts along the line joining the two centers of mass. The constant G = 6.674×10⁻¹¹ N·m²/kg² sets the strength of the interaction. It is one of the fundamental constants of nature, and its small value is why gravity is negligible for everyday objects but dominates on astronomical scales.

Inverse-square law: doubling r reduces F by 4

The force falls off as the square of the separation. Doubling the distance reduces the force to one quarter; tripling it reduces the force to one ninth. This is because gravity spreads out from a point source over the surface of an imaginary sphere, and the surface area of a sphere grows as r². The same inverse-square geometry governs the intensity of light and sound, Coulomb's law for electric charges, and the strength of magnetic fields from a point pole. It is one of the most common and most useful mathematical forms in physics.

Equal and opposite forces — Newton's third law

By Newton's third law, the gravitational force that mass 1 exerts on mass 2 is equal in magnitude and opposite in direction to the force mass 2 exerts on mass 1. Both forces are given by the same formula F = Gm₁m₂/r², and both act along the line joining the two bodies. This symmetry means the Earth pulls on the Moon with the same magnitude of force that the Moon pulls on the Earth. The difference in their accelerations comes from their different masses: a = F/m, so the lighter Moon accelerates much more than the massive Earth.

Einstein's general relativity supersedes Newton

Newton's law of universal gravitation is an excellent approximation for most purposes, but it is not the final word. Einstein's general theory of relativity (1915) describes gravity not as a force but as the curvature of spacetime caused by mass and energy. For weak gravitational fields and slow speeds — conditions that hold for the solar system, satellites, and everyday objects — the two theories give nearly identical predictions. The differences become significant near black holes, for the orbit of Mercury (whose perihelion precession was the first confirmed test of general relativity), for GPS satellites (where relativistic corrections are essential), and for gravitational waves — ripples in spacetime predicted by Einstein and detected directly by LIGO in 2015.

How to Use This Calculator

The universal gravitation relation links four quantities: F, m₁, m₂, and r. Pick which one you want the tool to solve, then fill in the other three.

1. Choose what to solve for

Pick F, m₁, m₂, or r from the toggle. The calculator rearranges F = G·m₁·m₂/r² automatically for whichever you choose.

2. Use realistic presets

Presets cover typical values: force from 10⁻¹⁰ N (two 1 kg masses 1 m apart) to 10³⁰ N, masses from 1 kg to the Sun's mass (2×10³⁰ kg), and separations from 10 cm to 10¹² m.

3. Match units carefully

Use SI units: F in N, m in kg, r in m. G = 6.674×10⁻¹¹ N·m²/kg² is fixed. The hint under each field shows the value in alternative units and common astronomical comparisons.

4. Read the result and verdict

The result card shows the solved value plus a colour-coded verdict classifying the force from very small (laboratory-scale) through moderate (planetary) to very large (stellar and galactic).

5. Check the schematic and charts

The schematic shows the two masses with equal and opposite attraction arrows and the separation dimension. The chart plots force against separation for three values of the mass product.

6. Switch to Advanced for depth

Advanced mode adds a chart of F vs. m₁·m₂, a sensitivity check on a +1% input change, and companion metrics including the individual accelerations, the gravitational parameter μ, the orbital velocity, and the escape velocity.

What This Tool Offers

Built around Newton's law of universal gravitation F = G·m₁·m₂/r², the fundamental link between mass, separation, and gravitational force.

Four-way solving

Solve for force, mass 1, mass 2, or separation. The calculator rearranges the formula for whichever variable you choose.

Clean two-body schematic

The two masses with equal and opposite attraction arrows and the separation dimension, all to scale.

Force-class verdict

Each result is classified from very small (laboratory) through moderate (planetary) to very large (stellar and galactic), with a coloured badge.

Multi-unit hints

Each field shows the value in related forms — kgf for force, solar and Earth masses for mass, km and AU for separation, plus individual accelerations.

Dual comparison charts

F vs. r for three values of m₁·m₂, plus an advanced F vs. m₁·m₂ chart for three values of r.

Reference tables

Gravitational forces in the solar system, common mass and distance values, and a full variable reference table.

Reference Tables & Conversions

A force unit converter, a gravitational force lookup grid, and astronomical data.

Force unit converter

N
kgf
lbf
dyn
= 1.980×10²⁰ N = 2.019×10¹⁹ kgf = 4.451×10¹⁹ lbf = 1.980×10²⁵ dyn

Gravitational Force Lookup at G = 6.674×10⁻¹¹ N·m²/kg²

Computed from F = G·m₁·m₂/r². Values in N.

Systemm₁ (kg)m₂ (kg)r (m)F (N)

Astronomical Masses and Distances

Body / SystemMass (kg)Mean distance (m)Gravitational force (N)
Two 1 kg spheres, 1 m apart1 & 116.67×10⁻¹¹
Earth & Moon5.97×10²⁴ & 7.34×10²²3.84×10⁸1.98×10²⁰
Earth & Sun5.97×10²⁴ & 1.99×10³⁰1.50×10¹¹3.53×10²²
Moon & Sun7.34×10²² & 1.99×10³⁰1.50×10¹¹4.34×10²⁰
Earth & Mars (closest)5.97×10²⁴ & 6.42×10²³5.46×10¹⁰8.56×10¹⁶
Earth & Jupiter (closest)5.97×10²⁴ & 1.90×10²⁷5.88×10¹¹2.19×10¹⁸
Sun & Jupiter1.99×10³⁰ & 1.90×10²⁷7.79×10¹¹4.16×10²³
Milky Way & Sun~1.5×10⁴² & 1.99×10³⁰2.5×10²⁰~3.2×10²¹

Variable Reference

SymbolMeaningTypical rangeUnits
FGravitational force10⁻¹¹ – 10³⁰N
GGravitational constant6.674×10⁻¹¹N·m²/kg²
m₁Mass 110⁻³ – 10⁴²kg
m₂Mass 210⁻³ – 10⁴²kg
rCenter-to-center separation10⁻³ – 10²⁵m
a₁Acceleration of mass 1—m/s² = F/m₁
a₂Acceleration of mass 2—m/s² = F/m₂
μGravitational parameter = G(m₁+m₂)—m³/s²
vorbCircular orbital velocity—√(μ/r)
vescEscape velocity—√(2μ/r)

What Does F = G·m₁·m₂ / r² Measure?

Newton's law of universal gravitation gives the attractive force between any two objects with mass. It is one of the most important equations in physics, unifying terrestrial gravity with celestial motion and providing the theoretical foundation for Kepler's laws, satellite orbits, and modern astrophysics. The force is always attractive, acts along the line joining the two centers of mass, and follows an exact inverse-square law.

Universal Gravitation Formula

The defining relationship is:

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

where G = 6.674×10⁻¹¹ N·m²/kg². Rearranged to solve for the other unknowns:

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

The gravitational field at distance r from a mass m is:

g = G · m / r²

The acceleration of each mass due to the other is:

a₁ = F / m₁ = G · m₂ / r²
a₂ = F / m₂ = G · m₁ / r²

The gravitational parameter and the circular orbital and escape velocities are:

μ = G · ( m₁ + m₂ )
vorb = √( μ / r )
vesc = √( 2 · μ / r )

Universal Gravitation Variables

SymbolMeaningNotes
FGravitational forceAlways attractive; magnitude given by the formula
GGravitational constantFundamental constant of nature; same everywhere
m₁, m₂Masses of the two bodiesProduct matters, not individual values
rCenter-to-center separationForce diverges as r → 0 (ideal point masses)
gGravitational field strengthg = Gm/r²; equals acceleration of a test mass
μGravitational parameterμ = G(m₁+m₂); used in orbital mechanics

How Each Variable Affects the Gravitational Force

The gravitational force is directly proportional to each mass and inversely proportional to the square of the separation. Doubling either mass doubles the force. Doubling the separation reduces the force to one quarter; tripling it reduces the force to one ninth. This inverse-square dependence makes gravity weak at large distances but dominant at short range, which is why the solar system is held together over enormous distances while gravity is negligible between everyday objects. The mass product m₁·m₂ is symmetric: swapping the two masses leaves the force unchanged, reflecting the reciprocal nature of gravitational attraction.

The individual accelerations of the two bodies are different, even though the forces are equal and opposite. The lighter body accelerates more: a₁ = F/m₁ and a₂ = F/m₂. This is why the Moon orbits the Earth rather than the other way around — the Earth-Moon barycenter is inside the Earth, but the Moon does most of the moving. In extreme cases, such as the Sun and a small planet, the Sun's acceleration is essentially zero, and the planet orbits a nearly fixed Sun. In binary star systems with comparable masses, both stars orbit their common center of mass, and the gravitational parameter μ = G(m₁+m₂) governs the dynamics of the system.

Universal Gravitation Calculation Examples

Given: m₁ = 1 kg, m₂ = 1 kg, r = 1 m — solve for F
F = 6.674×10⁻¹¹ × 1 × 1 / 1² = 6.674×10⁻¹¹ N
Given: Earth (5.972×10²⁴ kg), Moon (7.342×10²² kg), r = 3.844×10⁸ m — solve for F
F = 6.674×10⁻¹¹ × 5.972×10²⁴ × 7.342×10²² / (3.844×10⁸)² = 1.980×10²⁰ N
Given: Earth (5.972×10²⁴ kg), Sun (1.989×10³⁰ kg), r = 1.496×10¹¹ m — solve for F
F = 6.674×10⁻¹¹ × 5.972×10²⁴ × 1.989×10³⁰ / (1.496×10¹¹)² = 3.542×10²² N
Given: F = 1.980×10²⁰ N, m₂ = 7.342×10²² kg, r = 3.844×10⁸ m — solve for m₁
m₁ = 1.980×10²⁰ × (3.844×10⁸)² / (6.674×10⁻¹¹ × 7.342×10²²) = 5.972×10²⁴ kg (Earth)
Given: Earth-Moon system — solve for the Moon's orbital speed
μ = G(m₁+m₂) ≈ 4.035×10¹⁴ m³/s²
vorb = √(μ/r) = √(4.035×10¹⁴ / 3.844×10⁸) = 1,024 m/s
Given: Earth — solve for escape velocity from the surface
μEarth = G·M = 3.986×10¹⁴ m³/s²
vesc = √(2μ/r) = √(2 × 3.986×10¹⁴ / 6.371×10⁶) = 11,186 m/s

Frequently Asked Questions

G = 6.674×10⁻¹¹ N·m²/kg² is tiny compared to the other fundamental forces. The gravitational attraction between two 1 kg masses 1 m apart is only 6.7×10⁻¹¹ N — about the weight of a single bacterium. This is why we never notice gravity between everyday objects; only when one or both masses are astronomical (10²⁴ kg or more) does gravity become significant. In fact, gravity is the weakest of the four fundamental forces — about 10³⁶ times weaker than the electric force between two protons. Yet it dominates the structure of the universe because it is always attractive and never cancels out, while electric charges come in positive and negative varieties that neutralize on large scales.

In Newton's theory, gravity is assumed to act instantaneously — any change in one mass immediately affects the force on the other, no matter how far apart they are. This bothered Newton himself, and it is inconsistent with Einstein's special relativity, which forbids information from travelling faster than light. In Einstein's general relativity, gravity propagates at the speed of light as gravitational waves. For nearly all practical purposes — planets, satellites, stars — the difference is negligible, and Newton's instantaneous approximation is excellent. But for very precise measurements and for extreme events like black-hole mergers, the finite speed of gravity is essential and has been confirmed by direct detection of gravitational waves.

Mass is an intrinsic property of an object — a measure of its inertia and of its gravitational "charge." It is measured in kilograms and does not change with location. Weight is the gravitational force on an object in a particular gravitational field: W = mg, where g is the local gravitational acceleration. Weight is measured in newtons and does change with location: an astronaut with a mass of 70 kg weighs about 690 N on Earth, 110 N on the Moon, and 0 N in free-fall orbit, though the mass remains 70 kg in all cases. The universal gravitation formula is what connects these concepts: g = GM/R² for a body of mass M and radius R, and W = mg is the gravitational force on a small mass m at the surface.

No known material can shield gravity. Unlike electric fields, which can be cancelled by opposite charges and blocked by conductors, gravitational fields from different sources simply add as vectors and cannot be cancelled except by placing an equal mass on the opposite side (which creates an unstable equilibrium). The best laboratory searches for gravitational shielding have found no effect down to very high sensitivity. However, gravity can be counteracted by other forces: a rocket launch uses thrust to overcome gravity, a helium balloon rises because the buoyant force of the displaced air exceeds its weight, and a satellite in orbit is in continuous free-fall that produces the sensation of weightlessness. But the gravitational field itself is always present and cannot be turned off.

At the exact center of the Earth, the gravitational force is zero. This is a consequence of the shell theorem: for a spherically symmetric mass distribution, only the mass inside the radius of the observation point contributes to the gravitational field, and all the mass outside the point is symmetrically distributed and cancels itself out. As you descend from the surface toward the center, the effective mass inside your radius decreases, and so does g. In a uniform-density sphere, g would fall linearly from the surface value to zero at the center. For the real Earth, g actually increases slightly just below the surface (because the mantle is denser than the crust) before falling to zero at the center. The pressure at the center, however, is enormous — about 3.6 million atmospheres — because of the weight of all the overlying material.

Kepler's three laws of planetary motion — elliptical orbits, equal areas in equal times, and T² ∝ a³ — were derived empirically from Tycho Brahe's data, before Newton explained them theoretically. Newton showed that all three laws follow from the inverse-square form of the gravitational force combined with his laws of motion. The second law is a consequence of conservation of angular momentum; the first and third laws follow from the specific 1/r² form of the force. In fact, the inverse-square form is the unique force law (among central forces) that produces closed elliptical orbits. If the force fell off differently — say, as 1/r or 1/r³ — the orbits would not close, and Kepler's simple laws would not hold. This is one of the great triumphs of Newtonian mechanics: a single, simple force law explains the entire complexity of planetary motion.

Gravitational waves are ripples in the fabric of spacetime, predicted by Einstein's general theory of relativity in 1916. They are produced by accelerating masses — particularly by violent events such as the merger of two black holes or neutron stars, or the collapse of a massive star. They travel at the speed of light and stretch and squeeze space itself as they pass. The effect is extraordinarily tiny: the first detection by LIGO in 2015 measured a change in length of about 10⁻¹⁸ m over a 4 km baseline — less than the diameter of a proton. Gravitational waves are not the same as gravitational force; they are a separate phenomenon that carries energy and information away from accelerating masses. Their detection (Nobel Prize 2017) opened a new window on the universe, allowing astronomers to observe black holes directly and to study the most extreme events in the cosmos.

Calculating...

Variables

Symbol Quantity Unit
F Force N
G Gravitational constant N·m²/kg²
m Mass kg
r Distance m

What it means

Newton’s law of universal gravitation states that every particle in the universe attracts every other particle with a force that is directly proportional to the product of their masses and inversely proportional to the square of the distance between their centres. The constant G (6.674 × 10⁻¹¹ N·m²/kg²) is the universal gravitational constant. This law explains the motion of planets, the tides, and the orbits of satellites. It is the basis for celestial mechanics and is used to calculate gravitational forces in space, such as the weight of an object on different planets. Although superseded by Einstein’s general relativity for extreme conditions (strong fields, high speeds), Newton’s law remains highly accurate for most everyday and engineering applications. It is also used in geophysics to determine the mass of the Earth and in astrophysics to study galaxy dynamics. The inverse‑square law is a cornerstone of physics.

Worked example

Universal Gravitation – Two Examples

Real‑World
Scenario: Calculate the gravitational force between Earth (5.972×10²⁴ kg) and the Moon (7.348×10²² kg) with distance 3.844×10⁸ m.
ParameterValue
G6.674×10⁻¹¹ N·m²/kg²
m₁5.972×10²⁴ kg
m₂7.348×10²² kg
r3.844×10⁸ m
1F = G·m₁·m₂/r² = 6.674e-11 × 5.972e24 × 7.348e22 / (3.844e8)² ≈ 1.98×10²⁰ N
Result ≈ 1.98×10²⁰ N ✓ Huge force
Scenario: Two 1×10²⁰ kg objects are 1×10⁷ m apart. Find the gravitational force between them.
ParameterValue
m₁1×10²⁰ kg
m₂1×10²⁰ kg
r1×10⁷ m
1F = 6.674e-11 × 1e20 × 1e20 / (1e7)² = 6.674e29 / 1e14 = 6.674×10¹⁵ N
Result 6.67×10¹⁵ N ✓ Significant
Key insight: Gravitational force decreases with the square of distance – it's the weakest fundamental force.

Common mistakes

  • Distance r: The distance between the centres of the two masses – not the surface‑to‑surface distance.
  • Masses m₁ and m₂: In kilograms – not weights.
  • Gravitational constant G: G = 6.674×10⁻¹¹ N·m²/kg² – use the correct value.
  • Inverse square law: Force decreases with r²; doubling distance reduces force to 1/4.
  • Vector nature: Force is attractive along the line joining the masses – direction matters.

Applications

Newton's law of universal gravitation, F = G·m₁m₂/r², describes the attractive force between two masses. It is the cornerstone of celestial mechanics, explaining planetary orbits, tidal forces, and the motion of galaxies. Engineers and astrophysicists use this law to calculate satellite trajectories, to design interplanetary missions, and to understand gravitational assist manoeuvres. In geophysics, it helps model Earth's gravitational field and its variations. The law also underlies the design of gravitational wave detectors and the study of black holes. By applying Newton's law, professionals can predict the motion of bodies under gravity, from falling apples to orbiting spacecraft. Despite the advent of general relativity, this equation remains highly accurate for most practical applications in our solar system and beyond.

  • Orbital mechanics and satellite trajectory design
  • Space mission planning (gravity assist, launch windows)
  • Geophysical surveys and gravity anomaly mapping
  • Tidal analysis and oceanography
  • Astrophysical studies of planetary systems and galaxies