Gravitational Force Calculator
Compute the Newtonian gravitational force between two point masses, or solve for one of the masses or the separation. Provide any three independent values among F, m1, m2 and r (G defaults to CODATA value) and leave the unknown blank. The solver shows derivations and supports CSV export and printable results.
Newtonian Gravity — law, scale and practical considerations
Newton's law of universal gravitation provides a remarkably accurate and simple description of the attractive force between masses across a wide range of everyday and astronomical scales. The law states that two point masses m1 and m2 separated by distance r attract each other with a force whose magnitude is
F = G × m1 × m2 / r²
where G is the gravitational constant (≈ 6.67430×10⁻¹¹ m³·kg⁻¹·s⁻²). Although the constant G is very small, astronomical masses and large separations result in gravitational forces that shape the motion of planets, stars, and galaxies.
Scaling with distance and mass
The inverse-square dependence on r means gravitational force falls off quickly with increasing separation. Doubling the distance reduces the force by a factor of four. Conversely, gravitational force scales linearly with each mass: doubling one mass doubles the force. This scaling explains both the strong gravity near dense bodies and the tiny gravitational attractions between everyday-sized objects.
Units and consistent use
Use SI units for accurate results: kilograms for mass, meters for distance, newtons for force. The gravitational constant's units ensure dimensional consistency. This tool accepts scientific notation (for example 5.972e24 for Earth's mass) to reduce unit-conversion errors.
Computational rearrangements
The gravitational formula is easily rearranged to solve for any one unknown when the other three are known. Common rearrangements include:
- F = G m1 m2 / r² (compute force)
- r = sqrt(G m1 m2 / F) (compute separation magnitude)
- m1 = F r² / (G m2) (solve for one mass given the other)
Be mindful of physical constraints: r must be positive and non-zero, masses non-negative, and force non-negative when treated as a magnitude.
Practical examples
Example 1 — Earth–Moon attraction: Using m1 = 5.972e24 kg (Earth), m2 = 7.348e22 kg (Moon), and r = 3.844e8 m (average), F ≈ G × m1 × m2 / r² ≈ 1.98e20 N. This is the mutual gravitational force that governs the Moon's orbit.
Example 2 — Small masses: Two 1 kg masses separated by 1 m experience F ≈ 6.67430e-11 N — extremely tiny and imperceptible without sensitive instruments.
Limitations and when Newtonian gravity fails
Newtonian gravity is an excellent approximation for weak fields and low speeds. It fails in strong-field regimes (near black holes) or when extremely high precision is required for relativistic systems. In those cases, general relativity—a geometric theory of gravitation—provides the correct framework. However, for most engineering and planetary calculations, Newton's law remains sufficient.
Vector direction and sign
The formula above gives the magnitude of the attractive force. The vector force points along the line joining the centers of the two masses and is directed inward (attractive). If you need vector components, compute the magnitude first and then distribute it into components using the normalized direction vector between mass centers.
Measurement and experimental determination of G
The gravitational constant G is notoriously hard to measure precisely because the gravitational force between laboratory-sized masses is tiny. Classical Cavendish-type experiments measure the tiny torque between masses on a torsion balance. Modern measurements use refined techniques, but small systematic errors still make G the least precisely known fundamental constant compared with others like c or h.
Using this calculator effectively
Provide three independent values among F, m1, m2 and r to compute the fourth. Use the default CODATA G or override it for pedagogical scenarios. Enable step-by-step derivations for documentation in lab reports. Keep units consistent — mixing kilometers and meters or grams and kilograms without conversion will produce incorrect results.
Newton's law of gravitation links masses and distances in a simple inverse-square law that accurately predicts planetary motion and many terrestrial phenomena. While its domain of validity excludes relativistic extremes, its conceptual clarity and practicality make it an essential tool in physics and engineering.
Frequently Asked Questions
F = G m1 m2 / r², where G ≈ 6.67430e-11 m³·kg⁻¹·s⁻².
Use kilograms for mass, meters for distance, and newtons for force. Keep units consistent.
Yes. Rearranged: r = sqrt(G m1 m2 / F), provided F>0 and masses>0.
The tool provides a default CODATA value for G but allows overrides for testing or teaching purposes.
Gravity is the weakest of the fundamental forces at the scale of everyday masses; its small constant reflects the relative weakness compared to electromagnetic or nuclear forces.
No — this calculator computes point-mass mutual attraction. Local gravitational acceleration depends on Earth's shape, rotation, altitude and subsurface density variations.
Negative masses are non-physical. The calculator will flag invalid inputs. Distance must be positive and non-zero.
Use general relativity for strong gravitational fields (near massive compact objects) or when high-precision measurements of spacetime curvature are required.
Not directly on this page — gravitational potential energy between point masses is U = -G m1 m2 / r; you can compute it manually using the same inputs.
Yes — AkCalculators provides this educational tool free to users.