Advanced

Universal Gravitation Calculator

Compute the gravitational attraction between two masses, or solve for any missing quantity, using Newton's law of universal gravitation.

kg

Leave one field blank to solve for it

kg

m

N

Gravitational force
198,202,163,610,789,540,000 N
Mass m1
5,972,000,000,000,000,000,000,000 kg
Mass m2
73,480,000,000,000,000,000,000 kg
Separation
384,400,000 m
Force vs separation (inverse-square)
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Newton's law of universal gravitation gives the attractive force between two masses as F = G·m1·m2/r², where G = 6.674×10⁻¹¹ N·m²/kg². Enter any three of force, the two masses, and their separation, and this calculator solves for the fourth, showing the inverse-square falloff of force with distance.

Formula
F = G · m1 · m2 / r², with G = 6.674×10⁻¹¹ N·m²/kg²
How this is calculated

Newton's law of universal gravitation states that every pair of point masses attracts each other with a force proportional to the product of their masses and inversely proportional to the square of the distance between their centers: F = G·m1·m2/r². The gravitational constant G is 6.674×10⁻¹¹ N·m²/kg². Masses m1 and m2 are entered in kilograms and the separation r between centers of mass in meters; the resulting force F is in newtons.

Enter any three of the four quantities {F, m1, m2, r} and leave the fourth blank to solve for it. The force form is F = G·m1·m2/r²; rearranging gives m1 = F·r²/(G·m2), m2 = F·r²/(G·m1), and r = √(G·m1·m2/F). The chart plots F against separation ρ over a range around r, showing the characteristic inverse-square falloff — doubling the distance cuts the force to one quarter.

The law treats the bodies as point masses (or, equivalently for spherically symmetric bodies, as if all mass were concentrated at their centers). It is a classical approximation that breaks down in strong fields where general relativity applies. Edge cases such as zero separation, zero mass in a denominator, or a non-positive force when solving for r return no result, since they are physically undefined.

Frequently asked questions

G is the universal gravitational constant, 6.674×10⁻¹¹ N·m²/kg². It sets the absolute strength of gravity and is the same everywhere in the universe.

Because gravity follows an inverse-square law: F ∝ 1/r². Doubling the separation reduces the force to one quarter, and tripling it to one ninth.

Yes. Leave any one of force, m1, m2, or separation blank and fill the other three; the calculator rearranges F = G·m1·m2/r² to find the missing value.

Also known as

universal gravitation
newton gravity
f=gm1m2/r2
gravitational force
gravity between masses
law of universal gravitation
newton's law of gravitation
gravity force calculator

APA

TG we-Calculate Editorial Team. (2026). Universal Gravitation Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/universal-gravitation-calculator

Chicago

TG we-Calculate Editorial Team. "Universal Gravitation Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/universal-gravitation-calculator.

IEEE

TG we-Calculate Editorial Team, "Universal Gravitation Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/universal-gravitation-calculator

BibTeX

@misc{wecalculate_universal_gravitation_calculator, title = {Universal Gravitation Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/universal-gravitation-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?