1. Home
  2. Physics
  3. Gravitation
  4. Universal Gravitation Solver

Universal Gravitation Solver

Not sure which formula your question needs? Tick the values the question gives you and choose what to find. The solver works out which formulas to use, in which order, and solves it step by step.

PhysicsGrades 11–12AP · A-Level · IB · JEE23 quantities27 formulas

How it works

Most gravitation questions in exams aren't one-formula questions. You're given the height of a satellite, and asked for its period. Or you're given g and the radius, and asked for the mass or the density. You need one value first, then the next, then the answer.

This solver does that planning for you. It knows 27 gravitation formulas. When you tick the values you have, it checks which formula has only one missing value, works that value out, and repeats. As soon as it reaches the quantity you asked for, it stops and shows you the route.

The route appears before you press Solve. So you can use it as a hint. Look at the route, close the screen and try the question on paper. Then come back and check every step.

Three things that help

  • R, h and r are different. R is the planet's radius, h is the height above the ground and r is the distance from the centre. Questions often give h, and the formulas need r = R + h. The solver adds this step for you.
  • Use Quick fill. If the question is about the Earth, the Moon or another planet but doesn't give its mass or radius, pick it from the list.
  • Extra values are fine. Some questions give more than you need. The solver uses what it needs and tells you which values it left out.

Worked examples

Two questions that need more than one formula, solved in full by this tool.

Example 1

Question: A satellite circles the Earth 600 km above its surface. The Earth's mass is 5.972 × 10²⁴ kg and its radius is 6371 km. Find the time period of the orbit.

Plan: how this problem is solved
  1. Write the given values in SI units
  2. Find r, distance from the centre
  3. Find T, time period of the orbit

There is also another method, shown after the solution: a different chain of formulas.

Answer
Time period of the orbitT = 5793 s (≈ 1.609 h)
Distance from the centre (found on the way)r = 6.971 × 106 m (≈ 6971 km)
Step-by-step solution
  1. Write the given values in SI units
    M=5.972 × 1024 kg
    R=6371 km = 6.371 × 106 m
    h=600 km = 6 × 105 m
    G=6.674 × 10−11 N m²/kg²
    To find: T (Time period of the orbit)
  2. Find r, distance from the centre
    r=R + h
    =(6.371 × 106) + (6 × 105)
    =6.971 × 106 m (≈ 6971 km)
    Formula used: r = R + h.
  3. Find T, time period of the orbit
    T=2π √r3G M
    =2π × √(6.971 × 106)3(6.674 × 10−11) × (5.972 × 1024)
    =5793 s (≈ 1.609 h)
    Formula used: T = 2π√(r³/GM).
Another way: a different chain of formulas

The same answer, reached through r = R + h → v = √(GM/r) → T = 2πr/v.

  1. Find r, distance from the centre
    r=R + h
    =(6.371 × 106) + (6 × 105)
    =6.971 × 106 m (≈ 6971 km)
    Formula used: r = R + h.
  2. Find v, orbital speed
    v=√G Mr
    =√(6.674 × 10−11) × (5.972 × 1024)(6.971 × 106)
    =7561 m/s (≈ 7.561 km/s)
    Formula used: v = √(GM/r).
  3. Find T, time period of the orbit
    T=2π rv
    =2π × (6.971 × 106)7561
    =5793 s (≈ 1.609 h)
    Formula used: T = 2πr/v.
Key idea: Route used: r = R + h → T = 2π√(r³/GM). Each step finds one new value, and that value unlocks the next formula.

Example 2

Question: At what height above the Earth's surface does g drop to half its surface value? Take g = 9.8 m/s² and R = 6400 km.

Plan: how this problem is solved
  1. Write the given values in SI units
  2. Find r, distance from the centre
  3. Find h, height above the surface
