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.
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
Gravitational Force Lookup at G = 6.674×10⁻¹¹ N·m²/kg²
Computed from F = G·m₁·m₂/r². Values in N.
| System | m₁ (kg) | m₂ (kg) | r (m) | F (N) |
|---|
Astronomical Masses and Distances
| Body / System | Mass (kg) | Mean distance (m) | Gravitational force (N) |
|---|---|---|---|
| Two 1 kg spheres, 1 m apart | 1 & 1 | 1 | 6.67×10⁻¹¹ |
| Earth & Moon | 5.97×10²⁴ & 7.34×10²² | 3.84×10⁸ | 1.98×10²⁰ |
| Earth & Sun | 5.97×10²⁴ & 1.99×10³⁰ | 1.50×10¹¹ | 3.53×10²² |
| Moon & Sun | 7.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 & Jupiter | 1.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
| Symbol | Meaning | Typical range | Units |
|---|---|---|---|
| F | Gravitational force | 10⁻¹¹ – 10³⁰ | N |
| G | Gravitational constant | 6.674×10⁻¹¹ | N·m²/kg² |
| m₁ | Mass 1 | 10⁻³ – 10⁴² | kg |
| m₂ | Mass 2 | 10⁻³ – 10⁴² | kg |
| r | Center-to-center separation | 10⁻³ – 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² |
| vorb | Circular orbital velocity | — | √(μ/r) |
| vesc | Escape 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:
where G = 6.674×10⁻¹¹ N·m²/kg². Rearranged to solve for the other unknowns:
m₂ = F · r² / ( G · m₁ )
r = √( G · m₁ · m₂ / F )
The gravitational field at distance r from a mass m is:
The acceleration of each mass due to the other is:
a₂ = F / m₂ = G · m₁ / r²
The gravitational parameter and the circular orbital and escape velocities are:
vorb = √( μ / r )
vesc = √( 2 · μ / r )
Universal Gravitation Variables
| Symbol | Meaning | Notes |
|---|---|---|
| F | Gravitational force | Always attractive; magnitude given by the formula |
| G | Gravitational constant | Fundamental constant of nature; same everywhere |
| m₁, m₂ | Masses of the two bodies | Product matters, not individual values |
| r | Center-to-center separation | Force diverges as r → 0 (ideal point masses) |
| g | Gravitational field strength | g = 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
F = 6.674×10⁻¹¹ × 1 × 1 / 1² = 6.674×10⁻¹¹ N
F = 6.674×10⁻¹¹ × 5.972×10²⁴ × 7.342×10²² / (3.844×10⁸)² = 1.980×10²⁰ N
F = 6.674×10⁻¹¹ × 5.972×10²⁴ × 1.989×10³⁰ / (1.496×10¹¹)² = 3.542×10²² N
m₁ = 1.980×10²⁰ × (3.844×10⁸)² / (6.674×10⁻¹¹ × 7.342×10²²) = 5.972×10²⁴ kg (Earth)
μ = G(m₁+m₂) ≈ 4.035×10¹⁴ m³/s²
vorb = √(μ/r) = √(4.035×10¹⁴ / 3.844×10⁸) = 1,024 m/s
μ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.
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| Parameter | Value |
|---|---|
| G | 6.674×10⁻¹¹ N·m²/kg² |
| m₁ | 5.972×10²⁴ kg |
| m₂ | 7.348×10²² kg |
| r | 3.844×10⁸ m |
| Parameter | Value |
|---|---|
| m₁ | 1×10²⁰ kg |
| m₂ | 1×10²⁰ kg |
| r | 1×10⁷ m |
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
Related calculators · Kinematics
Recently updated formulas
Suggest an improvement
Found a mistake? Have a better example? Let us know.
You may send up to 3 suggestions per 24 hours.