Law of Universal Gravitation

A practical engineering guide to Newton’s Law of Universal Gravitation, including force, gravitational field strength, altitude effects, orbital relationships, worked examples, and model limitations.

By Turn2Engineering Editorial Team Updated August 12, 2026 11 min read

Key Takeaways

  • Definition: The Law of Universal Gravitation relates gravitational force to two masses, their center-to-center distance, and the gravitational constant.
  • Main use: Engineers and students use it for gravitational force, field strength, altitude effects, satellite and orbital calculations, and understanding why near-Earth weight reduces to \(W \approx mg\).
  • Watch for: Distance must be measured between mass centers, not surface-to-surface gaps, and unit consistency is critical.
  • Outcome: You will be able to calculate gravitational force, rearrange the formula, and recognize when a simplified gravity model is no longer enough.
Table of Contents

Gravitational Force Between Two Masses

The Law of Universal Gravitation calculates the attractive force between two masses using their masses, center distance, and the gravitational constant.

Law of Universal Gravitation diagram showing two masses separated by center-to-center distance r and the attractive gravitational force between them
The diagram shows two bodies attracting each other through gravity. The force increases with mass and decreases rapidly as the center-to-center distance increases.

Notice first that \(r\) is not the gap between surfaces. It is the distance between the centers of mass. That single detail prevents many incorrect force estimates in planet, satellite, and large-body problems.

What is the Law of Universal Gravitation?

The Law of Universal Gravitation is Newton’s equation for the attractive force between two masses. It says that every mass attracts every other mass, and that the force depends on both how large the masses are and how far apart their centers are.

In engineering and physics, this equation is most useful when you need a first-principles gravity force rather than a near-surface shortcut. Near Earth, many problems can use \(F = mg\). But when altitude, orbital motion, planetary bodies, or large separation distances matter, the full gravitational force equation explains where \(g\) comes from and why it changes with distance.

The equation is foundational for orbital mechanics, satellite motion, planetary gravity, space systems, and conceptual mechanics. It is also a useful bridge between force, acceleration, potential energy, and motion under gravity.

The Law of Universal Gravitation formula

The most common form calculates the magnitude of the gravitational force between two masses:

$$ F = G\frac{m_1m_2}{r^2} $$

This expression shows two important physical ideas. First, gravity scales directly with both masses: doubling either mass doubles the force. Second, gravity follows an inverse-square relationship: doubling the center distance reduces the force to one-fourth of its original value.

$$ g = G\frac{M}{r^2} $$

The alternate form gives gravitational field strength or gravitational acceleration caused by a large body of mass \(M\). Near Earth’s surface, this becomes the familiar \(g \approx 9.81\ \text{m/s}^2\), which is why weight is commonly written as \(W = mg\).

Which gravity equation should you use?

Choose the relationship based on whether you need force, local gravitational acceleration, near-surface weight, orbital speed, or gravitational energy.

Gravity equation selector by engineering problem type
If you need Use Best for Main caution
Force between two masses \(F=G\dfrac{m_1m_2}{r^2}\) Two-body gravity force Use center-to-center distance
Gravity field / acceleration \(g=G\dfrac{M}{r^2}\) Gravity around a planet or spherical body \(r\) is measured from the body’s center
Near-surface weight \(W=mg\) Ordinary engineering near one location Assumes \(g\) is effectively constant
Circular orbital speed \(v=\sqrt{\dfrac{GM}{r}}\) Ideal circular orbit Requires a two-body circular-orbit model
Gravitational potential energy \(U=-G\dfrac{Mm}{r}\) Orbital-scale energy Zero reference is at infinite separation

Variables and units

The Law of Universal Gravitation is unit-sensitive. The SI form is the safest default because the gravitational constant is normally tabulated in SI units.

