About Gravitational Force Calculator
Newton's law of gravitation says every pair of masses attracts with a force proportional to both masses and inversely proportional to the square of the distance between them. That single relationship explains falling apples, orbits and the tides, and it only needs three numbers: two masses and their separation.
This calculator applies F = G·m₁·m₂/r² with G = 6.67430 × 10⁻¹¹ N·m²/kg², shows the substituted working, and reports the acceleration each mass would experience from the same force. Masses can be entered in kilograms or grams with optional Earth and Sun presets, and distances in meters or kilometers.
What this tool does
Force in newtons
The mutual force is computed from the two masses and their separation, displayed in scientific notation when the value is very small or very large.
Both accelerations
The same force gives a₁ = G·m₂/r² and a₂ = G·m₁/r², which differ whenever the two masses differ.
Mass unit flexibility
Enter kilograms or grams; the conversion to SI units appears in the working so the arithmetic can be followed.
Earth and Sun presets
One click fills a standard mass for either body, useful for orbit problems and textbook examples.
Distance in m or km
Converted to meters before the formula; changing the distance shows the inverse-square effect directly in the result.
Formula and working
F = G·m₁·m₂/r² is printed with the constant, the converted values and the final arithmetic.
How to use Gravitational Force Calculator
- 01
Enter the first mass
Type a mass in kilograms or grams, or use the Earth or Sun preset button.
- 02
Enter the second mass
Use the same unit controls; the two bodies can be entered in different units.
- 03
Set the distance
Use the center-to-center separation in meters or kilometers.
- 04
Read the force and accelerations
The headline shows the force in newtons, and the cards show the acceleration each mass would experience.
- 05
Check the working
The formula panel substitutes G, both masses and the squared distance so the result can be verified by hand.
How this tool works
- Works with
- m₁, m₂, r → F
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- Treats each mass as a point mass or uniform sphere; the model is exact outside spherical bodies but approximate for irregular or very close objects.
- Only the mutual gravitational force is calculated; rotation, air resistance, buoyancy and other forces are ignored.
- The Earth and Sun presets are approximate standard masses; use precise mission values for high-accuracy work.
Privacy and file handling
Mass, distance and force values are processed entirely in your browser. Nothing is uploaded, stored or logged, and no network request is made while you calculate.
Read the full privacy policy