Gravity Calculator Online — Free Gravitational Force Tool

CodexFuse Team · 2026-10-30T11:43:51.180Z · 11 min read min read

Work out the gravitational force between any two masses in seconds — free gravity calculator, one checked example, and the mistakes to avoid.

A gravity calculator is a free online tool that works out the gravitational force between two masses. You enter the two masses and the distance between them, and it returns the force in newtons — the same force that keeps your feet on the ground and the Moon in orbit.

If you have ever stared at Newton's formula on a homework sheet, or needed a quick force figure for a lesson plan, you know the pain: one misplaced exponent and the answer is off by a factor of a thousand. This article shows you how to get a trustworthy number in under a minute, with a worked example you can check by hand.

What is a gravity calculator?

A gravity calculator applies Newton's law of universal gravitation, F = G × m₁ × m₂ ÷ r², where G is the gravitational constant (6.674 × 10⁻¹¹ N·m²/kg²), m₁ and m₂ are the two masses in kilograms, and r is the distance between their centres in metres. The result, F, is the attractive force between them, measured in newtons.

The CodexFuse gravity calculator does exactly this one job, and nothing else. There is no spreadsheet to build, no unit table to look up, and no sign-up wall before you see the idea — you enter masses, enter distance, and calculate F.

Why do gravity calculations go wrong when you guess?

Gravity numbers fail for boring, human reasons rather than deep physics reasons. The formula itself is simple; the inputs are where things slip.

  • Exponents get dropped: writing 5.972 × 10²⁴ as 5.972, or forgetting the square on the distance, produces an answer that looks plausible and is completely wrong.
  • Distance means centre-to-centre: for a person standing on Earth, the distance is Earth's radius — about 6,371 km — not zero, and not the person's height.
  • Units get mixed: kilometres fed in as metres, or grams fed in as kilograms, silently shift the result by orders of magnitude.
  • Force and acceleration get confused: the calculator returns a force in newtons, not the acceleration due to gravity (9.81 m/s² on Earth) — related, but not the same number.

A calculator removes the arithmetic risk, but it cannot fix a wrong input. That is why the worked example below shows every input and every step, so you can spot your own mistake before it reaches an assignment or a lesson.

How does the CodexFuse gravity calculator work?

The tool page keeps the workflow deliberately short. Verified against the live tool page, the steps are:

  1. Enter masses: type the two masses into the mass fields.
  2. Enter distance: type the distance between the two masses.
  3. Calculate F: press calculate and read the gravitational force, shown in newtons, with a copy option for pasting the result into notes or homework.

That is the whole interaction. The tool is free and unlimited, and a free CodexFuse account lets you reach it from the platform alongside the rest of CodexFuse's tools. If you only need one quick number, open the gravity calculator, run the three steps, and you are done.

Pro Tip

Before you trust any gravity result, do a sanity check: a 70 kg person on Earth should come out near 687 N. If your answer is 0.000687 or 687,000, an input unit is wrong — check the exponents first.

Worked example: how heavy is gravity's pull on a 70 kg person?

Here is one complete example, start to finish, with real inputs and a result you can verify on a pocket calculator.

The scenario. A student, Maya, weighs 70 kg and wants to know the exact gravitational force between herself and Earth for a physics assignment. She looks up Earth's mass (5.972 × 10²⁴ kg) and Earth's mean radius (6,371 km, which is 6.371 × 10⁶ m). She enters those three numbers into the tool: mass 1 = 5.972 × 10²⁴ kg, mass 2 = 70 kg, distance = 6.371 × 10⁶ m.

The calculation. The formula gives F = (6.674 × 10⁻¹¹ × 5.972 × 10²⁴ × 70) ÷ (6.371 × 10⁶)². The numerator works out to about 2.79 × 10¹⁶, and the denominator — the distance squared — to about 4.059 × 10¹³. Divide the two and you get roughly 687 N.

The check. Maya cross-checks with the familiar shortcut: weight = mass × g = 70 × 9.81 = 686.7 N. The two methods agree, which tells her the inputs were right. She copies the 687 N figure into her assignment, notes the inputs beside it, and moves on — the whole task takes a couple of minutes instead of a page of error-prone longhand.

InputValue usedWhy it matters
Mass 1 (Earth)5.972 × 10²⁴ kgThe big mass dominates the result
Mass 2 (person)70 kgForce scales directly with this mass
Distance (centre-to-centre)6.371 × 10⁶ mDoubling it quarters the force
Result≈ 687 NMatches 70 × 9.81 = 686.7 N

What does the answer actually tell you?

A force in newtons is easy to misread, so it helps to separate three ideas that often get tangled.

  • Force (newtons): the pull between the two masses. This is what the gravity calculator returns, and it is also what a weighing scale effectively reports as your weight.
  • Acceleration (m/s²): how fast an object would speed up under that pull if nothing held it back — about 9.81 m/s² near Earth's surface, and far smaller on the Moon.
  • Mass (kilograms): how much stuff an object contains. Your mass stays 70 kg on Earth, on the Moon, and in deep space; only the force changes.

When two people run the same inputs and get different answers, the difference is almost always the distance: one used the surface-to-surface gap, the other used centre-to-centre. Newton's formula needs the latter, and the worked example above shows why that choice matters.

