NOTACAL logo

Gravitational Force Calculator

Gravitational Force Calculator

Give us your feedback! Was this useful?

Introduction

Every object with mass attracts every other object with mass. This universal attraction, known as gravity, governs the motion of planets around stars, holds moons in orbit around planets, drives the tides on Earth, and keeps your feet firmly planted on the ground. It is the dominant force across astronomical distances and the reason the universe is structured as it is — from the spiral arms of galaxies down to the trajectory of a falling apple. [nasa-gravity]

Sir Isaac Newton published his law of universal gravitation in 1687 in his landmark work Philosophiæ Naturalis Principia Mathematica. Legend has it that observing an apple fall from a tree inspired Newton to wonder whether the same force that pulled the apple to Earth also held the Moon in its orbit. He realized that gravity is not a special Earth-bound phenomenon but a universal force that acts between all masses everywhere. This insight unified terrestrial and celestial mechanics for the first time in human history — the same force that makes a ball fall to the ground also governs the dance of the planets. [britannica-gravity]

The law is remarkably simple: the gravitational force between two objects is proportional to the product of their masses and inversely proportional to the square of the distance between their centers. Doubling either mass doubles the force; doubling the distance reduces the force to a quarter. This inverse-square relationship means gravity weakens quickly with distance, which is why we barely feel the gravitational pull of distant stars but are firmly bound to Earth.

Gravitational force calculations have profound real-world applications. Aerospace engineers use them to plan spacecraft trajectories and orbital insertions. Geologists measure tiny variations in gravitational acceleration to map underground structures and mineral deposits. Astronomers infer the existence of exoplanets by detecting the slight gravitational wobble they induce in their parent stars. Oceanographers model tides as the gravitational pull of the Moon and Sun stretching Earth's oceans. [physicsclass-gravity] Even your weight — the force a bathroom scale reads — is simply the gravitational attraction between your body and the entire mass of Earth.

How to Use

This calculator has four modes: solve for gravitational force, mass of the first object, mass of the second object, or distance between objects. Select the mode, enter the known values, and the calculator computes the unknown quantity using Newton's law.

Worked Example 1: Your Weight in Newtons

A 70 kg person standing on Earth's surface (mass 5.972 × 10²⁴ kg, radius 6.371 × 10⁶ m):

Given m₁ = 70 kg, m₂ = 5.972 × 10²⁴ kg, r = 6.371 × 10⁶ m.

F=(6.674×1011)(70)(5.972×1024)(6.371×106)2F = \frac{(6.674 \times 10^{-11})(70)(5.972 \times 10^{24})}{(6.371 \times 10^{6})^2}

This evaluates to approximately 687 newtons. This is the gravitational force Earth exerts on the person — what we experience as weight. A 70 kg person's weight of 687 N corresponds to an acceleration of 9.81 m/s² (since F = mg, so g = 687 / 70 ≈ 9.81 m/s²). This example shows that the gravitational force calculator essentially computes weight, but only when one of the masses is an entire planet and the distance is the planet's radius.

Worked Example 2: Earth and Moon

The gravitational attraction between Earth and the Moon keeps the Moon in orbit. Given Earth mass 5.972 × 10²⁴ kg, Moon mass 7.348 × 10²² kg, and mean orbital distance 3.844 × 10⁸ m:

F=(6.674×1011)(5.972×1024)(7.348×1022)(3.844×108)2F = \frac{(6.674 \times 10^{-11})(5.972 \times 10^{24})(7.348 \times 10^{22})}{(3.844 \times 10^{8})^2}

This gives approximately 1.98 × 10²⁰ N — an enormous force by human standards. To put this in perspective, this is equivalent to the weight of about 2 × 10¹⁹ kg at Earth's surface, or roughly 3,300 times the mass of all the water in Earth's oceans. This colossal force continually pulls the Moon toward Earth, providing the centripetal force needed for its roughly 28-day orbit.

Worked Example 3: Gravitational Force Between Two People

Two people of 70 kg and 50 kg stand 1 meter apart:

F=(6.674×1011)(70)(50)(1)2F = \frac{(6.674 \times 10^{-11})(70)(50)}{(1)^2}

This yields approximately 2.34 × 10⁻⁷ N — an imperceptibly tiny force. It is about the weight of a single grain of sand. This example illustrates why we do not feel the gravitational pull of people or objects around us. Gravitational forces are significant only when at least one of the masses is astronomical in scale. The weakness of gravity compared to other fundamental forces — it is roughly 10³⁶ times weaker than the electromagnetic force — is why everyday objects do not noticeably attract each other.

Worked Example 4: Finding Distance from Force

If the gravitational force between two 1,000 kg objects is measured as 6.674 × 10⁻⁵ N, what is the distance between them? Using the formula rearranged for distance:

