ForHosting KIT · Science

Orbital energy calculator

See how tightly a satellite is held by its planet: a 1000 kg satellite 6,778,000 m from Earth's centre has a total orbital energy of -29,403,156,980 joules. You also get the gravitational potential at that distance. 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
Satellite mass m
1,000
Central mass
5,972,000,000,000,000,000,000,000
Radius
6,778,000
You get
G
0.0000000001
Gravitational potential
-58,806,313.96
Total orbital energy
-29,403,156,980

Orbital energy is the conserved mechanical budget that keeps a satellite bound to a central body under Newtonian gravity. For a circular two-body path the gravitational potential at orbital radius r is the mass-independent field value Phi equals minus G times central mass M over r, while the total orbital energy of a satellite with mass m is the negative quantity E equals minus G M m over two r. Optional G defaults to a fixed CODATA SI constant so results stay stable across environments; override it when your unit system is not SI.

What orbital energy tells you

A satellite on a circular orbit has kinetic energy from its speed and potential energy from its place in the planet's gravity. On a circular path the kinetic energy is exactly half the size of the potential energy, with the opposite sign, so the total is negative: minus the gravitational constant times both masses, divided by twice the radius. A negative total means the satellite is bound. The closer it orbits, the more negative the number, and as the radius grows the total creeps up toward zero. For a 1000 kg satellite 6,778,000 m from Earth's centre, the total is -29,403,156,980 joules.

How to use it and the usual mistakes

Enter the satellite's mass, the mass of the body it circles and the distance from that body's centre, all in metres, kilograms and seconds. Alongside the total you get the gravitational potential, the energy per kilogram at that distance, which is the same for any satellite. The most common mistake is typing the height above the surface instead of the distance from the centre, so add the planet's radius first. Another is mixing kilometres and metres, which throws the answer off by a factor of a thousand. Comparing the totals of two orbits shows how much the orbital energy changes between them.

What gravitational potential and total orbital energy mean

Under inverse-square gravity and the two-body idealization with a fixed central mass, every point at distance r from the center has a gravitational potential Phi equal to minus G M over r. On a circular orbit the kinetic energy is exactly half the magnitude of the potential energy with opposite sign, so the total mechanical energy collapses to E equals K plus U equals minus G M m over two r.

A more negative E means a more tightly bound orbit; E approaches zero from below as the circular radius grows without bound. Altitude alone is incomplete: you must add the planetary radius first if your source quotes height. Both masses and G must be strictly positive.

Non-finite values are rejected.

Is radius the altitude above the surface?

No. Radius must be the distance from the center of the central body to the satellite. If you only know altitude, add the body's radius first, then submit the sum.

Can I change the gravitational constant G?

Use a matching G whenever your masses and radius are not in SI units.

Is the orbital energy calculator free?

The browser tool runs free on your device.

Why is orbital energy negative?

Because the satellite is bound to the planet. Zero marks the point where it would no longer be held, so every circular orbit sits below zero, and a more negative value means a tighter hold.

What is the difference between gravitational potential and orbital energy?

