Gravitational Force Calculator | Newton's Law of Universal Gravitation
Astrophysics Tool

Gravitational Force Calculator

Calculate the exact force of gravitational attraction between any two objects, from everyday items to planetary bodies, using Newton's Law of Universal Gravitation.

Measure the Attraction

Enter the mass of both objects and the distance between their centers. The calculator supports scientific notation (e.g., type 5.97e24 for 5.97 × 1024).

Object Masses
Object Masses
Distance
Distance Separation

The distance must be measured from the center of mass of object 1 to the center of mass of object 2, not their surfaces.

The Methodology

How this calculator works

Gravitational force is the attractive force between two objects with mass. Calculate gravitational force using F = Gm₁m₂/r², where G is the gravitational constant, m₁ and m₂ are the objects’ masses, and r is the distance between their centers. Force increases with mass and decreases with distance squared.

A gravitational force calculator computes the mutual attractive force between any two objects with mass. It uses Newton's Law of Universal Gravitation, combining the masses of the two bodies and the distance separating their centers, scaled by the universal gravitational constant, to determine the exact pull in Newtons.

The core logic relies entirely on Sir Isaac Newton's famous formula published in 1687: F = G × (m₁m₂) / r².

The calculator first standardizes all user inputs into base SI units: masses into kilograms (kg) and distance into meters (m). It then multiplies the two masses together. It divides this product by the square of the distance between their centers. Finally, the result is multiplied by the gravitational constant (G ≈ 6.6743 × 10⁻¹¹ N·m²/kg²) to yield the final force.

Note on acceleration: While the force acting on both objects is exactly identical (Newton's Third Law), their resulting acceleration is often wildly different. A small object accelerates incredibly fast toward a massive object, while the massive object barely moves, defined by a = F / m.

Core Concept

The Inverse-Square Law

The most critical mechanism in gravitational mechanics is the inverse-square law, represented by the r² at the bottom of the equation.

Gravity does not drop off linearly. If you double the distance between two objects, the gravitational force between them doesn't just halve—it drops to one-quarter (1/4) of its original strength. If you move them three times further apart, the force drops to one-ninth (1/9). This is why you feel Earth's gravity overwhelmingly, while the gravity of the vastly more massive Sun, being 150 million kilometers away, only exerts a gentle pull on you directly.

The Universal Anchor

Understanding the Constant (G)

The gravitational constant, denoted by a capital G, is an empirical physical constant that scales the mathematical formula to match reality. It is one of the fundamental constants of nature, sitting alongside the speed of light.

  • Incredibly Weak The value of G is astronomically small: roughly 0.00000000006674. This reveals that gravity is, by far, the weakest of the four fundamental forces of nature. It takes an object the size of a planet to generate enough gravity to keep your feet on the ground.
  • The Cavendish Experiment Newton derived the formula, but he didn't know the value of G. It was first successfully measured in 1798 by Henry Cavendish, who used a highly sensitive torsion balance to measure the infinitesimal attraction between lead spheres in his laboratory, effectively "weighing the Earth" for the first time.

Applied Physics

Real-World Applications

While often taught theoretically, calculating gravitational force is actively used across astronomy, aerospace engineering, and geophysics:

Orbital Mechanics & Spaceflight

Engineers use these precise calculations to determine the escape velocity required for rockets to leave Earth, and to plot the complex trajectories of satellites and space probes interacting with the gravity of multiple planets.

Ocean Tides

The gravitational pull calculated between the Earth, the Moon, and the Sun is entirely responsible for the rising and falling of ocean tides. Because of the inverse-square law, the closer Moon exerts a stronger tidal force on Earth's oceans than the much more massive but distant Sun.

Mathematical Proportions

Mass vs. Distance: Which Dominates?

When calculating gravitational attraction, it is crucial to understand that mass and distance do not influence the final force equally. They scale in fundamentally different mathematical ways.

Linear Scaling (Mass)

The relationship with mass is direct and linear. If you double the mass of one object, the gravitational force precisely doubles. If you triple the mass, the force triples. It is a simple 1:1 proportional increase acting as the numerator.

Exponential Scaling (Distance)

Because distance is squared (r²) and located in the denominator, it exerts exponential control over the force. Halving the distance doesn't double the force; it quadruples (4x) it. Distance changes always dominate mass changes.

Orbital Mechanics

The Barycenter: Gravity's True Focal Point

A common misconception is that a smaller object orbits the exact geometric center of a larger object (like the Moon orbiting the center of the Earth). In reality, Newton's law dictates that both objects pull on each other equally, causing both to orbit their common center of mass, known as the barycenter.

For the Earth and the Moon, the Earth is so much more massive that their barycenter actually lies inside the Earth, about 1,700 kilometers beneath the surface. However, for a binary system like Pluto and its large moon Charon, the masses are similar enough that the barycenter sits in the empty space between them, causing both bodies to visibly "wobble" around an invisible central point in space.

Theoretical Physics

When Does Newton's Law Stop Working?

Newton's Law of Universal Gravitation was the undisputed rule of the cosmos for over 200 years. However, in 1915, Albert Einstein published his General Theory of Relativity, which proved that Newton's equation is actually an approximation—albeit a highly accurate one for everyday and standard astronomical use.

You must abandon this calculator's formulas and use General Relativity when dealing with extreme mass, density, or velocity. Near black holes, neutron stars, or when calculating the highly precise orbit of Mercury (which sits deep in the Sun's gravity well), the curvature of spacetime creates measurable deviations that Newton's r² formula simply cannot predict. For everything from dropping an apple to navigating a space probe to Saturn, however, Newtonian calculations remain perfectly adequate.