r=Gm1m2F=(6.674×1011)(1000)(1000)6.674×105r = \sqrt{\frac{G m_1 m_2}{F}} = \sqrt{\frac{(6.674 \times 10^{-11})(1000)(1000)}{6.674 \times 10^{-5}}}

This simplifies to r = 1 m. This example shows how the inverse-square relationship works: with two 1,000 kg masses at 1 m, the force is 6.674 × 10⁻⁵ N, which is still quite small. To get a measurable 1 N of force between these masses, the distance would need to be just 8.2 mm — a vivid demonstration of how weak gravity is at ordinary scales. [hyperphysics-gravity]

The Formula

Newton's law of universal gravitation states that every particle of matter in the universe 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:

F=Gm1m2r2F = G \frac{m_1 m_2}{r^2}
[nasa-gravity]

Where:

  • F is the gravitational force between the two masses, measured in newtons (N).
  • G is the universal gravitational constant, approximately 6.674 × 10⁻¹¹ N·m²/kg².
  • m₁ and m₂ are the two masses, measured in kilograms (kg).
  • r is the distance between the centers of the two masses, measured in meters (m).

The universal gravitational constant G is one of the most precisely measured yet hardest to measure constants in physics. Its value was first determined experimentally by Henry Cavendish in 1798 using a torsion balance apparatus — now known as the Cavendish experiment. The current CODATA recommended value is 6.67430 × 10⁻¹¹ m³·kg⁻¹·s⁻² with a relative standard uncertainty of about 22 parts per million. [nasa-grav-constant] Unlike many other fundamental constants, G is known to relatively low precision because gravity is so weak that measuring the tiny forces between laboratory masses requires extraordinary experimental care.

The inverse-square nature of the law means that if you double the distance between two masses, the gravitational force drops to one-quarter of its original value. If you triple the distance, the force drops to one-ninth. This rapid decay with distance is why the gravitational influence of distant stars is negligible on Earth, yet the Sun's gravity is still strong enough at 150 million kilometers to hold all eight planets in orbit. The same inverse-square relationship appears in Coulomb's law for electrostatic force and in the intensity of light from a point source — it is the natural consequence of forces spreading uniformly in three-dimensional space from a point source.

Rearranged forms for solving other variables:

m1=Fr2Gm2m_1 = \frac{F r^2}{G m_2}
m2=Fr2Gm1m_2 = \frac{F r^2}{G m_1}
r=Gm1m2Fr = \sqrt{\frac{G m_1 m_2}{F}}

These rearrangements follow directly from algebra on the original equation and allow you to compute any unknown when the other three quantities are known. When solving for mass, the mode selection simply determines which mass the equation isolates.

Reference Table

Gravitational Force Between Various Object Pairs

Object 1Object 2DistanceForce (N)Comparison
Earth (5.97×10²⁴ kg)70 kg person6.37×10⁶ m6.87×10²Weight of an adult
EarthMoon (7.35×10²² kg)3.84×10⁸ m1.98×10²⁰Holds Moon in orbit
EarthSun (1.99×10³⁰ kg)1.50×10¹¹ m3.52×10²²Earth's orbital binding
SunEarth1.50×10¹¹ m3.52×10²²Equal and opposite reaction
SunJupiter (1.90×10²⁷ kg)7.79×10¹¹ m4.16×10²³Largest planet, strongest pull
Mars (6.39×10²³ kg)70 kg person3.39×10⁶ m2.59×10²Weight on Mars (~38% of Earth)
Jupiter (1.90×10²⁷ kg)70 kg person6.99×10⁷ m1.81×10³Weight on Jupiter (~2.5× Earth)
Gravitational force for various object pairs, spanning from everyday human weight (687 N) to the colossal forces binding the solar system (10²³ N). Note the logarithmic scale — forces vary by over 20 orders of magnitude.

The table reveals an astonishing range of gravitational forces. The force Earth exerts on a person is a few hundred newtons — comparable to lifting a heavy suitcase. The force between Earth and the Moon is roughly ten billion billion times larger, yet it only produces an orbital acceleration of about 0.0027 m/s² because of the Moon's enormous mass. The Sun-Jupiter interaction is the strongest gravitational bond in the solar system after the Sun's own internal gravity, reflecting Jupiter's status as the most massive planet.

Gravitational Acceleration at Planet Surfaces

PlanetMass (kg)Radius (m)Surface g (m/s²)Earth Relative
Mercury3.30×10²³2.44×10⁶3.700.38
Venus4.87×10²⁴6.05×10⁶8.870.90
Earth5.97×10²⁴6.37×10⁶9.811.00
Mars6.39×10²³3.39×10⁶3.710.38
Jupiter1.90×10²⁷6.99×10⁷25.952.64
Saturn5.68×10²⁶5.82×10⁷11.191.14
Uranus8.68×10²⁵2.54×10⁷8.980.92
Neptune1.02×10²⁶2.46×10⁷11.251.15
Surface gravitational acceleration of planets in the solar system. Jupiter's surface gravity is over 2.6 times Earth's, while Mercury and Mars have only 38% of Earth's gravity.

