Easy Gravity Calculator: Find the Force Between Two Objects


Gravity Calculator: The formula used to calculate gravity

An interactive tool to compute the gravitational attraction between any two objects based on Newton’s universal law.


Enter the mass of the first object (e.g., a planet).

Please enter a valid positive number.


Enter the mass of the second object (e.g., a moon or satellite).

Please enter a valid positive number.


Enter the distance between the centers of the two objects.

Please enter a valid positive number.

Gravitational Force (F)
— N

Mass 1 in kg:
Mass 2 in kg:
Distance in meters:
Gravitational Constant (G):
6.67430 × 10⁻¹¹ N·m²/kg²

This calculation is based on the formula F = G × (m₁ × m₂) / r².


Dynamic Gravity Chart

Chart showing how gravitational force decreases as distance increases (inverse square law).

What is the formula used to calculate gravity?

The formula used to calculate gravity refers to Sir Isaac Newton’s Law of Universal Gravitation. This fundamental principle, part of classical mechanics, states that every particle of matter in the universe attracts every other particle with a force that is directly proportional to the product of their masses and inversely proportional to the square of the distance between their centers. This means the more massive the objects, the stronger the pull; and the farther apart they are, the weaker the pull becomes.

This formula is essential for physicists, astronomers, and engineers. It’s used to calculate the orbits of planets, moons, and satellites, understand the structure of galaxies, and even design spacecraft trajectories. A common misunderstanding is confusing gravity with weight; weight is the force of gravity acting on an object’s mass (F = mg), while the universal law calculates the attractive force between any two masses.

The Universal Gravitation Formula and Explanation

The mathematical representation of Newton’s law is the core formula used to calculate gravity between two objects:

F = G × (m₁ × m₂) / r²

This equation provides the magnitude of the gravitational force (F). The force is always attractive, pulling the two objects toward each other.

Variables Table

Variable Meaning Standard Unit (SI) Typical Range
F The magnitude of the gravitational force Newtons (N) From near-zero to immense values
G The Universal Gravitational Constant N·m²/kg² ~6.674 × 10⁻¹¹ (a fixed value)
m₁ Mass of the first object kilograms (kg) > 0
m₂ Mass of the second object kilograms (kg) > 0
r The distance between the centers of the two masses meters (m) > 0
The variables involved in the universal gravitation formula. Units must be consistent for accurate results.

Practical Examples

Understanding the formula used to calculate gravity is easier with real-world examples that show its scale.

Example 1: The Force Between Earth and Sun

Let’s calculate the immense force that keeps our planet in orbit.

  • Inputs:
    • Mass of Sun (m₁): 1.989 × 10³⁰ kg
    • Mass of Earth (m₂): 5.972 × 10²⁴ kg
    • Distance (r): 149.6 million km (1.496 × 10¹¹ m)
  • Result:
    • The gravitational force is approximately 3.54 × 10²² Newtons. This colossal, constant pull is what defines Earth’s year and seasons.

Example 2: The Force Between Two People

This shows why you don’t feel a gravitational pull from people standing next to you.

  • Inputs:
    • Mass of Person 1 (m₁): 80 kg
    • Mass of Person 2 (m₂): 60 kg
    • Distance (r): 1 meter
  • Result:
    • The gravitational force is approximately 3.2 × 10⁻⁷ Newtons. This force is incredibly tiny, many billions of times weaker than the force of Earth’s gravity on a single person, which is why it’s completely unnoticeable.

Want to understand friction better? Check out our guide on static vs kinetic friction.

How to Use This Gravity Calculator

This calculator makes applying the formula used to calculate gravity straightforward:

  1. Enter Mass of Object 1: Input the mass of the first body. You can use scientific notation (e.g., `5.972e24` for 5.972 × 10²⁴).
  2. Select Mass Unit: Choose the appropriate unit (kilograms, grams, pounds, or even Earth masses) from the dropdown. The calculator will convert it to kilograms for the calculation.
  3. Enter Mass of Object 2: Input the mass for the second body and select its unit.
  4. Enter Distance: Provide the distance between the objects’ centers of mass. Be sure to use the distance between centers, not surfaces. For a person on Earth, the distance ‘r’ is Earth’s radius.
  5. Select Distance Unit: Choose the correct unit for your distance measurement.
  6. Interpret the Results: The calculator instantly shows the final gravitational force in Newtons (N). It also displays the intermediate values (masses in kg and distance in meters) used in the formula, helping you verify the inputs for the formula used to calculate gravity.