Key variables
  • \(F\) Gravitational force between the two bodies, in newtons \(\text{N}\).
  • \(G\) Universal gravitational constant, approximately \(6.67430 \times 10^{-11}\ \text{N}\cdot\text{m}^2/\text{kg}^2\).
  • \(m_1, m_2\) The two masses attracting each other, normally in kilograms \(\text{kg}\).
  • \(r\) Center-to-center distance between the masses, in meters \(\text{m}\).
  • \(g\) Gravitational field strength or acceleration due to gravity, in \(\text{m/s}^2\) or \(\text{N/kg}\).
Unit tip

Use kilograms, meters, and newtons when using \(G = 6.67430 \times 10^{-11}\ \text{N}\cdot\text{m}^2/\text{kg}^2\). Mixing kilometers, pounds-mass, or miles into the equation without conversion can create errors by many orders of magnitude.

Variable Meaning SI units Common mistake Engineering note
\(F\) Gravitational force \(\text{N}\) Confusing force with mass Force acts on both bodies with equal magnitude and opposite direction.
\(G\) Universal gravitational constant \(\text{N}\cdot\text{m}^2/\text{kg}^2\) Using rounded or incompatible constants Use enough significant digits for precision-sensitive orbital work.
\(m_1, m_2\) Interacting masses \(\text{kg}\) Using weight instead of mass Mass is the input; weight is a resulting force in a gravitational field.
\(r\) Center-to-center distance \(\text{m}\) Using surface distance For planets and satellites, measure from the planet’s center.
Practical range check

For human-scale objects, gravitational attraction is usually tiny. For planetary-scale masses, the same equation becomes enormous because the mass terms dominate despite the very small value of \(G\).

How gravity changes with altitude

Gravitational acceleration decreases with the square of distance from a planet’s center. If \(R\) is the planet radius and \(h\) is altitude above the surface:

$$ g(h)=\frac{GM}{(R+h)^2} $$

Relative to surface gravity \(g_0=GM/R^2\), the same relationship can be written:

$$ \frac{g(h)}{g_0}=\left(\frac{R}{R+h}\right)^2 $$
Altitude check

Do not substitute altitude \(h\) directly for \(r\). The inverse-square equation requires distance from the attracting body’s center, so \(r=R+h\).

How to rearrange the Law of Universal Gravitation

Most textbook and engineering problems solve for force, but the same equation can be rearranged to estimate mass, distance, or local gravitational field strength when the other quantities are known.

$$ m_1 = \frac{Fr^2}{Gm_2} $$
$$ r = \sqrt{\frac{Gm_1m_2}{F}} $$
$$ g = \frac{F}{m} = G\frac{M}{r^2} $$
Senior engineer check

After rearranging, check the direction of the relationship. If distance increases, force must decrease. If either mass increases, force must increase. If your result violates that behavior, the algebra or unit setup is likely wrong.

Why planets can often be treated as point masses

For a spherically symmetric body, the external gravitational field is the same as if the body’s entire mass were concentrated at its center. This is why Earth, planets, moons, and many stars can often be modeled with \(g=GM/r^2\) outside the body.

Modeling reality

Real planets are not perfectly spherical or uniform, so precision gravity models include oblateness and higher-order gravity-field terms. For first-pass orbital and engineering estimates, the spherical model is often the correct starting point.

Worked example

Example problem — gravitational force between Earth and a satellite

A \(1{,}200\ \text{kg}\) satellite is orbiting at a center-to-center distance of \(6.87 \times 10^6\ \text{m}\) from Earth. Use Earth’s mass as \(5.972 \times 10^{24}\ \text{kg}\). Estimate the gravitational force on the satellite.

$$ F = G\frac{Mm}{r^2} $$
$$ F = \left(6.67430 \times 10^{-11}\right) \frac{\left(5.972 \times 10^{24}\right)(1200)} {\left(6.87 \times 10^6\right)^2} $$
$$ F \approx 1.01 \times 10^4\ \text{N} $$