Surface gravity is derived from the same universal law: g = GM / R², where M is the planet's mass and R is its radius. The variation across planets is dramatic. Jupiter's immense mass gives it the highest surface gravity despite its large radius, while Mercury's low mass results in gravity barely more than a third of Earth's. Understanding surface gravity is essential for planning manned missions: a 70 kg astronaut would weigh only about 260 N on Mars versus 687 N on Earth, affecting everything from suit design to the energy required for landing and takeoff. [khan-gravity]

Practical Tips

Always use consistent SI units. The gravitational constant G is defined in SI units: N·m²/kg². This means masses must be in kilograms and distances in meters. Entering masses in grams or distances in kilometers without converting produces wildly incorrect results. To convert: 1 km = 1,000 m, 1 g = 0.001 kg, and 1 Earth mass = 5.972 × 10²⁴ kg. For astronomical calculations, consider using astronomical units (AU) for distance and solar masses for mass, but convert to SI before plugging into the formula.

Gravity is additive but acts from centers. The law assumes each mass is concentrated at its center of mass. For spherical objects like planets and stars, this is exact thanks to the shell theorem — a uniformly dense sphere's gravitational pull is identical to that of a point mass at its center. For irregular objects, the approximation becomes less accurate at close distances. When computing the force between a person and Earth, the effective distance is Earth's radius because the person is on the surface.

The Cavendish experiment measured G using lead spheres. In 1798, Henry Cavendish used a torsion balance with 350-pound lead spheres to measure the tiny gravitational attraction between laboratory masses — the first measurement of G. His result was within 1% of the modern value, a remarkable achievement for 18th-century instrumentation. The experiment is often described as "weighing the Earth" because knowing G allowed scientists to calculate Earth's mass from its surface gravity. [cavendish]

Weight is not mass. Weight is the gravitational force exerted on a mass — F in Newton's law. Mass is an intrinsic property of matter that does not change with location. A 70 kg person has a mass of 70 kg everywhere in the universe, but their weight changes from 687 N on Earth to 260 N on Mars to 1,810 N on Jupiter. A bathroom scale calibrated for Earth's gravity would give incorrect readings on other planets.

Tides are caused by gravitational gradients. The Moon and Sun do not exert uniform gravitational force across Earth — the side facing the Moon experiences slightly stronger pull than the center, and the far side experiences slightly weaker pull. This difference, called the tidal force, stretches Earth's oceans into two bulges. As Earth rotates through these bulges, coastal locations experience two high tides and two low tides each day. The Sun contributes about 46% of the tidal force of the Moon, producing spring tides (stronger) when Sun and Moon align and neap tides (weaker) when they are perpendicular.

Use orbital velocity for circular orbits. For objects in circular orbit, the gravitational force provides exactly the centripetal force needed: GMm/r² = mv²/r. Solving for v gives the orbital velocity v = √(GM/r). This relationship allows calculating orbital speeds for satellites around any celestial body. A low Earth orbit at 400 km altitude requires about 7.8 km/s, while geostationary orbit at 35,786 km requires about 3.1 km/s. The Orbital Velocity Calculator performs these calculations directly.

Limitations

  • Point mass approximation. The law treats each object as a point mass located at its center of mass. For spherical objects this is exact, but for irregular shapes or objects in close proximity, the approximation introduces error. The force between a mountain and a nearby hiker is not well-described by a center-to-center distance.
  • No general relativistic effects. Newton's law breaks down in strong gravitational fields. Near black holes, neutron stars, or when extreme precision is needed (such as GPS satellite timing corrections), Einstein's general relativity provides a more accurate description. The precession of Mercury's orbit — an excess of 43 arcseconds per century over Newtonian predictions — was one of the key early confirmations of general relativity.
  • No other forces considered. The calculation assumes gravity is the only force acting between the objects. In real systems, electromagnetic forces, atmospheric drag, solar radiation pressure, and tidal forces all contribute to the net force on an object.
  • Static calculation. The formula computes the instantaneous gravitational force for a given distance. It does not model dynamic effects such as orbital decay, three-body interactions, or energy dissipation. For orbiting bodies, the force continually changes direction as the bodies move.
  • G constant uncertainty. The gravitational constant G is known to only about 22 parts per million relative uncertainty — far less precise than most fundamental constants. This uncertainty propagates into all gravitational force calculations, though the effect is negligible for most practical applications.

Frequently Asked Questions

