1. Home
  2. Physics
  3. Gravitation
  4. Net Gravitational Force (Multiple Masses) Calculator

Net Gravitational Force (Multiple Masses) Calculator

Vector sum of forces from up to 4 masses in a plane, with a force diagram.

PhysicsGrades 11–12ExpertStep-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. A 1 kg mass is at (0, 4) m. Masses of 2 kg at (0, 0) and 3 kg at (3, 0) attract it. Find the net force and its direction.

  2. Two 10 kg masses sit at (−1, 0) m and (1, 0) m. Find the net force on a 2 kg mass at (0, 1) m.

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: A 1 kg mass is at (0, 4) m. Masses of 2 kg at (0, 0) and 3 kg at (3, 0) attract it. Find the net force and its direction.

Plan: how this problem is solved
  1. Write the given values in SI units
  2. Method
  3. Force due to mass 1
  4. Force due to mass 2
  5. Add the components
  6. Magnitude of net force
  7. Direction of net force
Answer
Net forceF = 1.551 × 10−11 N
Direction (from +x axis)θ = −71.95°
x-componentFx = 4.805 × 10−12 N
y-componentFy = −1.475 × 10−11 N
m1m2m0
force from each mass   net force (arrow lengths to scale)
Step-by-step solution
  1. Write the given values in SI units
    m0=1 kg
    x0=0 m
    y0=4 m
    m1=2 kg
    x1=0 m
    y1=0 m
    m2=3 kg
    x2=3 m
    y2=0 m
    G=6.674 × 10−11 N m²/kg²
  2. Method
    Each mass pulls the test body towards itself. Find each force, split it into x and y parts, add the parts, then combine.
  3. Force due to mass 1
    Δx1=x1 − x0
    =0 − 0
    =0 m
    Δy1=y1 − y0
    =0 − 4
    =−4 m
    r1=√Δx12 + Δy12
    =√02 + (−4)2
    =4 m
    F1=G m0 m1r12
    =(6.674 × 10−11) × 1 × 242
    =8.342 × 10−12 N
    F1x=F1 Δx1r1
    =(8.342 × 10−12) × 04
    =0 N
    F1y=F1 Δy1r1
    =(8.342 × 10−12) × (−4)4
    =−8.342 × 10−12 N
  4. Force due to mass 2
    Δx2=x2 − x0
    =3 − 0
    =3 m
    Δy2=y2 − y0
    =0 − 4
    =−4 m
    r2=√Δx22 + Δy22
    =√32 + (−4)2
    =5 m
    F2=G m0 m2r22
    =(6.674 × 10−11) × 1 × 352
    =8.009 × 10−12 N
    F2x=F2 Δx2r2
    =(8.009 × 10−12) × 35
    =4.805 × 10−12 N
    F2y=F2 Δy2r2
    =(8.009 × 10−12) × (−4)5
    =−6.407 × 10−12 N
  5. Add the components
    Fx=F1x + F2x
    =0 + (4.805 × 10−12)
    =4.805 × 10−12 N
    Fy=F1y + F2y
    =(−8.342 × 10−12) + (−6.407 × 10−12)
    =−1.475 × 10−11 N
  6. Magnitude of net force
    F=√Fx2 + Fy2
    =√(4.805 × 10−12)2 + (−1.475 × 10−11)2
    =1.551 × 10−11 N
  7. Direction of net force
    θ=tan−1(FyFx)
    =tan−1((−1.475 × 10−11)(4.805 × 10−12))
    =−71.95°
    Angle is measured anticlockwise from the +x axis, with the correct quadrant chosen from the signs of Fₓ and Fy.
Key idea: Gravitational forces obey the superposition principle: the net force is the vector sum of the forces from each mass, each computed as if the others were absent.

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².
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.
Net force (vector sum)
When several forces act, you add them as arrows (vectors), not as plain numbers. Split each into x and y parts, add the parts, then combine.

Symbols in this solver

What each box asks for, and its unit.

SymbolWhat it meansSI unit
m0Mass of the test bodykg (or g, tonne, M⊕, M☾, M☉)
x0x positionm (or km, cm, mm, R⊕, AU)
y0y positionm (or km, cm, mm, R⊕, AU)
m1Mass 1kg (or g, tonne, M⊕, M☾, M☉)
x1x positionm (or km, cm, mm, R⊕, AU)
y1y positionm (or km, cm, mm, R⊕, AU)
m2Mass 2 (leave blank to skip)kg (or g, tonne, M⊕, M☾, M☉)
x2x positionm (or km, cm, mm, R⊕, AU)
y2y positionm (or km, cm, mm, R⊕, AU)
m3Mass 3 (leave blank to skip)kg (or g, tonne, M⊕, M☾, M☉)
x3x positionm (or km, cm, mm, R⊕, AU)
y3y positionm (or km, cm, mm, R⊕, AU)
m4Mass 4 (leave blank to skip)kg (or g, tonne, M⊕, M☾, M☉)
x4x positionm (or km, cm, mm, R⊕, AU)
y4y positionm (or km, cm, mm, R⊕, AU)

Formula & concept

Vector sum of gravitational forces on a test body from up to 4 masses placed anywhere in a plane. Includes a diagram.

F⃗ = Σ Gm0miri2 r̂i

Key idea: Gravitational forces obey the superposition principle: the net force is the vector sum of the forces from each mass, each computed as if the others were absent.

How to use this calculator

  1. Type the known values from your question and pick the unit for each one.
  2. Press Solve step by step.
  3. 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.
  4. Check the answer, then go through each numbered step. Where there's a second method, it's shown after the main one.
  5. Stuck on a word? The terms section explains it in simple language.

Frequently asked questions

How does the Net Gravitational Force (Multiple Masses) work?
You enter the values you know, pick their units and press Solve. The tool changes everything to SI units, applies the formula F⃗ = Σ (Gm0mi)/(ri^2) r̂i and shows you each step: given data, formula, substitution and the final answer.
What is the key idea behind it?
Gravitational forces obey the superposition principle: the net force is the vector sum of the forces from each mass, each computed as if the others were absent.
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 Net Gravitational Force (Multiple Masses) 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 11–12 (A-Level · AP · IB · Class 11–12 · JEE · NEET). The working follows the method used in textbooks and exams.