Loading…

Newton's Law of Universal Gravitation

Physics Classical Mechanics • Universal Gravitation

View all topics

Calculate gravitational attraction with Newton’s universal law: \[ F = G\frac{m_1m_2}{r^2}, \qquad \vec F_{12}=G\frac{m_1m_2}{|\vec r|^3}\vec r. \] Solve for force, either mass, distance, or the net vector force from multiple bodies.

Two-body inputs

Multiple-body vector inputs

Use one source body per line: Name, mass_kg, x_m, y_m. The test mass is placed at \((x_0,y_0)\). The calculator returns the net gravitational force on the test mass.

Output and visualization

\(r\) is the center-to-center separation. For a person standing on Earth, use Earth’s radius plus height above the surface. The force is always attractive and follows the inverse-square law.
Ready
Enter the masses and distance, then click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is Newton’s law of universal gravitation?

Newton’s law states that two masses attract each other with force F = G m1 m2 / r^2, where r is the center-to-center distance.

What is the value of the gravitational constant G?

The standard value is G = 6.67430e-11 N m^2/kg^2.

What does r mean in the formula?

The distance r is the center-to-center separation between the two masses, not the distance between their surfaces.

Why does gravity follow an inverse-square law?

Because the force spreads out geometrically with distance, so the strength decreases in proportion to 1/r^2.

How do you solve for distance from gravitational force?

Rearrange F = G m1 m2 / r^2 to get r = sqrt(G m1 m2 / F).

How do you solve for mass from gravitational force?

Rearrange the formula. For example, m1 = F r^2 / (G m2).

Is gravitational force attractive or repulsive?

In Newtonian gravity, gravitational force between positive masses is always attractive.

How is weight related to universal gravitation?

Weight near Earth is the gravitational force between Earth and the object: W = G M_Earth m / R_Earth^2, which is also W = mg.

Can this calculator handle multiple bodies?

Yes. Multiple-body mode computes each force vector and adds components to find the net gravitational force.

Why is gravity between everyday objects so small?

The gravitational constant G is very small, so noticeable gravitational forces usually require at least one very large mass such as a planet, moon, or star.