Calculators

Gravitational Force Calculator

Solve for gravitational force, mass, or distance using Newton's law of universal gravitation locally in your browser.

Choose what to solve for, then enter the other three values using consistent units (for example, kilograms with metres for newtons). Calculations run locally in your browser; your values are not uploaded or stored.

Your gravitational force, mass, and distance result will appear here.

Solve universal gravitation without uploading your values.

Enter the two masses with distance to calculate force, the force with one mass and distance to calculate the other mass, or the two masses with force to calculate distance, using consistent units, such as kilograms with metres for newtons. The calculator applies the gravitational constant and shows the matching result locally without being uploaded or stored.

Frequently Asked Questions

Everything you need to know about this tool, how it works, and privacy.

Which formulas does the gravitational force calculator use?

It uses force = gravitational constant x mass one x mass two / distance squared, mass one = force x distance squared / (gravitational constant x mass two), mass two = force x distance squared / (gravitational constant x mass one), and distance = square root of (gravitational constant x mass one x mass two / force). For example, two 1000 mass units at a distance of 1 length unit give a gravitational force of approximately 6.674e-5 force units.

Which units should I use?

Use the same mass and distance units on both inputs, such as kilograms with metres for newtons. The answer is reported in the matching combined force, mass, or length unit.

Which inputs are accepted?

Enter values of zero or greater up to 1,000,000,000,000. Distance must be greater than zero when solving for force, and the known mass must be greater than zero when solving for the other mass. Missing or non-numeric entries show a clear error instead of a result.

Do my values stay private?

Yes. The calculation and copy action run locally in your browser. CodeASystem does not upload or store the values you enter.