The potential is energy per kilogram at that distance and does not depend on the satellite. The total orbital energy includes the satellite's mass and, on a circular orbit, is half the potential energy.

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/orbital-energy

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/orbital-energy \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"satellite_mass":1000,"central_mass":5.972e+24,"radius":6778000}'
{
  "satellite_mass": 1000,
  "central_mass": 5.972e+24,
  "radius": 6778000
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "astro.orbital_energy",
  "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.

This capability evaluates both expressions deterministically from finite numeric inputs, rejects zero or non-positive radius with a clear invalid input error, and returns structured JSON that homework checkers, mission concept tools, and lightweight astrodynamics pipelines can pin in continuous integration without installing a full orbital mechanics stack.

What gravitational potential and total orbital energy mean

Potential is energy per unit mass: multiply by satellite mass m to recover potential energy U equals m Phi equals minus G M m over r. Send the required field satellite_mass as a JSON number or numeric string for the orbiting body, the required field central_mass for the body being orbited—for example Earth mass in kilograms—and the required field radius as the distance from the center of that body to the satellite, not merely the altitude above the surface. Aliases m_sat, sat_mass, and m are accepted for satellite mass; mass, M, and M_central for the central mass; r and orbital_radius for the path radius. The optional field G, with aliases gravitational_constant and grav_const, lets you inject a textbook approximation or a non-SI constant; when omitted the engine uses the fixed value 6.6743 times ten to the minus eleven so every environment agrees. Radius must be strictly positive as well: zero radius is invalid_input because both formulas divide by r and a vanishing orbit is not a physical circular path. Identical inputs always produce identical JSON because the path is pure floating-point arithmetic with no network, no random seed, and no wall clock.

Reading the response fields and unit consistency

If you switch to astronomical unit systems, supply a matching G; the calculator does not convert units for you. On success the response echoes satellite_mass, central_mass, radius, and the G that was used, then reports gravitational_potential as Phi equals minus G M over r and total_orbital_energy as E equals minus G M m over two r. The formula field is always the string Phi equals minus G M over r semicolon E equals minus G M m over two r, and method is always circular_orbital_energy so downstream code can branch without sniffing shapes. Units are your responsibility and must be consistent: with SI masses in kilograms, radius in meters, and the default G, gravitational_potential is in joules per kilogram and total_orbital_energy is in joules. Missing satellite_mass, missing central_mass, missing radius, zero radius, negative masses, non-positive G, and non-finite numbers all fail with invalid_input and are not charged after the engine rejects the request. Use gravitational_potential alone when a dashboard only needs the field value at r; use total_orbital_energy when comparing bound-orbit budgets across satellite masses; keep formula and method when documenting the physics step for students or when logging which algorithm produced a mission sketch. Pair this endpoint with an orbital velocity tool when the next question is tangential speed, remembering that speed depends only on central mass and radius while total energy also scales with satellite mass under the two-body model.

API usage, pricing, classroom workflows, and practical limits

Call the free in-browser orbital energy calculator for homework checks, lecture demos, and quick concept verification without installing Orekit, GMAT, or a local MATLAB toolbox. Typical classroom examples include a one-tonne satellite in low Earth orbit at roughly Earth radius plus a few hundred kilometers, the same satellite at geostationary radius near forty-two thousand kilometers, and simplified solar orbits with solar mass and astronomical-unit scales—always with matching G and consistent units. Extremely large or tiny magnitudes are bounded for isolate safety; stay within the published numeric range for reliable results. Send a JSON body with required positive satellite_mass, central_mass, and radius, and optional positive G when you need a non-default constant. Use the prepaid API when a tutoring platform, coding-assessment sandbox, curriculum generator, or early mission-design pipeline needs a stable contract under KIT balance at $0.002 per successful item; validation failures never consume balance after rejection. Authors shipping SDKs can map total_orbital_energy into tables that compare binding energy across altitudes, teaching how the magnitude of E falls as one over r while potential scales as one over r—a companion lesson to circular speed falling as the square root of one over r when building multi-step lesson flows.

Homework and exam verification

Students and graders compute gravitational potential and total orbital energy for given satellite mass, central mass, and radius, compare against textbook answers, and get a clear invalid_input error when radius is zero by mistake.

Tutoring and curriculum generators

Lesson builders produce worked orbital-energy examples with structured JSON for flashcards, step sheets, and auto-graded drills without embedding a full astrodynamics library.

Early mission concept sketches

Lightweight pipelines that need a stable circular-orbit energy check from masses and radius call a prepaid endpoint instead of reimplementing Phi=-GM/r and E=-GMm/(2r) in every language.

How do I calculate gravitational potential and total orbital energy?

Send JSON with satellite_mass (m), central_mass (M), and radius (r) as positive finite numbers. The response includes gravitational_potential equal to -G M / r and total_orbital_energy equal to -G M m / (2 r), plus the G used and the formula label.

What happens if radius is zero?

The request fails with invalid_input. Zero (or non-positive) radius is rejected because both Phi=-GM/r and E=-GMm/(2r) divide by r and are not defined for a vanishing path radius.

Read the full KIT documentation →