ForHosting KIT · Developer Utilities

Escape velocity at altitude calculator

This escape velocity at altitude calculator finds the ideal speed needed to leave a spherical body's gravitational field from a specified height.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Enter the body's mass in kilograms, its reference radius in metres, and altitude in metres. The calculator adds radius and altitude to obtain distance from the centre, then evaluates the classical Newtonian expression. Results are returned in metres per second and kilometres per second. The calculation is deterministic, uses no network service, and rejects inputs whose combined centre distance is zero or negative.

Understand the distance used by the formula

Escape velocity depends on distance from the centre of mass, not altitude by itself. A published altitude usually measures height above a reference surface, while Newtonian gravity uses the radial coordinate measured from the body's centre. This calculator therefore forms r = R + h, where R is the reference radius and h is altitude, before applying the escape-speed equation. At Earth's surface, altitude is zero and the centre distance equals Earth's radius. Four hundred kilometres above that surface, the centre distance is the radius plus 400,000 metres. A negative altitude can describe a location below the chosen reference surface, provided the resulting centre distance remains positive. If radius plus altitude is zero or negative, the geometry has no valid radial distance and the capability returns an invalid-input error. Use consistent SI units: mass in kilograms and both lengths in metres. Converting kilometres to metres before submitting prevents a thousandfold distance error and a large, misleading change in the result.

How escape velocity is calculated

The calculator uses v = sqrt(2GM/(R+h)). Here G is the gravitational constant, fixed at 6.6743 × 10^-11 cubic metres per kilogram per second squared; M is the body's mass; R is its reference radius; and h is altitude. The expression comes from setting the object's total Newtonian mechanical energy to zero: its starting kinetic energy exactly balances the magnitude of its gravitational potential energy, leaving zero speed at infinite distance. The mass of the escaping object cancels, so it is not an input. Increasing body mass raises escape velocity, while increasing altitude increases centre distance and lowers escape velocity. The returned gravitational parameter is G multiplied by M, which makes the substitution easy to audit. Results include metres per second and kilometres per second, along with the actual centre distance used. This is an ideal two-body result. It assumes spherical symmetry, ignores atmosphere and thrust losses, and does not add or subtract speed supplied by the body's rotation.

Interpret and apply the result carefully

Treat the result as an instantaneous ideal speed threshold at the stated location, not as a complete launch delta-v budget. A real rocket climbs through an atmosphere, loses energy to drag and gravity while engines burn, may benefit from planetary rotation, and normally targets an orbit or transfer path rather than accelerating instantly to escape speed. The calculation is nevertheless valuable for comparing celestial bodies, checking textbook work, setting scales in simulations, and verifying mission-analysis code. Make sure mass and radius refer to the same body and that altitude uses the same reference surface as the radius. For a spacecraft already in orbit, escape speed at its altitude is not the additional burn required to escape, because the spacecraft already has orbital speed. Compare its current velocity vector and orbital energy with the threshold instead. API requests cost $0.002 per successful item, while invalid inputs such as missing fields, a non-positive mass, or a non-positive combined distance are rejected. Because the algorithm is pure arithmetic, identical inputs always produce identical JSON output.

Check a spacecraft altitude

Calculate the ideal escape-speed threshold at a spacecraft's height above a planet or moon.

Compare world designs

Evaluate how mass, radius, and observation altitude affect escape velocity for fictional or modeled bodies.

Verify physics software

Generate deterministic reference results for unit tests that implement the same Newtonian equation.

What equation does this calculator use?

It uses v = sqrt(2GM/(R+h)), where mass is M, reference radius is R, altitude is h, and G is the gravitational constant.

Which units should I enter?

Enter mass in kilograms and radius and altitude in metres. The result is returned in both metres per second and kilometres per second.

Can altitude be negative?

Yes. A negative altitude is accepted when radius plus altitude is still greater than zero.

Why is a non-positive distance rejected?

The classical equation divides by radial distance. Zero or negative radius plus altitude does not represent a valid distance from the centre.

Does this equal the rocket burn required to escape?

Not generally. It is an ideal instantaneous speed threshold and excludes atmospheric drag, gravity losses during a burn, rotation, and existing orbital velocity.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/astro/escape-velocity-at-altitude

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/astro/escape-velocity-at-altitude \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mass":5.972e+24,"radius":6371000,"altitude":400000}'
{
  "mass": 5.972e+24,
  "radius": 6371000,
  "altitude": 400000
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "astro.escape_velocity_at_altitude",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →