ForHosting KIT · Developer Utilities

Specific orbital energy from semi-major axis calculator

This specific orbital energy calculator evaluates the two-body relation ε = −μ/(2a) from a signed semi-major axis and a positive standard gravitational parameter.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

It reports energy per unit mass, so no spacecraft mass is needed. Use consistent units: if μ is supplied in cubic meters per second squared and a is in meters, the result is joules per kilogram, equivalently square meters per square second. Positive and negative semi-major axes are supported, while a zero semi-major axis returns an input error because the formula would divide by zero.

What specific orbital energy tells you

Specific orbital energy is the mechanical orbital energy divided by the orbiting body's mass. That normalization makes the value useful for comparing trajectories without choosing a spacecraft mass. In the ideal two-body model, every point on one Keplerian trajectory has the same specific orbital energy even though speed and distance change continuously. The semi-major axis packages that conserved energy into one geometric parameter, producing the compact relation ε = −μ/(2a). A positive semi-major axis describes a bound ellipse, including a circle, and therefore gives negative specific energy. A negative semi-major axis describes a hyperbolic escape trajectory under the common signed-axis convention and gives positive specific energy. Values closer to zero represent trajectories nearer the parabolic boundary. The calculator does not infer units or convert them. It preserves the unit system implied by the inputs, so a and μ must use the same base length unit. This makes the result suitable for mission analysis, classroom checks, simulation fixtures, and quick validation of orbital-element data.

How to enter the semi-major axis and mu

Enter the signed semi-major axis in the `semi_major_axis` field and the standard gravitational parameter in `gravitational_parameter`. The shorter aliases `a` and `mu` are also accepted by the calculation engine. Keep the unit system internally consistent. For example, meters for a pair naturally with cubic meters per square second for μ, returning square meters per square second. Kilometers pair with cubic kilometers per square second and return square kilometers per square second. The gravitational parameter must be positive because it represents the product of the gravitational constant and the relevant system mass in the two-body approximation. The semi-major axis may be positive or negative, but it cannot be zero. Zero has no valid role in this equation and would make its denominator vanish. Scientific notation and numeric strings are accepted through the API when they represent finite numbers. The response echoes both parsed inputs, supplies the calculated specific orbital energy, and includes the formula and method identifiers so automated workflows can record exactly which relation produced the result.

Interpreting the result and model limits

Read the sign before the magnitude. A negative result indicates a bound Keplerian orbit under the supplied μ, while a positive result indicates an unbound hyperbolic trajectory when a follows the signed convention. A value approaching zero corresponds to the parabolic escape boundary, although a truly parabolic orbit has an infinite semi-major axis and cannot be represented by inserting zero for a. The magnitude measures how tightly the trajectory is energetically bound or how much positive excess energy the hyperbola carries per unit mass. This calculator evaluates a deterministic algebraic relationship; it does not propagate an orbit, account for atmospheric drag, include third-body perturbations, model an oblate primary, or estimate uncertainty. It also assumes the supplied gravitational parameter and semi-major axis refer to the same central-body system and coordinate convention. For measured orbital elements, preserve adequate significant figures and treat the result's precision as no better than the least precise input. For engineering decisions, verify the chosen μ source and confirm that meters and kilometers have not been mixed, since inconsistent length units can change the result by large scale factors.

Check a bound orbit

Confirm that an elliptical orbit's positive semi-major axis produces the expected negative specific energy for a chosen central body.

Evaluate a hyperbolic trajectory

Use a negative signed semi-major axis to obtain the positive specific energy associated with an escape or flyby hyperbola.

Validate orbital-element data

Recompute energy from imported semi-major-axis and gravitational-parameter values before using them in a simulation or analysis pipeline.

What does the calculator cost?

It is free to run in the browser on this page, and an API request costs $0.002.

Why is specific orbital energy negative for an ellipse?

An ellipse has a positive semi-major axis. With positive μ, the leading minus sign in ε = −μ/(2a) therefore produces a negative value, indicating a bound orbit.

Can the semi-major axis be negative?

Yes. Under the standard signed convention, a hyperbolic trajectory has a negative semi-major axis, which makes the calculated specific orbital energy positive.

Which units should I use?

Use one consistent length unit. If a is in meters, μ should be in cubic meters per square second; if a is in kilometers, μ should be in cubic kilometers per square second.

Why does a zero semi-major axis return an error?

The formula divides by 2a, so a zero value makes the expression undefined. Zero is not a substitute for the infinite semi-major axis associated with a parabolic trajectory.

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/specific-energy-from-sma

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/specific-energy-from-sma \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"semi_major_axis":7000000,"gravitational_parameter":398600441800000}'
{
  "semi_major_axis": 7000000,
  "gravitational_parameter": 398600441800000
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "astro.specific_energy_from_sma",
  "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 →