Gravitational Force Calculator
This calculator applies Newton's law of universal gravitation, F equals G times m1 times m2 divided by r squared, to the two masses and separation you enter. Give both masses in kilograms and the centre-to-centre distance in metres and it returns the attractive force in newtons. Very small or very large results are shown in scientific notation so tiny everyday forces stay readable.
How to use the gravitational force calculator
- Enter the first mass in kilograms in the Mass 1 field.
- Enter the second mass in kilograms in the Mass 2 field.
- Enter the centre-to-centre distance between the two bodies in metres.
- Read the attractive gravitational force in newtons in the highlighted panel.
- Click Copy to save the force as a labelled line such as F = 9.81953 N.
Examples
Two 1000 kg masses two metres apart
m1 = 1000 kg, m2 = 1000 kg, r = 2 m
F = 1.66850e-5 N
A 1 kg object at Earth's surface
m1 = 5.972e24 kg, m2 = 1 kg, r = 6.371e6 m
F = 9.81953 N
The Earth and the Moon
m1 = 5.972e24 kg, m2 = 7.342e22 kg, r = 3.844e8 m
F = 1.98040e+20 N
Frequently asked questions
What is Newton's law of universal gravitation?
Every pair of masses attracts along the line joining their centres with a force F = G times m1 times m2 divided by r squared, where r is the centre-to-centre distance. The pull on each body is equal in size and opposite in direction.
What value of the gravitational constant G does it use?
It uses G = 6.674 x 10^-11 N m^2 / kg^2, the standard CODATA value. The API accepts an optional G override if you need a different precision or a scaled model, but the web form always uses the standard constant.
What units should I enter?
Mass in kilograms, distance in metres and the resulting force in newtons. These SI units keep G at its usual value, so convert grams, pounds, miles or kilometres before you type them in.
Why must the distance be greater than zero?
The force scales with 1 divided by r squared, so a distance of zero would imply an infinite, unphysical force. The calculator rejects a zero or negative distance and only accepts positive separations.
Should distance be the surface gap or the centre gap?
Newton's law uses the distance between the centres of mass, not the gap between surfaces. For the Earth surface example, r is Earth's radius of about 6.371 million metres, measured from the planet's centre.
Why is the force between everyday objects so tiny?
Because G is extremely small, gravity is only noticeable when at least one mass is enormous, such as a planet or star. Two 1000 kg cars two metres apart pull on each other with only about 1.67 x 10^-5 N, far too weak to feel.
Can it work out mass or distance instead of force?
The web form solves for force, but the underlying engine also has functions that rearrange the same law to solve for a mass or a separation. Those inverse forms are available through the tool's code rather than the on-page inputs.
Does it account for the shape of the bodies?
It treats each mass as a point, or equivalently as a uniform sphere, so the force acts as if all the mass sits at the centre. For irregular or very close bodies the real force can differ from this idealised result.
Is my input sent to a server?
No. The force is computed in your browser as you type, so the masses and distance you enter never leave your device.
Learn more
- Newton's law of gravitation and the inverse square rule
How mass and distance set the strength of gravity, why the force falls off as one over distance squared, and how to read very small answers.
Related tools
Force Calculator
Solve Newton's second law online. Enter any two of force, mass or acceleration and get the third, in newtons, kilograms and metres per second squared.
Projectile Motion Calculator
Calculate projectile range, max height and time of flight from launch speed and angle. Supports custom gravity and launch height. Free physics calculator.
Coulomb's Law Calculator
Calculate the electrostatic force between two point charges with Coulomb's law, F = k q1 q2 / r squared. Shows attract or repel. Free physics calculator.
555 Timer Calculator
Calculate 555 timer astable frequency, period, high and low times and duty cycle from R1, R2 and the timing capacitor. Free oscillator design helper.
Absolute Humidity Calculator
Calculate absolute humidity in grams of water vapor per cubic meter from air temperature and relative humidity. Fast, free and works in your browser.
Allele Frequency Calculator
Find allele frequencies from genotype counts. Enter the number of AA, Aa and aa individuals to get the A and a allele frequencies and allele totals.