Frequently Asked Questions

Do smaller objects actually attract the Earth?

Yes, absolutely. In physics and classical mechanics, forces always occur in equal and opposite pairs during any interaction. If a planet like the Earth pulls downward on a small particle or an everyday object (like an apple) with a certain magnitude of force, the apple simultaneously pulls upward on the Earth with exactly the same gravitational force. The key difference lies in the resulting acceleration. Because the Earth's mass is incomprehensibly larger than the apple's (which might only be a fraction of a kilogram), the Earth's upward acceleration is practically zero, while the apple accelerates downward noticeably (9.81 m/s²). A gravity calculator will show that whether you calculate the pull on the Earth or the pull on the apple, the attraction value measured in Newtons is perfectly identical.

Why must distance be measured from the center of mass?

Mathematically, a spherical body with uniform density acts as if all its mass is concentrated at a single, infinitely small point in its geometric center. If you are standing on the surface, the distance (often denoted as radius "r" in the equation) is not zero; it is roughly 6,371 kilometers—the span from the Earth's core to your own center of mass. In any precise formula, the separation between two bodies must be measured this way. If you measured from surface to surface, touching objects would mean a distance of zero, causing a division by zero. This would incorrectly predict an infinite force, which is physically impossible. This standard applies whether you are measuring the mutual pull between a person and a planet, or the orbit of a satellite around the moon or sun.

Is Newton's law still used, or did Einstein replace it?

Einstein's General Theory of Relativity provides a more fundamentally accurate description of gravity as the curvature of spacetime, completely superseding the older concept of an invisible pulling force. However, for almost all practical purposes—including predicting eclipses, launching probes, or calculating an object's basic weight—Newton's law of universal gravitation is still widely used. By utilizing the universal gravitational constant ('G') alongside standard mass and distance variables, this classic framework provides extraordinarily accurate approximations. Unless you are dealing with extreme masses or relativistic speeds, using the standard metric unit like the meter in Newtonian equations is more than sufficient.

What happens if the distance is doubled?

Because of the inverse-square law (the r² in the denominator), doubling the distance between two objects reduces the gravitational force to exactly one-quarter (25%) of its original strength. If you triple the distance, the force becomes one-ninth (11.1%). The force weakens dramatically as objects move apart, but mathematically, it never truly reaches zero, extending infinitely across the universe.

Further Reading

Credible Sources & References

For deeper dives into the physics of gravity and universal attraction, explore these trusted educational resources:

Other useful calculators

Disclaimer

This calculator provides theoretical values based on classical Newtonian mechanics. It assumes the objects are point masses or perfectly uniform spheres. For highly irregular objects or extreme proximity, these calculations represent an approximation.

Furthermore, this tool relies on Newtonian gravity. In environments with extreme mass (like near black holes) or at relativistic speeds, Einstein's General Relativity must be applied for accurate results. This calculator is strictly for educational and standard engineering/astrophysical approximations.

Last updated

Based on standard Newtonian physics (G = 6.6743 × 10⁻¹¹).