Gravitational Force Calculator
Newton's law of universal gravitation: F = Gm₁m₂/r².
Free Gravitational Force Calculator
Our free gravitational force calculator applies Newton's law of universal gravitation instantly. Enter the two masses and the distance between them, and get the gravitational force immediately — or solve for a mass or distance if that's your unknown.
Preset values for Earth, the Moon, the Sun, and other planets make astronomy problems quick to set up, and the calculator handles the huge and tiny numbers involved in gravity calculations cleanly with scientific notation, so you never lose precision. Every result comes with the formula and substitution shown, including the gravitational constant.
Whether you're studying physics, astronomy, or just curious about the forces holding the solar system together, this tool gives accurate answers with the reasoning shown. No sign-up, no downloads, no limits.
About the Gravitational Force Calculator
How It Works & Methodology
The Gravitational Force Calculator applies Newton's law of universal gravitation to solve for force, either mass, or the distance between two masses, given the other three quantities. G = 6.674×10⁻¹¹ N·m²/kg² is used throughout, and inputs/outputs support scientific notation to handle the very large and very small numbers common in gravity problems.
Features
Solve for F, m₁, m₂, or r
Choose the unknown and enter the other three quantities.
Astronomical presets
Auto-fill mass values for Earth, the Moon, the Sun, Mars, and Jupiter.
Scientific notation
Handles astronomically large and vanishingly small numbers cleanly.
Step-by-step working
Shows the formula and substitution, including the value of G.
Mathematical Basis & Practical Verification
The Gravitational Force Calculator is built on SI-unit classical mechanics, electromagnetism, thermodynamics, optics, and special relativity equations using CODATA physical constants. Free gravitational force calculator applying Newton's law of universal gravitation, solving for force, mass, or distance. The interface validates every input parameter in real time and surfaces intermediate steps alongside the final result.
All computations for the Gravitational Force Calculator follow the definitions established in CODATA Internationally Recommended Values of the Fundamental Physical Constants (National Institute of Standards and Technology (NIST)) and ISO 80000-4: Quantities and Units — Mechanics, Thermodynamics, and Electromagnetism (International Organization for Standardization (ISO)). Because the solver evaluates inputs locally in IEEE 754 double-precision arithmetic (53-bit significand, ~15–17 significant decimal digits) and is regression-tested against deterministic reference fixtures in tests/gravity-calculator.spec.ts, you can inspect boundary conditions, verify dimensional consistency across physics units, and cross-check each intermediate step against textbook solutions.
Related Calculators & Tools
Calculate range, maximum height, flight time, and impact velocity, and watch the trajectory animate on a live canvas.
Solve for any two unknowns using the five kinematic equations, with step-by-step working.
Solve for voltage, current, resistance or power from any two known values, with unit conversion and a formula triangle.
Apply Newton's second law to solve for force, mass, or acceleration, with unit conversion and an optional net-force mode.
Authoritative Sources & Standards
- CODATA Internationally Recommended Values of the Fundamental Physical Constants — National Institute of Standards and Technology (NIST)
- ISO 80000-4: Quantities and Units — Mechanics, Thermodynamics, and Electromagnetism — International Organization for Standardization (ISO)
Frequently Asked Questions
How does the gravitational force calculator work?
Enter two masses and the distance between them (or solve for one of those given the force), and it applies F = Gm1m2/r² to compute the result.
What is the gravitational constant G?
G = 6.674×10⁻¹¹ N·m²/kg², a fixed constant used in Newton's law of universal gravitation.
Can I use preset planet masses?
Yes, presets for Earth, the Moon, the Sun, and other planets auto-fill common values.
Does it handle very large or small numbers?
Yes, inputs and outputs support scientific notation for astronomical masses and distances.
Does it show the steps?
Yes, the formula and substitution — including the value of G — are shown for every calculation.
What if I enter a distance of zero?
This is flagged as invalid since it produces an undefined (infinite) force.
Can it solve for mass or distance instead of force?
Yes, choose which quantity to solve for and enter the other three.