Differential tidal force calculator
Measure how strongly gravity stretches an object: the Moon, 384400000 m away, pulls the near and far sides of Earth apart by 0.00000219855615754 m/s², and doubling the separation cuts the effect eightfold. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Mass
- 73,420,000,000,000,000,000,000
- Distance
- 384,400,000
- Length
- 12,742,000
- G
- 0.0000000001
- R cubed
- 56,800,235,584,000,000,000,000,000
- Tidal gradient
- 0
- Tidal acceleration
- 0.0000021986
Tidal forces arise because gravity is stronger on the near side of an extended body than on the far side: the gradient of the gravitational field stretches objects along the line to a perturbing mass. To first order the differential acceleration between two points separated by a small radial length L at distance r from a mass M is Δa equals two times G times M times L over r cubed — the classic inverse-cube tidal law. Students use it to compare lunar and solar tides, to estimate stretch on a space station or a planet, and to connect Newton's inverse-square force law to the Roche picture of tidal disruption. This calculator takes a positive perturbing mass, a strictly positive centre-to-centre distance, and a positive object length, returns the tidal gradient 2GM/r³ and the differential acceleration across L, and rejects non-positive distance so division by r cubed never becomes Infinity or NaN.
How the inverse-cube differential tidal force works
Start from Newton's inverse-square attraction: the acceleration toward a point mass M at distance r is g equals G times M over r squared. Differentiating with respect to r gives the radial gradient dg/dr equals minus two G M over r cubed; the magnitude of the stretch between the near and far ends of a small object of radial length L is therefore Δa approximately two G M L over r cubed when L is much smaller than r.
The factor of two is the linearised difference of 1/r squared at r minus L over two and r plus L over two. Because the result scales as one over r cubed, doubling the distance reduces the tidal differential by a factor of eight, which is why the Moon, though far less massive than the Sun, produces a larger ocean tide on Earth than the Sun does at Earth's distance.
The calculator evaluates the closed form with the fixed CODATA two thousand eighteen gravitational constant: no random seeds, no wall-clock timestamps, no network calls, and no model drift. Distance r must be a finite strictly positive number of metres; zero and negative values fail with invalid input because the law divides by r cubed. Perturbing mass M and object length L must likewise be finite and positive so the product is a well-defined stretch rather than a null or non-physical input.
This page intentionally reports acceleration (force per unit mass) from the three named inputs; multiply by a test mass in kilograms if you need force in newtons. Roche limit distances, pairwise gravitational attraction, and ocean-height tables are separate search intents and separate landings.
What you send and what you get back
Send three required finite numbers under the fields mass, distance, and length. Mass is the perturbing body mass M in kilograms and must be strictly greater than zero; for Earth use about five point nine seven two times ten to the twenty-four kilograms, for the Moon about seven point three four two times ten to the twenty-two kilograms, and for the Sun about one point nine eight nine times ten to the thirty kilograms.
Distance is the centre-to-centre separation r in metres and must also be strictly greater than zero; for the Earth–Moon mean distance use about three hundred eighty-four million four hundred thousand metres. Length is the radial extent L of the object across which you measure the differential, in metres; for Earth's diameter scale use about twelve point seven million metres, for a two-metre person use two, and for a spacecraft of size ten metres use ten.
Classic textbook checks include comparing lunar versus solar tidal gradients at Earth and estimating the stretch across a human body near a black hole horizon scale only as an order-of-magnitude teaching demo. Keep units consistent: convert solar masses, kilometres, and Earth radii to kilograms and metres before calling so the numeric product matches the SI interpretation your report claims.
Where differential tidal force calculators show up in real work
Secondary-school and introductory university physics and astronomy courses assign inverse-cube drills, Moon-versus-Sun tide comparisons, and stretch estimates on satellites or planets that rearrange the same formula; a single trusted oracle speeds grading and demo setup. Planetary science and mission concept teams convert tabulated masses and separations into rough tidal accelerations before full gravity-field models and numerical propagators. Science communicators convert human-scale lengths at planetary distances into tiny accelerations to illustrate how weak everyday tides are compared with surface gravity, or how extreme the gradient becomes near compact objects.
Game and simulation authors seed toy tidal-lock and Roche-style demos with closed-form differentials when they want a transparent ground truth without floating-point surprises from ad-hoc constants. If you later need Roche limit breakup distance from densities and radius, pairwise Newtonian attraction F equals G m1 m2 over r squared, orbital periods, or ocean tide prediction tables, treat those as separate search intents and landings rather than overloading this differential tidal force calculator page.
What you can do with it
Moon vs Sun tide homework
Compare lunar and solar differential tidal accelerations at Earth using mass, distance, and Earth's diameter as length for a closed-form inverse-cube check.
Spacecraft stretch estimates
Estimate Δa across a satellite or habitat of known length near a planet or moon before running full multipole gravity models.
FAQ
What formula does this differential tidal force calculator use?
The result is the differential acceleration (force per unit mass) across radial length L at distance r from perturbing mass M.
What happens if distance is zero or negative?
The formula divides by r³, so non-positive separation is undefined or non-physical and is rejected with a clear validation message instead of returning Infinity or NaN.
What units should I use?
SI: mass in kilograms, distance and length in metres. Convert solar masses, kilometres, and Earth radii yourself before calling.
Is the result a force in newtons or an acceleration?
Multiply by a test mass in kilograms if you need force in newtons on that mass.
What does it cost?
The browser tool is free and runs locally.
Related tools
For developers — API access
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.
API endpoint
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.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/astro/tidal-force \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"mass":5.9722e+24,"distance":384400000,"length":6371000}'const res = await fetch("https://api.kit.forhosting.com/astro/tidal-force", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"mass": 5.9722e+24,
"distance": 384400000,
"length": 6371000
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/astro/tidal-force",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"mass": 5.9722e+24,
"distance": 384400000,
"length": 6371000
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/astro/tidal-force", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"mass":5.9722e+24,"distance":384400000,"length":6371000}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"mass":5.9722e+24,"distance":384400000,"length":6371000}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/astro/tidal-force", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"mass": 5.9722e+24,
"distance": 384400000,
"length": 6371000
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "astro.tidal_force",
"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.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
What you send and what you get back
Missing fields, non-numeric strings, NaN, Infinity, non-positive mass, non-positive length, and non-positive distance fail with invalid_input and are not charged. On success the response echoes cleaned mass, distance, and length, exposes G as the fixed CODATA constant, r_cubed as distance cubed, tidal_gradient as two G M over r cubed, tidal_acceleration as the primary SI result in metres per second squared, force_per_kg with the same numeric value in newtons per kilogram, includes a units hint object, sets method to inverse_cube_tidal_gradient, and formula to Δa equals two G M L over r cubed. Pricing for successful API calls is the published base of $0.002 per item; validation failures do not consume prepaid balance.
Where differential tidal force calculators show up in real work
Because this capability is a pure parse engine, API pricing is the published base of $0.002 per successful item and failed validation does not consume balance.
Integration use cases
Classroom and planetarium demos
Turn tabulated body masses and distances into tidal gradients for exhibits, auto-graders, and curriculum widgets that share one API contract.