The gravitational force is about \(10{,}100\ \text{N}\). Dividing that force by the satellite mass gives a local gravitational acceleration of about \(8.4\ \text{m/s}^2\), which is lower than surface gravity because the satellite is farther from Earth’s center.

Example problem — gravity 400 km above Earth

Estimate gravitational acceleration at an altitude of \(400\ \text{km}\) above Earth. Use Earth radius \(R=6.371\times10^6\ \text{m}\) and surface gravity \(g_0=9.81\ \text{m/s}^2\).

$$ g(h)=g_0\left(\frac{R}{R+h}\right)^2 $$
$$ g(400\,\text{km})=9.81\left(\frac{6.371\times10^6}{6.371\times10^6+4.00\times10^5}\right)^2\approx8.69\ \text{m/s}^2 $$

Gravity at \(400\ \text{km}\) altitude is still about \(8.7\ \text{m/s}^2\), or roughly 89% of surface gravity. Astronauts in low Earth orbit feel weightless because they are in continuous free fall, not because gravity has disappeared.

Interpretation tip

The satellite is not “outside gravity.” It is still strongly pulled by Earth. Orbital motion occurs because the satellite is continuously accelerating toward Earth while also moving sideways fast enough to keep missing the surface.

From universal gravitation to circular orbit equations

For an ideal circular orbit, gravitational force supplies the centripetal force:

$$ G\frac{Mm}{r^2}=\frac{mv^2}{r} $$

Canceling the orbiting mass \(m\) and solving for speed gives:

$$ v=\sqrt{\frac{GM}{r}} $$

The corresponding ideal circular orbital period is:

$$ T=2\pi\sqrt{\frac{r^3}{GM}} $$

These relations are useful for first-pass satellite and orbital estimates, but real mission design may also require drag, oblateness, third-body perturbations, thrust, and numerical propagation.

Where engineers use this equation

The Law of Universal Gravitation is not usually the final equation for every engineering design task, but it is the foundation behind many gravity-driven analyses.

  • Orbital mechanics: Estimating gravitational attraction on satellites, spacecraft, and planetary bodies.
  • Gravity field estimates: Understanding how \(g\) changes with altitude or distance from a large mass.
  • Space systems: Building first-pass calculations for trajectory, orbital period, escape velocity, and gravitational potential energy.
  • Mechanical and civil engineering education: Connecting force, mass, acceleration, and weight in a physically meaningful way.
  • Sensor and measurement context: Understanding why gravitational effects can matter in precision instruments, geophysics, and large-scale systems.
Field reality

In most building, machine, and near-surface problems, engineers use \(W = mg\) because \(g\) is nearly constant over the scale of the system. The full universal law becomes important when the distance from the attracting body changes enough that \(g\) is no longer effectively constant.

Law of Universal Gravitation vs. related equations

The universal gravitation equation is often connected to weight, acceleration, potential energy, and orbital mechanics. The right equation depends on whether you need force, acceleration, energy, or motion.

Equation / method Best used for Key assumption Main limitation
\(F = G\dfrac{m_1m_2}{r^2}\) Gravity force between two masses Masses can be treated by their center-to-center distance Not enough by itself for full orbital trajectory prediction
\(W = mg\) Weight near Earth’s surface \(g\) is approximately constant Less accurate over large altitude changes
\(g = G\dfrac{M}{r^2}\) Gravity field strength around a large body The large body is modeled as a concentrated or spherical mass Does not capture local anomalies or nonspherical effects
\(U = -G\dfrac{Mm}{r}\) Gravitational potential energy in orbital-scale problems Reference energy is zero at infinite separation Different from the near-surface shortcut \(U = mgh\)

Assumptions behind the equation

Newton’s gravity law is extremely powerful, but it still depends on modeling assumptions. These assumptions are often harmless for first-pass engineering work, but they matter in high-precision orbital, astronomical, and geophysical calculations.

