1. Home
  2. Physics
  3. Gravitation
  4. Newton's Law of Gravitation Calculator

Newton's Law of Gravitation Calculator

Force between two masses, or find a mass or the distance, with every step shown.

PhysicsGrades 9–10Grades 11–12BeginnerStep-by-step solution

Practice questions

Textbook-style questions. Press Solve in the tool to load the values and see the full solution. Underlined words are explained below.

  1. Two lead spheres of 10 kg and 5 kg have their centres 0.5 m apart. Find the gravitational force between them.

  2. Two students of mass 60 kg and 50 kg sit 2 m apart. How strongly do they attract each other?

  3. The Earth (6 × 10²⁴ kg) pulls a 1 kg body on its surface with 9.8 N. Find the radius of the Earth.

Worked example

Here's the first practice question solved in full, so you can see exactly what you'll get. Try it on paper before you read the steps.

Question: Two lead spheres of 10 kg and 5 kg have their centres 0.5 m apart. Find the gravitational force between them.

Plan: how this problem is solved
  1. Write the given values in SI units
  2. Apply Newton's law of gravitation
Answer
Gravitational forceF = 1.335 × 10−8 N
Step-by-step solution
  1. Write the given values in SI units
    M=10 kg
    m=5 kg
    r=0.5 m
    G=6.674 × 10−11 N m²/kg²
    To find: F (Gravitational force)
  2. Apply Newton's law of gravitation
    F=G M mr2
    =(6.674 × 10−11) × 10 × 50.52
    =1.335 × 10−8 N
Key idea: Gravity always attracts and acts along the line joining the two centres. The force follows an inverse-square law: double the distance and the force becomes ¼. Both bodies feel the same force (Newton's third law).

Terms used on this page

New to a word in the question or the solution? Here it is in simple language.

Mass (m, M)
How much matter a body has. It's measured in kilograms (kg) and stays the same everywhere, on Earth or on the Moon.
Force (F)
A push or a pull. It's measured in newtons (N). One newton gives 1 kg an acceleration of 1 m/s².
Powers of ten (6.4 × 10⁶)
A short way to write very big or very small numbers. 6.4 × 10⁶ means 6.4 with the point moved 6 places right: 6,400,000. In the boxes you can type it as 6.4e6.
Gravitational force
The pull every mass has on every other mass. Newton found it gets weaker with the square of the distance: F = GMm/r². Twice as far means one-fourth the pull.
Universal gravitational constant (G)
A fixed number in Newton's law: G = 6.674 × 10⁻¹¹ N m²/kg². It's tiny, which is why you don't feel the pull of the person sitting next to you.
Radius (R) and distance from centre (r)
R is the size of the planet, from its centre to its surface. r is the distance from the centre to the point you're looking at. Above the surface, r = R + h.
Displacement (s)
How far a body ends up from where it started, in a straight line, with a direction. If you walk 5 m forward and 5 m back, the distance is 10 m but the displacement is 0.

Symbols in this solver

What each box asks for, and its unit.

SymbolWhat it meansSI unit
MMass of body 1kg (or g, tonne, M⊕, M☾, M☉)
mMass of body 2kg (or g, tonne, M⊕, M☾, M☉)
rDistance between centresm (or km, cm, mm, R⊕, AU)
FGravitational forceN (or kN, dyne, lbf)

Formula & concept

Force between two masses. Find the force, either mass, or the distance between them.

F = G M mr2

Key idea: Gravity always attracts and acts along the line joining the two centres. The force follows an inverse-square law: double the distance and the force becomes ¼. Both bodies feel the same force (Newton's third law).

What it can find

Choose the unknown with the “What do you want to find?” buttons: gravitational force, mass of body 1, mass of body 2, distance between centres. The formula is rearranged for you and every step is shown.

How to use this calculator

  1. Choose what you want to find. Its box turns orange.
  2. Type the known values from your question and pick the unit for each one.
  3. Press Solve step by step.
  4. Read the plan first. It lists the steps the solution will follow. Want to try it yourself? Tick Practice mode and the answer stays hidden until you ask for it.
  5. Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
  6. Stuck on a word? The terms section explains it in simple language.

Frequently asked questions

How does the Newton's Law of Gravitation work?
You enter the values you know, pick their units and press Solve. The tool changes everything to SI units, applies the formula F = (G M m)/(r^2) and shows you each step: given data, formula, substitution and the final answer.
What is the key idea behind it?
Gravity always attracts and acts along the line joining the two centres. The force follows an inverse-square law: double the distance and the force becomes ¼. Both bodies feel the same force (Newton's third law).
Can I enter values in km, mm, kN or °C?
Yes. Each box has a unit list. The conversion to SI units is shown as the first step of the solution.
What if my answer doesn't match my book?
First check that you've picked the right units. Then see which constants your book uses and how many figures it rounds to. You can change the number of figures under Settings in the solver. A small difference in the last digit is usually just rounding.
Can I see how to solve it without seeing the answer?
Yes. Tick Practice mode under the solver. You'll get the plan of steps only, so you can work it out on paper. One click then shows the full solution.
Is the Newton's Law of Gravitation free to use?
Yes, it's free with no sign-up. All calculations happen inside your browser and nothing you type is stored.
Which grades is it useful for?
It's made for Grades 9–10 (GCSE · IGCSE · US high school · Class 9–10 (CBSE, ICSE)) and Grades 11–12 (A-Level · AP · IB · Class 11–12 · JEE · NEET). The working follows the method used in textbooks and exams.