ForHosting KIT · Engineering & construction

Gravitational binding energy two masses calculator

The Earth and the Moon, 384400000 m apart, have a gravitational potential energy of −7.6130121671e28 J. Enter two masses and the distance between their centres to get that energy and its positive binding value. 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
Mass1
5,972,000,000,000,000,000,000,000
Mass2
73,420,000,000,000,000,000,000
Distance
384,400,000
You get
G
0.0000000001 J
Potential energy
-76,130,121,671,000,000,000,000,000,000
Binding energy
76,130,121,671,000,000,000,000,000,000

Gravitational potential energy between two point masses is the scalar work stored in the mutual Newtonian field: U equals minus G times m1 times m2 over the centre-to-centre distance r. Students, homework platforms, orbital notebooks, and physics content sites need that binding-energy style result without hand-calculating scientific notation or confusing mutual energy with surface m g h or potential Phi per unit mass. This gravitational binding energy two masses calculator accepts two masses in kilograms and a positive separation in metres, multiplies by the fixed CODATA 2018 gravitational constant, divides by r, applies the conventional minus sign, and returns potential energy in joules plus the positive binding magnitude. Zero distance is rejected as invalid input because the expression divides by r and diverges at the point-mass singularity.

What two-mass gravitational potential energy means and how U = −Gm₁m₂/r is applied

In classical mechanics the gravitational potential energy of an isolated pair of masses is a scalar equal to minus G times the product of the masses divided by their centre-to-centre separation. The conventional choice sets energy to zero at infinite separation, so values for attracting masses are negative: a more negative number means a deeper well and stronger gravitational binding.

The positive magnitude of that energy is the binding energy relative to infinity—the work that must be done against gravity to pull the two bodies infinitely far apart without leftover kinetic energy. Textbooks introduce the same formula for Earth–Moon or planet–satellite pairs when treating bodies as point masses or spherical shells outside their surfaces, and for binary-star rough estimates when only masses and orbital radius are known.

This calculator treats the general exterior mutual case: you supply any positive distance and two non-negative masses, not a surface height or a local g. Either mass may be zero, which correctly yields zero energy; negative mass is rejected because the model is restricted to ordinary Newtonian sources. Distance must be strictly positive: at r equals zero the expression diverges and physics courses label the point-mass coincidence as undefined, not as a huge finite joule count.

Where two-mass gravitational energy is useful

Introductory physics courses ask for mutual gravitational potential energy of two masses or for binding energy relative to infinity; tutors need an oracle that fails closed on r equals zero instead of returning Infinity that a buggy grader might accept. Engineering notebooks estimating gravitational binding for binary systems, science content sites ranking for gravitational binding energy two masses calculator, and exam generators that mix signed U with positive binding all benefit from a live tool whose free path matches the paid automation path byte-for-byte. Failed validation does not consume balance.

Distinguish this page from surface gravitational potential energy calculators that return m g h near Earth’s surface, from gravitational potential tools that return Phi in joules per kilogram, and from force tools that return newtons: searchers who want mutual U equals minus G m1 m2 over r land here for a reason, and the SEO title and examples stay aligned with that binding-energy intent.

Classroom and homework checks

Let students enter two masses and separation r and verify U = −G·m1·m2/r against textbook methods, including Earth–Moon and lab-scale numbers.

Binding energy bookkeeping

Compute mutual gravitational binding |U| for binary-star or planet–satellite estimates without a full ephemeris or multipole package.

How do I calculate gravitational potential energy U = −Gm₁m₂/r?

Send finite numbers mass1 (kg, ≥ 0), mass2 (kg, ≥ 0), and distance (m, > 0).

What happens if the distance is zero?

Gravitational potential energy divides by r, so zero separation is undefined and is not billed.

Is this the same as gravitational potential Φ = −GM/r?

No. Potential Φ is energy per unit mass (J/kg). This calculator returns mutual potential energy U = m1·m2·Φ/M style product energy in joules for two masses.

What is the gravitational potential energy of the Earth and the Moon?

With 5.972e24 kg, 7.342e22 kg and 384400000 m between centres, it is −7.6130121671e28 J. The binding energy, the work needed to pull them apart for good, is 7.6130121671e28 J.

Why is the energy negative?

Energy is set to zero when the masses are infinitely far apart, so any attracting pair sits below zero. A more negative value means a deeper well and a stronger gravitational bond.

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/mech/two-mass-gravitational-pe

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/mech/two-mass-gravitational-pe \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mass1":5.972e+24,"mass2":7.342e+22,"distance":384400000}'
{
  "mass1": 5.972e+24,
  "mass2": 7.342e+22,
  "distance": 384400000
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "mech.two_mass_gravitational_pe",
  "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.

What two-mass gravitational potential energy means and how U = −Gm₁m₂/r is applied

Potential energy is reported in joules, matching standard SI homework units, alongside the positive binding_energy field for searchers who phrase the problem as binding rather than signed U.

Input contract, response shape, and error behaviour

Example: Earth mass about five point nine seven two times ten to the twenty-four kilograms, Moon mass about seven point three four two times ten to the twenty-two kilograms, and mean centre distance about three point eight four four times ten to the eight metres yields a large negative joule figure of the correct order of magnitude for textbook Earth–Moon binding estimates without claiming a full multipole or tidal model. POST a JSON body with three required finite numbers: mass1 (or aliases m1, M1) as the first mass in kilograms, non-negative; mass2 (or aliases m2, M2) as the second mass in kilograms, non-negative; and distance (or aliases r, R) as the centre-to-centre separation in metres, strictly greater than zero. Values may arrive as JSON numbers or as numeric strings; missing fields, empty strings, NaN, and Infinity fail with invalid_input naming the field. On success the body echoes mass1, mass2, and distance after stable twelve-significant-digit cleaning, returns G, potential_energy in J (negative for ordinary masses), binding_energy as the absolute value of U, a unit string, a method tag two_mass_gravitational_pe, and the short formula U equals minus G·m1·m2/r. The free browser path and the API path share the same solve module, so a homework check and a batch answer key never disagree on cleaned digits.

Where a two-mass gravitational potential energy API earns its keep

Keep requests small, pin cleaned potential_energy and binding_energy values in tests, and you get reproducible scalars for homework, exams, and edge workers without standing up a symbolic algebra stack of your own.

Exam and LMS auto-grading

Mark two-mass gravitational potential energy items with a deterministic oracle that rejects zero distance as invalid_input and never returns Infinity.

Which value of G is used?

CODATA 2018: G = 6.67430×10⁻¹¹ m³ kg⁻¹ s⁻². The response echoes G so you can audit the constant used for the result.

What does the gravitational binding energy two masses calculator cost?

The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.

Read the full KIT documentation →