ForHosting KIT · Science

Escape velocity calculator

Leaving the Earth, with 5.972 × 10²⁴ kg and a radius of 6,371,000 m, takes a little over 11 kilometres per second. Enter a body's mass and the distance from its centre to get the escape speed in m/s and km/s. 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
Mass
5,972,000,000,000,000,000,000,000
Radius
6,371,000
You get
Velocity
11,185.9778918499
Velocity km s
11.1859778919
G
0.0000000001

Escape velocity is the lowest speed a coasting projectile must have at a given distance from a massive body if Newtonian gravity is not to pull it back from infinity. For a spherical source of mass M evaluated at radius r the energy argument yields v equals the square root of two G M over r, with G the Newtonian gravitational constant. This calculator accepts mass in kilograms and radius in metres, both required to be strictly positive finite numbers, and returns that speed in metres per second together with a kilometres-per-second convenience field.

What escape velocity is and how v equals sqrt of 2GM over r

In classical mechanics a test particle of mass m moving in the gravitational field of a fixed spherical body of mass M has mechanical energy equal to one half m v squared minus G M m over r. Escape from the well in the Newtonian sense means the total energy is at least zero, so the particle can reach infinite separation with leftover kinetic energy that is not negative. Setting energy to zero and solving for speed produces v equals the square root of two G M over r.

The test mass m cancels, which is why a grain of dust and a spacecraft share the same numerical threshold at the same radius. The gravitational constant G is the CODATA 2018 value six point six seven four three times ten to the minus eleven cubic metres per kilogram per second squared. Radius is the centre-to-point distance: at the surface of a sphere it is the body's own radius; at altitude h above that surface it is R plus h.

The result is a scalar speed, not a required heading; any trajectory that does not strike the body and whose speed meets the threshold can leave in the ideal model. Atmosphere, planetary rotation, continuous thrust after departure, and general relativity are outside this capability. Those effects matter for real launches, but homework, first-order mission sketches, and physics engines still start from this closed-form number before they add drag tables or rotating-frame corrections.

Circular orbital speed at the same radius is the square root of G M over r, so escape speed is exactly the square root of two times that circular value—a useful classroom check when both formulas appear on the same worksheet.

Where an escape-velocity step earns its keep

Exam generators and LMS plugins need an oracle that rejects non-positive mass or radius instead of returning NaN that a buggy grader might treat as success. Game and simulation engines that place spherical planets often need a single scalar they can compare against a projectile speed each tick; calling a tiny parse step during content authoring, then baking the constant into the build, avoids shipping a physics library just for one square root.

Laboratory write-ups that start from tabulated planetary mass and mean radius can pin the published velocity in a report or in continuous-integration goldens that must not depend on network services. Prefer this capability when you already have mass and radius in SI and only need the classical speed. 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.

If your source quotes density and diameter, convert to mass and radius first. Keep mass-over-radius ratios inside double range: an absurdly large M with a tiny r can overflow two G M over r into a non-finite value that the solver rejects rather than inventing an infinite speed. Round-trip checks are straightforward: recompute two times G times M over r by hand, take the square root, divide by one thousand for kilometres per second, and confirm both published fields match after the same twelve-decimal rounding.

Classroom checks of planetary escape speed

Let students submit mass and radius in SI and verify the Newtonian surface escape speed against the textbook square-root formula before they add atmosphere or rotation.

Game worlds and lab goldens

Bake a spherical planet's escape speed from authored mass and radius into a simulation or pin the same figure in a lab report's continuous-integration checks.

What formula does the escape velocity calculator use?

It uses the Newtonian result v = sqrt(2 G M / r), with G the CODATA 2018 constant 6.6743e-11 m³ kg⁻¹ s⁻². Mass is in kilograms and radius in metres; the speed is returned in metres per second.

What happens if mass or radius is zero or negative?

Escape velocity is only defined for a strictly positive mass and a strictly positive radial distance; non-positive values are not billed.

Which units should I send?

Use kilograms for mass and metres for radius so velocity is in metres per second. Convert Earth masses, kilometres, or miles yourself before calling the tool.

Does this include atmosphere, rotation, or relativity?

No. It returns only the classical ballistic threshold from energy conservation. Apply drag, planetary rotation, thrust, or relativistic gravity in a later step if your problem needs them.

What does the escape velocity calculator cost?

The browser tool is free and runs on your device.

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/phys/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/phys/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": "phys.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.

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.

Zero or negative mass or radius is physically meaningless for the formula and fails with invalid_input instead of a silent NaN.

Input contract, units, and what the response contains

Zero and negative values fail as well, because a non-positive mass or radius is not a legal argument of the square-root formula and would not describe a physical source. Use SI base units only: convert Earth masses, solar masses, kilometres, or miles before you call. Mixing a mass still expressed in Earth masses with a radius in kilometres without conversion yields a mathematically finite number that is wrong for the body you intended. Failed validation is not billed. POST a JSON body with two required strictly positive finite numbers: mass in kilograms (aliases m, M, body_mass) and radius in metres (aliases r, R, body_radius). Each field may arrive as a JSON number or as a numeric string that matches a finite decimal or scientific pattern; missing fields, empty strings, non-numeric text, infinities, and NaN fail with invalid_input that names the field. On success the body returns velocity in metres per second, velocity_km_s as that speed divided by one thousand, the echoed mass and radius, the constant G, the formula string v equals sqrt of two G M over r, and a units map labelling each quantity.

Where an escape-velocity step earns its keep

Physics courses ask for the surface escape speed of Earth, the Moon, Mars, or a made-up sphere given M and r; a deterministic endpoint lets students check both the algebra and the unit conversion without a full computer-algebra system.

Exam and LMS auto-grading

Mark escape-velocity items with a deterministic oracle that rejects non-positive mass or radius as invalid_input instead of a silent empty success.

Read the full KIT documentation →