What is the gravitational constant G?
G is the universal gravitational constant, approximately 6.674 × 10⁻¹¹ N·m²/kg². It represents the strength of gravity and appears in Newton's law of universal gravitation. G was first measured by Henry Cavendish in 1798 using a torsion balance, and its precise value is still an active area of experimental physics.
Why is gravity so much weaker than the other fundamental forces?
Gravity is about 10³⁶ times weaker than electromagnetism and about 10³⁸ times weaker than the strong nuclear force. The reason is not fully understood and is one of the major open questions in physics — known as the hierarchy problem. Some theories, such as those involving extra spatial dimensions, suggest that gravity may be intrinsically strong but appears weak because it leaks into additional dimensions.
How does the inverse-square law work?
The inverse-square law means that doubling the distance between two masses reduces the gravitational force to one-quarter of its original value. Tripling the distance reduces it to one-ninth. This geometric relationship arises because gravitational field lines spread uniformly over the surface area of a sphere (4πr²), so the field intensity decreases as 1/r².
What is the difference between mass and weight?
Mass is the amount of matter in an object and is constant everywhere in the universe. Weight is the gravitational force exerted on that mass, calculated as F = mg where g is the local gravitational acceleration. A 70 kg person has a mass of 70 kg everywhere but weighs 687 N on Earth, 260 N on Mars, and is weightless in deep space.
How was Earth's mass determined?
Once Cavendish measured G in 1798, scientists could calculate Earth's mass by rearranging the formula: M = gR²/G, where g = 9.81 m/s² is surface gravity and R = 6.37 × 10⁶ m is Earth's radius. This gave approximately 5.97 × 10²⁴ kg — the mass we use today. Cavendish's experiment is often called 'weighing the Earth' for this reason.
Does gravity act instantaneously?
No. According to general relativity, changes in gravitational fields propagate at the speed of light. If the Sun were to suddenly disappear, Earth would continue orbiting its former position for about 8 minutes — the time light takes to travel from the Sun to Earth. Newton's law assumes instant action at a distance, which is an approximation that works well for most solar system calculations.
How do astronomers detect exoplanets using gravity?
Astronomers detect exoplanets primarily through two gravitational effects: the radial velocity method measures the star's slight wobble as the planet tugs it, and gravitational microlensing detects the bending of light from a background star by a planet's gravity. Over 5,000 exoplanets have been confirmed using these techniques, with the radial velocity method being the most productive for ground-based discovery.
What is the shell theorem?
The shell theorem, proved by Newton, states that a spherically symmetric mass distribution gravitates as if all its mass were concentrated at its center. This is why we can treat planets and stars as point masses when calculating gravitational force from outside their surfaces. It also explains why the gravitational force inside a uniform spherical shell is exactly zero.
Why do astronauts feel weightless in orbit?
Astronauts in orbit are not actually weightless — Earth's gravity at the International Space Station's altitude (400 km) is still about 90% as strong as at the surface. They feel weightless because they are in continuous free fall around Earth. Both the astronauts and the spacecraft accelerate toward Earth at the same rate, creating the sensation of weightlessness, just as you feel weightless in a freely falling elevator.
How does gravity cause tides?
Tides are caused by the difference in gravitational pull across Earth's diameter. The Moon pulls the side of Earth facing it slightly more strongly than the center, creating a bulge. The far side experiences weaker pull, creating a second bulge. As Earth rotates, these two bulges travel around the planet, producing two high tides and two low tides each day in most coastal locations.
What happens to gravity at very small distances?
At subatomic scales, gravity is so weak compared to other forces that it is effectively negligible. The gravitational force between two protons is about 10⁻³⁶ times weaker than the electromagnetic repulsion pushing them apart. Physicists have not yet experimentally tested Newton's law below distances of about 10⁻⁵ m, and quantum gravity effects are expected to become significant at the Planck scale of 10⁻³⁵ m.
Can gravitational force be shielded or blocked?
No. Unlike electromagnetic forces, gravity cannot be shielded, blocked, or canceled by any known material. There is no such thing as anti-gravity material. The only way to counteract gravity's effect is to provide an opposing force — a rocket's thrust, the normal force from a chair, or the centripetal acceleration of an orbiting spacecraft.

References

  1. [1]NASA. "Newton's Law of Universal Gravitation."
  2. [2]HyperPhysics. "Newton's Law of Gravitation." Georgia State University.
  3. [3]Khan Academy. "Newton's Law of Universal Gravitation."
  4. [4]Encyclopaedia Britannica. "Newton's Law of Gravity."
  5. [5]The Physics Classroom. "Newton's Law of Universal Gravitation."
  6. [6]NIST. "CODATA Value: Newtonian Constant of Gravitation."
  7. [7]American Physical Society. "Cavendish Experiment."

Last updated: July 29, 2026

1b

UnByte — Independent Software Engineering

Every calculator references authoritative sources — Editorial policy