What is a Gravitational Force Calculator?
The Gravitational Force Calculator is a free online tool that finds the gravitational attraction between two masses, from Newton's law of universal gravitation. School physics and astronomy students working through gravitation use it when the force between the Earth and the Moon, between two planets, or between two masses in a lab. Instead of handling the tiny constant G and the squared distance, where the powers of ten are easy to lose, you type the two masses in kilograms and the distance between their centres in metres and the calculator returns the force in nanonewtons, the same force in newtons in scientific notation, and the force per kilogram of the second mass straight away.
The working idea is simple. the calculator multiplies the two masses by G and divides by the square of the distance The force is always attractive, it grows with either mass, and it falls with the square of the distance — double the distance and the force drops to a quarter. The constant G is 6.674 × 10⁻¹¹ N·m²/kg², which is why gravity between everyday objects is so tiny. There is no sign-up and nothing to install: the page runs entirely in your browser, so your numbers never leave your device.
That matters because gravity is the force that holds the planets in orbit and the stars in galaxies, and Newton's law is the first quantitative statement of it — the same law for an apple and the Moon Newton's law is an approximation that works well for slow speeds and weak fields. Near a black hole or at a large fraction of the speed of light, general relativity is needed instead. The rest of this page walks through the formula, the input people get wrong most often, and a worked example with real numbers you can check by hand.
How a Gravitational Force Calculator works
At its core, the calculator applies the gravitational force is the constant G times the product of the two masses, divided by the square of the distance between them. F = G·m₁·m₂ ÷ r², with G = 6.674 × 10⁻¹¹ N·m²/kg². The distance r is measured between the centres of the two masses, not between their surfaces, which matters when the masses are close together. The formula box at the top of this page shows the same rule in symbols: F = G·m₁·m₂ ÷ r², with G = 6.674 × 10⁻¹¹ N·m²/kg².
The calculator evaluates the formula directly. Because the force is usually a tiny number, it is shown in nanonewtons as the headline and in scientific notation as the second result, so the powers of ten are visible. Both masses and the distance must be positive. A distance of zero would divide by zero, which is why the calculator shows dashes — two masses cannot occupy the same point.
The value of G used is 6.674 × 10⁻¹¹, the 2018 CODATA value, and the arithmetic is exact for Newton's law A force converter can help you check the numbers that feed into this step, and it is worth doing that check before you trust an answer that looks surprising.
The calculator does the arithmetic, but the judgement stays with you: check that the inputs are the ones the problem states, that the units match, and that the answer is in the range you expect before you use it anywhere else. A result that surprises you is usually a mistyped input, not a broken formula.
The the distance explained
The distance is the input people get wrong most often, because it must be the distance between the centres of the masses, not between their surfaces. For the Earth and the Moon the centre-to-centre distance is about 384,400 km, but for two 1-metre balls touching, the centre-to-centre distance is 1 m, not zero — and the distance is squared, so an error of a factor of two becomes an error of a factor of four in the force.
Measure from centre to centre, in metres. If the distance is given in kilometres, multiply by 1000 first, and if it is given as a surface-to-surface gap, add the two radii. Remember the inverse-square rule: doubling the distance quarters the force, and halving it quadruples the force. That is the quickest check on any gravitation answer.
For the defaults, two 1000 kg masses 10 m apart attract with 6.67 × 10⁻⁷ N — about the weight of a speck of dust, which is why you never feel the gravity of everyday objects. A weight converter is a good cross-check when the input comes from a measurement or a table rather than from a textbook problem.
A worked example
Take the default numbers on this page: two masses of 1000 kg each, 10 metres apart.
The force is F = 6.674 × 10⁻¹¹ × 1000 × 1000 ÷ 100 = 6.67e-7 N, which is 667.4 nanonewtons. The force per kilogram of the second mass is 0.6674 nN/kg.
A force of less than a micronewton between two tonne masses is why gravity feels so weak in the lab: G is tiny, and only planetary masses produce forces you can feel. The same formula with the Earth's mass gives the familiar 9.81 m/s² at the surface. Halve the distance to 5 m and the force quadruples to about 2.67 × 10⁻⁶ N, which is the inverse-square law in action.
You can check the arithmetic above with a pocket calculator: take the inputs, apply the formula step by step, and compare each intermediate value with the one shown. If a step disagrees, the input that feeds it is usually the cause — a mistyped digit, a wrong unit, or a value entered in the wrong box.
Where the Gravitational Force Calculator is used
In astronomy, Newton's law gives the force between planets and stars, and from the force comes the orbit: the same formula predicts the Moon's path and the tides it raises.
In geophysics, tiny variations in the gravitational force measured at the surface reveal dense rocks and oil deposits underground, because a denser region pulls slightly harder. A distance calculator often sits next to it in the same workflow, because the two answers answer different halves of the same question.
In the classroom, the Cavendish experiment measures G by weighing the tiny attraction between lead balls — the first measurement of the constant, and the reason we know the mass of the Earth.
It also helps to keep the units consistent from the first number to the last. Mixing units — metres with centimetres, degrees with radians, seconds with minutes — is the quietest way to get an answer that looks plausible and is wrong by a large factor. Write the unit next to every number you enter, and check the result's unit against the unit you expect before you use the answer anywhere else.
Gravitational Force Calculator vs Force Converter
A force converter changes the unit of a force — newtons to pounds-force, for example — without changing the physics. This calculator finds a force from gravitation: the attraction between two masses, which depends on the masses and the square of the distance between them.
Use the force converter when you have a force and need it in another unit. Use this calculator when you have two masses and a distance and need the gravitational force between them. The scientific calculator covers the other side of the same problem, so the two tools complement each other rather than compete.
The two meet in practice: the force here is usually a tiny number, so it is shown in nanonewtons, and the converter can change it into any other force unit you need.
Common mistakes with the Gravitational Force Calculator
The first mistake is using the surface-to-surface distance instead of the centre-to-centre distance. The formula needs the distance between the centres, and for close objects the difference is large — two touching balls are one diameter apart, not zero.
The second mistake is forgetting to square the distance. The force falls with r², not with r, so doubling the distance quarters the force — and forgetting the square makes the answer wrong by the distance itself.
The third mistake is losing track of the powers of ten. G is 10⁻¹¹, the masses may be 10²⁴, and the distance squared may be 10¹⁴ — so keep every number in scientific notation and count the exponents, or the answer will be off by orders of magnitude.
A last mistake is trusting the first answer without a rough check. Before you accept a result, estimate it by hand to one significant figure: if the calculator says 400 and your rough estimate says 40, something is off — usually a misplaced decimal point or a wrong unit. The calculator does the arithmetic; the judgement about whether the answer makes sense still belongs to you.
How to use this Gravitational Force Calculator
Open the page and enter the two masses in kilograms and the distance between their centres in metres. Enter the two masses in kilograms and the centre-to-centre distance in metres. The force appears in nanonewtons and in scientific notation.
Read the force in nanonewtons as the headline number, and the scientific-notation value as the exact force in newtons — the two are the same number in different units. If the force looks impossibly small, it probably is: gravity between everyday objects is tiny, and only planetary masses give forces you can feel.
Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. If a result looks wrong, re-check the inputs first: a single mistyped number is the usual cause, and a force converter will confirm the arithmetic.