Gravitational Force Calculator — Calculate Gravity Between Any Two Masses
Gravity is the fundamental force that holds the universe together — binding stars into galaxies, planets into solar systems, and keeping you on the ground. Newton's law of universal gravitation quantifies the attractive force between any two masses based on their masses and the distance between them. The free gravitational force calculator on PublicSoftTools calculates this force for any pair of masses at any separation.
Newton's Law of Universal Gravitation
Every object in the universe with mass attracts every other object with mass. Newton's law quantifies this:
F = G × (m₁ × m₂) / r²
Where:
- F = gravitational force (newtons, N)
- G = gravitational constant = 6.674 × 10⁻¹¹ N⋅m²/kg²
- m₁, m₂ = masses of the two objects (kilograms)
- r = distance between the centres of the objects (metres)
The force acts equally on both objects (Newton's Third Law), directed along the line joining their centres. It is always attractive — there is no gravitational repulsion.
Gravitational Force Examples
| Object pair | Mass 1 | Mass 2 | Distance | Force | Notes |
|---|---|---|---|---|---|
| Earth and Moon | 5.97 × 10²⁴ kg | 7.34 × 10²² kg | 3.84 × 10⁸ m | 1.98 × 10²⁰ N | This force keeps the Moon in orbit; equivalent to ~20 quadrillion tonnes |
| Earth and 70 kg person | 5.97 × 10²⁴ kg | 70 kg | 6.37 × 10⁶ m (Earth radius) | 686 N | This is the person's weight; matches W = mg = 70 × 9.8 = 686 N |
| Sun and Earth | 1.99 × 10³⁰ kg | 5.97 × 10²⁴ kg | 1.50 × 10¹¹ m (1 AU) | 3.54 × 10²² N | This centripetal force keeps Earth in its ~365-day orbit |
| Two 1 kg spheres 1 m apart | 1 kg | 1 kg | 1 m | 6.674 × 10⁻¹¹ N | Extremely small — explains why only astronomical masses produce noticeable gravity |
| Jupiter and its moon Io | 1.90 × 10²⁷ kg | 8.93 × 10²² kg | 4.22 × 10⁸ m | 6.35 × 10²² N | Tidal forces from this intense gravity cause volcanic activity on Io |
How to Use the Gravitational Force Calculator
- Open the gravitational force calculator.
- Enter Mass 1 in kilograms (or select a preset from the dropdown: Earth, Moon, Sun, etc.).
- Enter Mass 2 in kilograms.
- Enter the distance between centres in metres. For objects on Earth's surface, use Earth's radius (6.371 × 10⁶ m) as the distance from a person to Earth's centre.
- Click Calculate. The result shows the gravitational force in newtons, along with the equivalent weight in common units.
Surface Gravity on Different Bodies
| Body | Surface gravity (g) | Relative to Earth | Weight of 70 kg person |
|---|---|---|---|
| Sun | 274 m/s² | 28.0× Earth | 19,180 N |
| Mercury | 3.7 m/s² | 0.38× Earth | 259 N |
| Venus | 8.87 m/s² | 0.90× Earth | 621 N |
| Earth | 9.81 m/s² | 1.00× (baseline) | 687 N |
| Moon | 1.62 m/s² | 0.165× Earth | 113 N |
| Mars | 3.72 m/s² | 0.38× Earth | 260 N |
| Jupiter | 24.8 m/s² | 2.53× Earth | 1,736 N |
| Saturn | 10.4 m/s² | 1.06× Earth | 728 N |
The Inverse-Square Law
The gravitational force decreases with the square of distance: if the distance doubles, the force becomes 1/4 as strong; triple the distance, force becomes 1/9 as strong. This is the inverse-square law and applies to all central forces that spread uniformly in three-dimensional space (including light, electric force, and radiation).
Consequences:
- An astronaut 400 km above Earth (ISS altitude) still experiences approximately 88% of surface gravity — not weightlessness. The weightlessness astronauts feel is due to continuous free fall (orbital motion), not absence of gravity.
- The Moon experiences gravity from the Sun and Earth simultaneously. The side of the Moon facing Earth experiences slightly more Earth gravity than the far side — this tidal gradient causes tidal locking (why we always see the same face of the Moon).
- A person at the top of Mount Everest (8,849 m above sea level) weighs approximately 0.28% less than at sea level — measurable but negligible for everyday purposes.
The Gravitational Constant G
The gravitational constant G = 6.674 × 10⁻¹¹ N⋅m²/kg² is one of the fundamental constants of nature. It was first measured by Henry Cavendish in 1798 using a torsion balance — a difficult experiment because gravitational forces between laboratory-scale masses are extraordinarily tiny.
G is extremely small, which is why gravity is the weakest of the four fundamental forces despite being the most noticeable at macroscopic scales. The electric force between a proton and electron is 10³⁹ times stronger than the gravitational force between them. Gravity only dominates at astronomical scales because it is always attractive (unlike electricity, which can be both attractive and repulsive and therefore cancels at large scales in neutral matter).
Weight vs. Mass
A common source of confusion in everyday language:
- Mass is the amount of matter in an object, measured in kilograms (kg). Mass does not change with location.
- Weight is the gravitational force on an object: W = mg. Weight changes with location (different g on Moon, Mars, etc.) and is measured in newtons (N).
An astronaut with a mass of 80 kg on Earth weighs 80 × 9.81 = 785 N. On the Moon, the same astronaut still has a mass of 80 kg but weighs only 80 × 1.62 = 130 N — they are "lighter" in everyday language because the Moon's gravitational pull is weaker.
Scales calibrated in kilograms technically measure force (weight) and assume you are on Earth's surface — they would give incorrect "mass" readings on other planets.
Orbital Motion and Gravity
Objects in orbit are in continuous free fall — they fall toward the central body but move sideways fast enough that the surface curves away beneath them at the same rate. The condition for circular orbit:
Gravitational force = centripetal force required
G × M × m / r² = m × v² / r → v = √(G × M / r)
The orbital velocity depends only on the central mass and orbital radius, not on the orbiting object's mass. The ISS orbits at approximately 7.66 km/s at 408 km altitude. Kepler's Third Law follows from this: orbital period T² ∝ r³.
Common Questions
Is there gravity in space?
Yes — gravity exists everywhere in space. Gravity has infinite range (though it weakens with distance). Astronauts aboard the ISS experience approximately 88% of Earth's surface gravity. They feel weightless because they are in continuous free fall (orbit) — the same feeling as in a falling lift. True weightlessness only occurs infinitely far from all masses, which is never achieved in practice.
What would happen if Earth's gravity were stronger?
Higher surface gravity would increase the minimum wing area needed for flight, change the maximum size of land animals (bones must be stronger relative to mass), increase atmospheric pressure, and affect the escape velocity needed for space travel. Many planetary scientists explore the "habitable gravity range" for life-supporting planets.
How does gravity cause tides?
Tides are caused by the difference in gravitational force across the diameter of Earth. The side of Earth facing the Moon experiences slightly stronger lunar gravity than the far side. This tidal gradient stretches Earth and its oceans along the Earth-Moon axis, creating two tidal bulges — one facing the Moon and one on the opposite side. As Earth rotates, different parts of the planet pass through these bulges, creating two high tides per day.
Calculate Gravitational Force
Enter two masses and the distance between them to find the gravitational force — with presets for Earth, Moon, Sun, and planets.
Open Gravitational Force Calculator