ForHosting KIT · Science

Planet escape velocity calculator

Leaving Earth, with 5.972e24 kg of mass and a 6371000 m radius, takes just over 11 km/s in the ideal case. Enter any body's mass and radius to get the escape speed in metres and kilometres per second. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Body mass in kilograms
5,972,000,000,000,000,000,000,000
Radius
6,371,000
You get
Body mass
5,972,000,000,000,000,000,000,000
M
5,972,000,000,000,000,000,000,000
Body radius
6,371,000
Resistance (Ω)
6,371,000

Escape velocity is the lowest speed a projectile needs at a given distance from a massive body so that, if it coasts without thrust and without drag, it never falls back. This planet escape velocity calculator takes body mass in kilograms and radius (or centre distance) in metres and returns the classical result v equals the square root of two G M over r, both in metres per second and kilometres per second, using the CODATA 2018 gravitational constant. Students, mission planners sketching rough delta-v budgets, game developers, and unit-test authors all need the same deterministic number for Earth, Moon, Mars, or a custom sphere.

What escape velocity means for a spherical body

In Newtonian gravity a point mass or a spherically symmetric body of mass M produces a potential that falls as minus G M over radial distance. Mechanical energy of a test particle of mass m is one half m v squared minus G M m over r. Setting total energy to zero at infinity and solving for speed at radius r yields the escape speed v equals the square root of two G M over r.

That speed is independent of the test mass m, which cancels, and it assumes a non-rotating spherical body with no atmosphere. Atmosphere and planetary rotation change the practical launch problem: atmospheric drag dissipates kinetic energy, and launching eastward from an equatorial site already contributes some horizontal speed, so real rockets need less propulsive delta-v than the pure surface escape figure—but textbooks and homework still ask for the ideal surface value first.

The same formula applies not only at the surface: if you stand at altitude h above a body of radius R, use r equals R plus h. Black holes have an event horizon where escape speed formally reaches the speed of light, but this tool stays classical and will simply return a very large finite number for extreme M over r ratios still inside double precision.

Teachers should emphasise that escape velocity is a scalar speed threshold for ballistic free flight, not a required direction; any trajectory whose speed at that radius meets or exceeds the threshold and is not aimed into the body can leave the gravitational well in the ideal model.

Practical tips, limits, and related searches

Use SI base units only: convert solar masses, Earth masses, kilometres, or miles before you call. Prefer numbers rather than pre-formatted strings when you control the client; string numbers are accepted only when they match a strict finite numeric pattern.

For Earth, mass about five point nine seven two times ten to the twenty-four kilograms and mean radius about six point three seven one times ten to the six metres yields roughly eleven point two kilometres per second; for the Moon and Mars the same workflow with published mass and radius gives the familiar lower figures used in exam problems. Keep mass over radius ratios inside double range: absurdly large M with tiny r can overflow the intermediate two G M over r into non-finite values that the solver rejects.

This landing targets people searching for a planet escape velocity calculator, escape speed from a body, or v equals square root of two G M over r online; it is not an orbital period tool, not a Hohmann transfer planner, not a rocket equation delta-v budget, and not a general relativity geodesic solver. Prefer this capability when you already have M and r and only need the classical escape speed; if your source gives density and diameter, convert to mass and radius first.

Round-trip checks are easy: recompute two times G times M over r by hand, take the square root, divide by one thousand for km/s, and confirm both published fields match within the same twelve-decimal rounding.

What is the escape velocity formula?

For a spherical body of mass M at radius r from the centre, classical escape speed is v = √(2 G M / r), where G is the gravitational constant.

What units should I use?

Mass in kilograms (kg) and radius in metres (m). Results are returned in metres per second and kilometres per second. Convert from Earth masses or kilometres before calling.

What happens if mass or radius is zero or negative?

Escape velocity is only defined for strictly positive mass and positive radial distance in this classical model.

Does this include atmosphere or planetary rotation?

No. It is the ideal Newtonian surface (or radial) escape speed without drag or rotation. Real launch vehicles need a separate engineering analysis.

Is the planet escape velocity calculator free?

The browser tool is free and runs locally.

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/body-escape-velocity

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/body-escape-velocity \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mass":5.972e+24,"radius":6371000}'
{
  "mass": 5.972e+24,
  "radius": 6371000
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "astro.body_escape_velocity",
  "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.

max_abs1e+36
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.

Non-positive mass or radius is rejected with invalid_input instead of producing a meaningless square root.

How to call the API and what comes back

Send a JSON body with two required strictly positive finite numbers: mass (aliases m, M, body_mass) in kilograms and radius (aliases r, R, body_radius) in metres. Absolute values must stay within the published limits so that two G M over r and its square root remain finite in IEEE double precision on the Worker and in the browser. On success the response echoes rounded mass and radius under several alias keys, sets G and gravitational_constant to the CODATA 2018 value six point six seven four three times ten to the minus eleven, escape_velocity_m_s and v_m_s to the same speed in metres per second, escape_velocity_km_s and v_km_s to that speed divided by one thousand, formula to the string v equals square root of two G M over r, equation to a human-readable substitution line, units to a map of SI labels, message to a short English summary, and steps to an ordered array of given-values, constant, formula, substitute, and result lines. Failed validation—missing fields, non-finite numbers, values outside absolute limits, or non-positive mass or radius—returns invalid_input and is never charged. Pricing is a flat $0.002 per successful request with unit item and zero marginal unit price.

Practical tips, limits, and related searches

Failed tasks that return invalid_input do not consume prepaid balance, which keeps exploratory scripts cheap when learners deliberately send zero mass.

Homework checks for planetary escape speed

Students enter textbook mass and radius for Earth, Moon, or Mars and compare hand-written √(2GM/r) in m/s and km/s against a deterministic JSON result before submitting.

Unit tests for orbital mechanics code

Generate known-good escape speeds for custom spherical bodies plus deliberate non-positive mass or radius rejections for coding kata expected values.

Game and sim world building

Procedural planet generators feed mass and radius into the API to set launch thresholds and UI readouts without shipping a full n-body physics stack.

Read the full KIT documentation →