Answer
Height above the surfaceh = 2.651 × 106 m (≈ 2651 km)
Distance from the centre (found on the way)r = 9.051 × 106 m (≈ 9051 km)
Step-by-step solution
  1. Write the given values in SI units
    g=9.8 m/s²
    R=6400 km = 6.4 × 106 m
    gh=4.9 m/s²
    G=6.674 × 10−11 N m²/kg²
    To find: h (Height above the surface)
  2. Find r, distance from the centre
    r=R √ggh
    =(6.4 × 106) × √9.84.9
    =9.051 × 106 m (≈ 9051 km)
    Formula used: gₕ = g (R/r)², rearranged to get r.
  3. Find h, height above the surface
    h=r − R
    =(9.051 × 106) − (6.4 × 106)
    =2.651 × 106 m (≈ 2651 km)
    Formula used: r = R + h, rearranged to get h.
Key idea: Route used: gₕ = g (R/r)² → r = R + h. Each step finds one new value, and that value unlocks the next formula.

Formulas it knows

It can rearrange each one for any of its quantities.

The planet
  • g = GM/R²
  • M = (4/3)πR³ρ
The object and where it is
  • r = R + h
Gravity and weight
  • W = mg
  • gₕ = g (R/r)²
  • gₕ = GM/r²
  • gd = g (1 − d/R)
  • Wₕ = m gₕ
  • F = GMm/r²
Orbit and escape
  • v = √(GM/r)
  • v = √(gₕ r)
  • T = 2πr/v
  • T = 2π√(r³/GM)
  • ω = 2π/T
  • v = ωr
  • vₑ = √(2GM/R)
  • vₑ = √(2gR)
Energy
  • V = −GM/r
  • U = −GMm/r
  • U = mV
  • K = GMm/2r
  • K = ½mv²
  • E = −K
  • E = −GMm/2r
  • ΔE = GMm (1/R − 1/2r)
  • Eesc = GMm/R
  • Eesc = ½m vₑ²

Which quantity is which?

Mixing these up is the most common mistake in this chapter.

SymbolQuantityWhat it means
MMass of the planet (or central body)The big body: planet, Moon, Sun or star.
RRadius of the planetFrom the planet's centre to its surface.
ρAverage density of the planetMass divided by volume.
gGravity at the surfaceCalled g. On Earth it is 9.8 m/s².
mMass of the objectThe small body: satellite, person, rock.
hHeight above the surfaceMeasured from the ground, not the centre.
rDistance from the centrer = R + h. For two bodies, the distance between their centres.
dDepth below the surfaceHow far down inside the planet.
ghGravity at height h (distance r)The value of g up at that height.
gdGravity at depth dThe value of g down at that depth.
WWeight on the surfaceW = mg, in newtons.
WhWeight at height hWeight up at height h.
FGravitational force between the twoPull between m and M at distance r.
vOrbital speedSpeed of a satellite in a circular orbit.
TTime period of the orbitTime for one full orbit.
ωAngular speed of the orbitAngle covered per second, ω = 2π/T.
veEscape velocity from the surfaceLaunch speed needed to never come back.
VGravitational potential at rEnergy per kg at distance r. It is negative.
UPotential energy of m at rU = −GMm/r. It is negative.
KKinetic energy in orbitK = ½mv² for the orbiting object.
ETotal energy in orbitE = K + U = −GMm/2r. It is negative.
ΔEEnergy to put m into orbit from the surfaceWork needed to lift m from the surface into orbit at r.
EescEnergy needed to escape from the surfaceWork needed to send m away for good.

Frequently asked questions

How is this different from the other gravitation solvers?
Each of the other solvers handles one kind of problem, like escape velocity or orbital speed. This one handles the whole chapter at once. You tell it what you have and what you want, and it picks and links the formulas.
What if it says there aren't enough values?
It lists the quantities that would unlock the answer. Read the question again: one of them is usually hidden in the words, like "on the surface of the Earth" (which gives you M and R) or "a geostationary satellite" (T = 24 hours). Click a suggestion to tick it.
Why does it sometimes use a different formula from my book?
There's often more than one route. The solver shows the shortest one first, and where there's another route it shows that too under "Another way". Both give the same answer.
Can I enter values in km, hours or g/cm³?
Yes. Every value has a unit list, and the first step of the solution converts everything to SI units.
Is it free?
Yes. There's no sign-up, and everything runs in your browser.