Compute the gravitational attraction between two masses using F = G·m₁·m₂ / r². Visualize the force magnitude and direction. Ideal for astrophysics, orbital mechanics, and classroom demonstrations.
Sir Isaac Newton formulated the law of universal gravitation in 1687, revolutionizing physics. Every mass attracts every other mass with a force proportional to the product of their masses and inversely proportional to the square of the distance between their centers. The gravitational constant G = 6.67430(15) × 10⁻¹¹ m³ kg⁻¹ s⁻² is a fundamental physical constant, determined experimentally by Henry Cavendish in 1798 (CODATA 2018 recommended value).
This equation explains planetary orbits, tides, stellar formation, and even the motion of galaxies. The calculator above applies this formula with high precision, letting you explore scales from subatomic particles to astronomical systems.
Due to double-precision floating-point arithmetic, forces below 1e-50 N are shown as zero. For distances larger than 1e20 m or masses below 1e-30 kg, the product m₁·m₂ may underflow; however, such extreme values lie far outside typical physics problems. The calculator automatically switches to scientific notation for readability. Relative error is less than 1e-12 for all inputs within the range 1e-15 ≤ r ≤ 1e30 m and masses from 1e-30 to 1e30 kg.
For a satellite in Low Earth Orbit (LEO) at altitude ~400 km, the gravitational force provides the centripetal acceleration. With Earth mass 5.972×10²⁴ kg and orbital radius ~6.771×10⁶ m, the gravitational pull is still about 90% of surface gravity. This tool helps mission designers quickly estimate gravitational forces for station-keeping and orbital transfers.
The differential gravitational pull of the Moon on Earth's oceans creates tides. Using our calculator with Earth–Moon masses and center-to-center distance, you get ~1.98×10²⁰ N – an immense force that constantly reshapes our coastlines and even slows Earth's rotation.
| System | Mass 1 (kg) | Mass 2 (kg) | Distance (m) | Force (N) |
|---|---|---|---|---|
| Earth – Moon | 5.972×10²⁴ | 7.348×10²² | 3.844×10⁸ | 1.98×10²⁰ |
| Sun – Earth | 1.989×10³⁰ | 5.972×10²⁴ | 1.496×10¹¹ | 3.54×10²² |
| Two 70 kg humans at 1 m | 70 | 70 | 1.0 | 3.27×10⁻⁷ |
| Jupiter – Io | 1.898×10²⁷ | 8.93×10²² | 4.217×10⁸ | 6.36×10²² |
| Proton – Electron (1 Å) | 1.673×10⁻²⁷ | 9.109×10⁻³¹ | 1.0×10⁻¹⁰ | 1.02×10⁻⁴⁷ |
The calculator uses double-precision arithmetic with the exact G value: 6.67430e-11. Forces less than 1e-6 N are displayed in scientific notation. The gravitational parameter (μ = G·m₁·m₂) is also shown, which is crucial for orbital trajectory calculations. All intermediate steps preserve full floating-point accuracy.
Newton’s law assumes point masses or spherically symmetric bodies, which holds for planets and stars at typical distances. Our tool automatically applies the inverse-square relationship: if you double the distance, the force reduces to one quarter. Experiment with distance sensitivity using the input fields. Furthermore, you can compute the weight equivalent (force divided by g₀ = 9.80665 m/s²) to intuitively understand the force magnitude. The individual accelerations (a₁ = F/m₁, a₂ = F/m₂) help compare how each mass responds to the mutual attraction.