Universal Gravitation Calculator
Calculate gravitational force between any two masses using Newton's universal law of gravitation.
Universal Gravitation and the Inverse-Square Law
Newton's law of gravitation states that every pair of masses attracts with a force proportional to both masses and inversely proportional to the square of their separation. The relation F=Gm1m2/r2 works exactly for point masses and, by the shell theorem, for spherically symmetric bodies when r is measured between their centers.
The inverse square appears because a spherically spreading gravitational influence is distributed over an area proportional to 4πr2. Doubling center-to-center distance therefore reduces force to one quarter. This same dependence gives the gravitational field of a spherical body, g=GM/r2, and the weight of a smaller mass is then F=mg.
| Symbol | Meaning | Why it appears / units |
|---|---|---|
| F | Mutual gravitational-force magnitude | N; each body experiences equal magnitude in the opposite direction. |
| G | Universal gravitational constant | Approximately 6.67430×10−11N·m2/kg2. |
| m1, m2 | Interacting masses | kg; force is proportional to their product. |
| r | Center-to-center separation | m; appears squared in the denominator. |
| g | Gravitational field strength | N/kg, numerically equal to m/s2. |
Near Earth's surface, using g≈9.81m/s2 is convenient because height changes are small compared with Earth's radius. At large altitude, use r=REarth+h. For irregular extended bodies or nearby nonspherical mass distributions, the mass must be integrated rather than treated as a point at its center.
Worked Examples
Common Mistakes
For spherical planets, moons, or stars, r is measured between centers. At altitude h above a planet, use r=R+h.
Gravity follows 1/r2, not 1/r. Increasing separation by a factor of three reduces force by a factor of nine.
Mass is measured in kilograms and does not depend on local gravity. Weight is a force in newtons and changes when the gravitational field changes.
Frequently Asked Questions
Formula Explorer connections
Interpretation: This relationship connects motion, force, momentum, work or energy in a mechanical system. Assumption: Choose a consistent reference direction and unit system. The model may assume constant acceleration, rigid bodies, negligible losses or an isolated system.