Still doing physics, hosting and email maths by hand across five subscriptions?

CodexFuse puts managed hosting, business email, security and backups — plus free tools like this gravity calculator — on one fully managed platform that runs on credits, so you stop babysitting separate services and surprise bills.

Get Started with CodexFuse

Who actually uses a gravity calculator?

The tool is small, but its users are surprisingly varied — and each group trips over a different part of the problem.

  • Students: checking homework answers for Newton's law problems without re-deriving the arithmetic by hand, as in the example above.
  • Teachers and tutors: generating quick, correct figures for worksheets and classroom demonstrations, then showing the class why the distance must be squared.
  • Hobby astronomers: getting a feel for how force collapses with distance — the same two masses pull far less hard when separated by planetary distances.
  • Writers and game designers: sanity-checking fictional worlds, such as whether a heavier planet would really make a character noticeably heavier.

If you regularly juggle calculators for other jobs, the same one-tool habit helps elsewhere: a graphing calculator for plotting functions, a cost of living calculator for budgeting a move, or a CTR calculator for checking ad performance. Each one removes one small arithmetic chore so the real work gets the attention.

Important

Newton's formula describes everyday gravity extremely well, but it is an approximation. Near extremely dense objects, or at the precision needed for GPS satellites, Einstein's general relativity is the more accurate model — for classroom, homework and general use, Newton is the right tool.

What are the honest limits of this gravity calculator?

No tool deserves blind trust, and this one is no exception. It does not do any of the following, so plan around the gaps:

  • It does not pick your inputs: you must supply correct masses and a centre-to-centre distance yourself — a wrong radius gives a confidently wrong answer.
  • It does not convert units for you: kilometres, grams or miles entered as metres and kilograms will skew the result, so convert before you type.
  • It does not model three or more bodies: real orbits involve many interacting masses; this tool answers the clean two-body question only.
  • It does not account for relativity or non-spherical shapes: for school, hobby and general purposes this rarely matters, but it is a limit worth knowing.

When you need those cases, the honest alternative is a physics textbook treatment or a dedicated orbital simulator — and for the two-body question, re-run the tool with the corrected inputs. A related habit worth building is checking your other conversions the same way: a grams-to-ounces converter shows the same discipline of writing the formula down, then verifying the output.

Suggested Reading

For more one-job tools that remove small arithmetic chores, see the graphing calculator and the cost of living calculator.

From a free tool to a fully managed platform

Here is where the small tool connects to a bigger pain. Most people who land on a free calculator are already juggling scattered services: hosting on one platform, email on another, backups nowhere, and a renewal bill arriving as a surprise every month. That subscription chaos is exactly what CodexFuse replaces — one fully managed, all-in-one platform that runs on credits instead of subscriptions, so there is no lock-in and no monthly bill for a service you barely use.

The concrete workflow is simple: create a free CodexFuse account, open the tool you need — the gravity calculator or any other — and when you are ready to move real work over, bring your hosting, business email, security and backups onto the same platform. Credits pay only for what you use, the managed team handles the server side, and you stop babysitting infrastructure. CodexFuse fits best when you want several managed services in one place and would rather pay as you go; it is not the right pick if you want to hand-configure every server setting yourself, and saying so plainly is part of the deal.

Frequently Asked Questions

What is a gravity calculator used for?

It calculates the gravitational force between two masses using Newton's law. Students check homework, teachers build worksheet answers, and hobbyists explore how force changes with mass and distance — all without doing exponent-heavy arithmetic by hand.

What inputs does the CodexFuse gravity calculator need?

Three inputs: the first mass, the second mass, and the distance between them. Enter the masses, enter the distance, press Calculate F, and the tool returns the force in newtons with a copy option.

Why is my gravity calculator answer different from my textbook?

The usual cause is the distance input. Textbooks use centre-to-centre distance, so for a person on Earth that means Earth's radius (about 6,371 km), not zero. Mixed units — kilometres as metres, or grams as kilograms — are the other common culprit.

Is the CodexFuse gravity calculator really free?

Yes. The tool page states it is free with unlimited use. A free CodexFuse account gives you access to the platform's tools, and there is no subscription required to run a calculation.

Does the calculator give weight or mass?

It gives force in newtons, which is what we usually mean by weight. Your mass in kilograms does not change when you move planets; the gravitational force — your weight — does, because the other mass and the distance change.

When should I not use a simple gravity calculator?

Skip it for three-or-more-body orbits, relativistic precision work such as GPS corrections, or irregularly shaped bodies where a single centre-to-centre distance is misleading. For those cases, use a dedicated orbital simulator or a textbook treatment instead.

Stop guessing at gravity — run the numbers, then fix the bigger chaos

Open the CodexFuse gravity calculator now, enter your two masses and their centre-to-centre distance, and check your answer against the 687 N sanity figure for a 70 kg person on Earth. Then take the same no-guesswork attitude to the rest of your setup: move your hosting, business email, security and backups to CodexFuse, pay only for what you use on credits, and let a fully managed platform handle the servers while you get on with the work that actually matters. Get started with CodexFuse today — one account, one platform, no subscription chaos.