Skip to content
LoveToCalc

Theorem — what does that mean?

Vis-viva equation

On an elliptical orbit the speed changes all the way round. The distance from the centre and the size of the ellipse decide it at every point.

In Swedish: Vis viva-ekvationen

Vis-viva equation

The relation

v²=GM(2r−1a)

The speed at any point of an elliptical orbit, from the distance to the centre and the semi-major axis. Fastest closest in, slowest at the far end.

An elliptical orbit with the body M at one focus. The orbiting body is the distance r from M, and the arrow along the orbit is its speed v there. The line from the middle of the ellipse out to the end of its long axis is the semi-major axis a.
Solve for
Solved for v

v=GM(2r−1a)

v≈32,730.7058m/s

v is approximately the square root of ((6.674 times 10 to the power of minus 11 times 1.988 times 10 to the power of 30) times ((2 divided by 1.496 times 10 to the power of 11) minus (1 divided by 1.888 times 10 to the power of 11))), is approximately the square root of (1.327 times 10 to the power of 20 times (1.337 times 10 to the power of minus 11 minus 5.297 times 10 to the power of minus 12)), is approximately the square root of (1.327 times 10 to the power of 20 times 8.072 times 10 to the power of minus 12), is approximately the square root of (1.071 times 10 to the power of 9), is approximately 32,730.7058 m/s

Working5 steps

The formula

v² = G · M · (2/r − 1/a)

G is the gravitational constant, 6.6743 · 10⁻¹¹ N·m²/kg², M the mass of the body orbited, r the distance from its centre at the point you are asking about, a the semi-major axis of the ellipse — half its longest diameter — and v the speed there. All lengths are in metres.

Holds when one body is much heavier than the other, so the heavy one stays put at a focus, and nothing but their mutual gravity acts — no drag, no engine burning.

A spacecraft leaving the Earth’s orbit on a transfer ellipse to Mars. The ellipse touches the Earth’s orbit at r = 149.6 · 10⁹ m and Mars’s at 228.0 · 10⁹ m (NASA’s planetary fact sheet), so a = (149.6 + 228.0) / 2 · 10⁹ = 188.8 · 10⁹ m. With the Sun’s mass 1.9884 · 10³⁰ kg:

v² = 6.6743 · 10⁻¹¹ · 1.9884 · 10³⁰ · (2 / 149.6 · 10⁹ − 1 / 188.8 · 10⁹), v ≈ 32.7 km/s.

The Earth itself moves at about 29.8 km/s, so the spacecraft needs about 2.9 km/s more than the planet it leaves.

Where it comes from

It is energy conservation per kilogram. Kinetic energy is ½v² and potential energy −GM/r, and on an ellipse their sum is the same at every point, −GM/(2a):

½v² − GM/r = −GM/(2a).

Multiply by 2 and move GM/r over: v² = 2GM/r − GM/a = GM(2/r − 1/a).

r and a are not the same length

The common mistake is to put the same number in for both. Then 2/r − 1/a becomes 1/r, and the equation gives the circular orbital velocity √(GM/r) — 29.8 km/s in the example above instead of 32.7. The answer looks reasonable and is the speed of a different orbit. r is where the body is now; a is a property of the whole ellipse and does not change round the orbit.

The other end of the ellipse

Arriving at Mars’s distance, r = 228.0 · 10⁹ m on the same ellipse:

v² = 6.6743 · 10⁻¹¹ · 1.9884 · 10³⁰ · (2 / 228.0 · 10⁹ − 1 / 188.8 · 10⁹), v ≈ 21.5 km/s.

Mars moves at about 24.1 km/s, so the spacecraft arrives slower than the planet and needs a second push of roughly 2.6 km/s to stay alongside it.

The special cases

Case 2/r − 1/a becomes Speed
Circle, r = a 1/r √(GM/r), the orbital velocity
Escape, a → ∞ 2/r √(2GM/r), the escape velocity
Closest point, r = a(1 − e), e the eccentricity (1 + e)/(a(1 − e)) the fastest point

The formula covers ellipses with r between the closest and the furthest point, which is at most 2a from the centre.

Common mistakes

Frequently asked questions

What does “vis viva” mean? Latin for “living force”, an old name for what is now kinetic energy (it was mv², without the half). The equation is energy conservation in that sense.

Why is a body fastest at its closest point? The total energy is fixed. Closest in, the potential energy is at its lowest, so the kinetic energy and the speed are at their highest. Kepler’s second law says the same thing as equal areas in equal times.

How do I find a from the closest and furthest distances? a is their average: a = (r_min + r_max) / 2, both measured from the centre of the body orbited.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
Gv²M(2r−1a)32,730.71²1.988 × 10³⁰(21.496 × 10¹¹−11.888 × 10¹¹)6.674 × 10⁻¹¹ N·m²/kg²
Mv²G(2r−1a)32,730.71²6.674 × 10⁻¹¹(21.496 × 10¹¹−11.888 × 10¹¹)1.988 × 10³⁰ kg
r2v²GM+1a232,730.71²6.674 × 10⁻¹¹·1.988 × 10³⁰+11.888 × 10¹¹1.496 × 10¹¹ m
a12r−v²GM121.496 × 10¹¹−32,730.71²6.674 × 10⁻¹¹·1.988 × 10³⁰1.888 × 10¹¹ m
vGM(2r−1a)6.674 × 10⁻¹¹·1.988 × 10³⁰(21.496 × 10¹¹−11.888 × 10¹¹)32,730.71 m/s

Last reviewed October 7, 2026 ·How pages are reviewed

MechanicsAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.