Assumptions checklist
  • 1 The masses can be modeled as point masses or spherically symmetric bodies, so center-to-center distance is valid.
  • 2 The gravitational interaction is modeled using Newtonian mechanics rather than relativistic gravity.
  • 3 Other bodies, atmospheric drag, thrust, rotation, and local gravity anomalies are either negligible or handled separately.
  • 4 The distance \(r\) is measured between centers of mass and uses the same length units as the gravitational constant.

Neglected factors

The basic two-body equation ignores several real-world effects. In many classroom and early engineering estimates, that is acceptable. In precision work, those effects must be added through a more complete model.

  • Third-body gravity: The Moon, Sun, and nearby planets can perturb satellite orbits.
  • Atmospheric drag: Low Earth orbit objects lose energy due to drag, which the gravity equation alone does not include.
  • Nonspherical mass distribution: Earth is not a perfect sphere, and its gravity field varies slightly by location.
  • Relativistic effects: Newtonian gravity is not the final model near extremely massive bodies or in precision timing applications.

When the simple Newtonian gravity model is not enough

The Law of Universal Gravitation is usually reliable for everyday engineering-scale gravity estimates and many orbital approximations. It begins to lose accuracy when the problem requires high precision, strong-gravity physics, or a model of more than two interacting bodies.

Breakdown warning

Do not use the simple two-body equation as a final answer for precision spacecraft navigation, orbital decay, gravitational anomalies, or relativistic environments. In those cases, engineers use numerical models, measured gravity fields, perturbation methods, or general relativity depending on the application.

Rule of thumb

If the object stays close to Earth’s surface, \(F = mg\) is usually enough. If altitude becomes a meaningful fraction of Earth’s radius, use \(g = GM/r^2\) or the full universal gravitation equation.

Common mistakes and engineering checks

Most incorrect answers come from unit handling, distance definition, or using the near-surface shortcut when gravity is changing significantly.

Check item What to verify Why it matters
Distance Use center-to-center distance \(r\), not altitude alone unless radius is already included. The inverse-square term makes distance errors very sensitive.
Mass vs. weight Use mass in kilograms, not weight in newtons or pounds-force. The equation calculates force from mass; it does not accept weight as a mass input.
Magnitude Check whether the result increases with mass and decreases with distance. This catches algebra mistakes and inverted ratios.
Gravity model Decide whether \(mg\), \(GM/r^2\), or the full two-mass equation fits the problem. Using the wrong gravity model can hide altitude and scale effects.
Sanity check

If your result for a near-Earth object is far from \(m \times 9.81\ \text{N}\), verify whether your distance \(r\) accidentally used altitude above the surface instead of distance from Earth’s center.

Frequently asked questions

The Law of Universal Gravitation states that any two masses attract each other with a force proportional to the product of their masses and inversely proportional to the square of the distance between their centers.

Use SI units unless a problem gives a compatible alternative constant. Force should be in newtons, mass in kilograms, distance in meters, and \(G\) in \(\text{N}\cdot\text{m}^2/\text{kg}^2\).

Starting from \(F = Gm_1m_2/r^2\), rearrange to \(r = \sqrt{Gm_1m_2/F}\). The answer is the center-to-center distance between the masses.

Gravity spreads out in three-dimensional space. As distance increases, the same gravitational influence is distributed over a larger spherical area, so the force follows an inverse-square relationship.

Use \(F = mg\) for ordinary near-surface weight calculations where \(g\) is effectively constant. Use \(F = Gm_1m_2/r^2\) when distance from the attracting body changes enough to affect gravity.

Summary and next steps

The Law of Universal Gravitation explains how two masses attract each other through a force that grows with mass and decreases with the square of center-to-center distance. It is the foundation behind weight, gravitational acceleration, orbital motion, and gravitational potential energy.

The most important engineering checks are simple: use consistent SI units, measure distance from center to center, avoid confusing mass with weight, and choose the right level of gravity model for the scale of the problem.

Where to go next

Continue your learning path with these curated next steps.

Scroll to Top