Gravitational Force Calculator

Calculate the gravitational force between two masses using Newton's law of universal gravitation (F = G × m1 × m2 / r²).

Use the Gravitational Force Calculator

Inputs

Select what to solve for, then fill in the remaining values.

kg
kg
m
G = 6.674 × 10−11 N·m²/kg²  (universal gravitational constant)

Result

Enter values and click Calculate.

Formula Reference

Find Force

F = G·m1·m2 / r²

Find Mass 2

m2 = F·r² / (G·m1)

Find Distance

r = √(G·m1·m2 / F)

Summary

The Gravitational Force Calculator computes the attractive force between any two objects with mass, using Newton's law of universal gravitation. Enter both masses and the distance between their centers to instantly find the gravitational force in Newtons. The tool also supports solving for either mass or the separation distance when the force is known.

How it works

  1. Select what you want to solve for: Force, Mass 2, or Distance.
  2. Enter the required values — masses in kilograms and distance in meters.
  3. Click Calculate to apply the formula F = G × m1 × m2 / r².
  4. The result is displayed with a full step-by-step breakdown.
  5. Use the Reset button to clear all fields and start over.

Use cases

  • Physics homework and exam problems on gravitation and orbital mechanics.
  • Estimating the gravitational pull between planets, moons, and stars.
  • Engineering calculations involving large-scale mass interactions.
  • Classroom demonstrations of Newton's inverse-square law.
  • Comparing gravitational forces at different separation distances.
  • Verifying textbook examples of the universal gravitational constant G.

Frequently Asked Questions

Last updated: 2026-05-23 · Reviewed by Nham Vu