Key Factors That Affect Gravitational Force

Several key factors directly influence the outcome of the gravity calculation. Understanding these is crucial for correctly applying the formula used to calculate gravity.

  1. Mass of the Objects (m₁ and m₂): The force is directly proportional to the product of the two masses. If you double the mass of one object, the force doubles. If you double both, the force quadruples.
  2. Distance Between Centers (r): This is the most impactful factor. The force is inversely proportional to the *square* of the distance. Doubling the distance reduces the force to one-quarter (1/2²) of its original value. Tripling it reduces the force to one-ninth (1/3²). This is known as the inverse-square law.
  3. The Gravitational Constant (G): This is a universal scaling factor that connects the units of mass and distance to the unit of force. Its tiny value (approx. 6.674 × 10⁻¹¹ N·m²/kg²) is why gravity is only significant when at least one object is astronomically massive.
  4. Object Density and Shape: Newton’s formula assumes objects are spherically symmetrical, allowing us to treat their mass as if it’s all at the center. For irregularly shaped or non-uniform objects (like asteroids or even mountains on Earth), the calculation is more complex and requires calculus.
  5. Local Gravity Variations: On Earth, the local gravitational acceleration (‘g’) can vary slightly due to altitude, latitude (the planet’s rotation creates a slight bulge at the equator), and local geology (denser rock formations). Our calculator focuses on the universal formula, not these localized effects. Explore this further with our acceleration calculator.
  6. Relativistic Effects: For extremely massive objects (like black holes) or objects moving near the speed of light, Newton’s law becomes less accurate. Einstein’s theory of General Relativity provides a more complete description, viewing gravity as a curvature of spacetime caused by mass and energy. However, for nearly all practical purposes, Newton’s formula used to calculate gravity is an excellent and highly accurate approximation.

Frequently Asked Questions (FAQ)

1. What is the difference between gravity and weight?

Gravity is the universal attractive force between any two masses. Weight is the specific force exerted by a large body (like a planet) on a smaller object’s mass (Weight = mass × gravitational acceleration, g). Your mass is constant, but your weight would be different on the Moon because the Moon’s gravity is weaker.

2. Why is the gravitational force between everyday objects so weak?

Because the Universal Gravitational Constant (G) is an extremely small number. For the force to be significant, at least one of the masses involved must be enormous, like a planet or star.

3. Does gravity get weaker with altitude?

Yes. As you move away from the Earth’s center, the distance ‘r’ in the formula increases, so the force decreases. For astronauts in orbit, gravity is still about 90% as strong as on the surface; they feel “weightless” because they are in a constant state of free-fall around the Earth. You can test this effect with our free fall calculator.

4. What units must I use in the gravity formula?

For the standard formula to work with the constant G = 6.674×10⁻¹¹, masses must be in kilograms (kg), distance in meters (m), and the resulting force will be in Newtons (N). Our calculator handles unit conversions for you.

5. Can I use this calculator for objects in space?

Absolutely. The formula used to calculate gravity is “universal,” meaning it applies to planets, stars, galaxies, and satellites just as it does to an apple falling from a tree.

6. How accurate is this formula?

It is extremely accurate for most applications in classical mechanics. It only breaks down in very extreme conditions of mass and speed, where Einstein’s theory of General Relativity is needed for a more precise description.

7. What happens if the distance ‘r’ is zero?

Mathematically, dividing by zero is undefined. In physics, two objects with mass cannot occupy the same space, so their centers of mass can never have a distance of zero. The formula assumes two distinct points.

8. Can the gravitational force be repulsive?

No. According to Newton’s law and all observations to date, gravity is always an attractive force. This is a key difference from electromagnetism, which can be attractive or repulsive. To learn about other forces, you might be interested in our centripetal force calculator.

Related Tools and Internal Resources

If you found this tool for the formula used to calculate gravity useful, you might also appreciate these other physics and math calculators:

© 2026 Your Website. All rights reserved. For educational and informational purposes only.





Leave a Reply

Your email address will not be published. Required fields are marked *