Work Done by Gravity Calculator | Newton’s Law of Gravitation


Work Done by Gravity Calculator (Newton’s Law)

An expert tool to calculate work using Newton’s universal law of gravitation.



The larger mass, e.g., a planet. Value shown is for Earth. (Unit: kilograms)


The smaller mass being moved, e.g., a satellite. (Unit: kilograms)


The initial distance from the center of the primary body. (Unit: meters)


The final distance from the center of the primary body. (Unit: meters)


Universal constant. (Unit: m³ kg⁻¹ s⁻²)

What is Work Done by Gravity?

In physics, “work” is the energy transferred to or from an object by a force acting on it. When we talk about how to calculate work using Newton gravitation, we are referring to the energy required to move an object against a gravitational field, or the energy released when it moves with the field. Unlike the simple `Work = Force x Distance` used near the Earth’s surface, this calculation uses Newton’s Law of Universal Gravitation, which states that the force between two masses is not constant but changes with distance. This makes it ideal for astronomical calculations, such as moving a satellite between orbits or calculating the energy of a meteor approaching a planet.

This calculator is specifically designed for this non-constant force. The work done by gravity is equal to the negative change in gravitational potential energy. A positive work value means gravity helped the motion (the object moved closer), while a negative value means work was done against gravity (the object moved farther away).

The Formula to Calculate Work Using Newton Gravitation

The gravitational force between two masses (M and m) separated by a distance (r) is given by Newton’s Law: F = G * M * m / r². Since this force changes with distance, we calculate the work by integrating this force function from an initial distance (r₁) to a final distance (r₂). This integration yields the formula for the work done (W):

W = G * M * m * (1/r₁ – 1/r₂)

This formula directly connects to the change in gravitational potential energy (U = -G * M * m / r), where W = U₁ – U₂ = -ΔU.

Variables in the Gravitational Work Formula
Variable Meaning Unit (SI) Typical Range
W Work Done Joules (J) Can be positive, negative, or zero.
G Gravitational Constant m³ kg⁻¹ s⁻² 6.67430 × 10⁻¹¹ (constant)
M Mass of the primary (larger) body kilograms (kg) e.g., 5.972 × 10²⁴ kg for Earth
m Mass of the secondary (smaller) body kilograms (kg) From small objects to moons.
r₁ Initial distance between centers of mass meters (m) From planetary radius to astronomical units.
r₂ Final distance between centers of mass meters (m) Can be greater or smaller than r₁.

Practical Examples

Example 1: Moving a Satellite to a Higher Orbit

Imagine NASA needs to move a 1,500 kg satellite from a Low Earth Orbit (LEO) to a Geostationary Orbit (GEO).

  • Inputs:
    • M (Earth’s Mass): 5.972 × 10²⁴ kg
    • m (Satellite’s Mass): 1,500 kg
    • r₁ (LEO radius from center): ~6.771 × 10⁶ m (400 km altitude)
    • r₂ (GEO radius from center): ~4.224 × 10⁷ m (35,786 km altitude)
  • Calculation: Using the formula, the work required (done against gravity) would be a large negative value, approximately -7.9 × 10¹⁰ Joules. The negative sign indicates that energy must be supplied by the satellite’s thrusters to overcome Earth’s gravity and reach the higher orbit.

Example 2: Asteroid Approaching Mars

An asteroid of 10,000 kg is on a trajectory that takes it from a great distance (effectively infinity) to an orbit 1,000 km above the surface of Mars.

  • Inputs:
    • M (Mars’ Mass): 6.417 × 10²³ kg
    • m (Asteroid’s Mass): 10,000 kg
    • r₁: A very large number (approaching infinity, so 1/r₁ ≈ 0)
    • r₂ (Mars’ radius + altitude): ~3.390 × 10⁶ m + 1.0 × 10⁶ m = 4.390 × 10⁶ m
  • Calculation: The work done *by* gravity would be W ≈ G * M * m * (0 – 1/r₂), resulting in a large positive value. This positive work manifests as a massive increase in the asteroid’s kinetic energy (speed) as it “falls” toward Mars.

How to Use This Calculator to Calculate Work Using Newton Gravitation

  1. Enter Primary Body Mass (M): Input the mass of the larger object, like a planet or star, in kilograms. A default value for Earth is provided.
  2. Enter Secondary Body Mass (m): Input the mass of the smaller object you are analyzing, in kilograms.
  3. Enter Initial Distance (r₁): Provide the starting distance between the centers of the two objects, in meters. For an object on a planet’s surface, this would be the planet’s radius.
  4. Enter Final Distance (r₂): Provide the ending distance between the centers, in meters.
  5. Click “Calculate Work”: The tool will instantly compute the work done. The results section will display the primary result (Work in Joules) and several intermediate values like initial and final potential energy. The chart will also update to show the potential energy curve.

Key Factors That Affect Gravitational Work

  • Mass of the Objects: The greater the masses (M and m), the stronger the gravitational force, and thus the larger the magnitude of work done for a given change in distance.
  • Initial and Final Distance: The work is highly dependent on the start and end points. The relationship is inverse (1/r), meaning changes at smaller distances have a much greater impact on work than the same changes at larger distances.
  • Direction of Movement: Moving away from the primary body (r₂ > r₁) results in negative work (work done against gravity). Moving closer (r₂ < r₁) results in positive work (work done by gravity).
  • The Gravitational Constant (G): While a constant, its tiny value (approx. 6.67 × 10⁻¹¹) is why gravitational forces are only significant for very large masses.
  • Path Independence: The work done by gravity only depends on the initial and final radial positions, not the path taken between them. Whether a satellite moves in a straight line or a spiral, the work to get from r₁ to r₂ is the same. Check out our Potential Energy Calculator for more on this concept.
  • Reference Point: Gravitational potential energy is often defined as zero at an infinite distance. This makes the work required to move an object from infinity to a point ‘r’ simply equal to its potential energy at that point.

Frequently Asked Questions (FAQ)

1. What does a negative work value mean?

A negative result for the work done by gravity means that energy was expended *against* the gravitational force. This happens when an object is moved from a lower potential energy state to a higher one (i.e., farther away from the central mass). An external force had to do positive work, and gravity did negative work.

2. Why isn’t the formula W = mgh used here?

The formula W = mgh is an approximation valid only near the surface of a planet where the gravitational acceleration ‘g’ is considered constant. Our calculator handles scenarios where the distance changes significantly, causing the gravitational force to weaken, a detail you must consider when you calculate work using Newton gravitation. Visit our Gravitational Force Calculator to compare forces at different distances.

3. What is gravitational potential energy?

It is the energy an object possesses due to its position in a gravitational field. For universal gravitation, it’s defined as U = -G * M * m / r. It is always negative and increases towards zero as the distance ‘r’ approaches infinity.

4. Can I use this for objects on Earth’s surface?

Yes, but it’s overkill for small height changes. For lifting a 10 kg box by 2 meters, you could set r₁ to Earth’s radius (6.371 × 10⁶ m) and r₂ to (Earth’s radius + 2 m). The result will be extremely close to the simpler mgh calculation (approx 196 J).

5. How does the chart work?

The chart plots the gravitational potential energy (U) on the y-axis against the distance (r) on the x-axis. It shows the U = -G*M*m/r curve. It highlights the initial point (r₁, U₁) and final point (r₂, U₂), giving a visual representation of the energy change.

6. What if the final distance is smaller than the initial distance?

This represents an object moving closer to the central body (e.g., falling from a higher orbit). In this case, 1/r₁ will be smaller than 1/r₂, making the term (1/r₁ – 1/r₂) negative. The work done will be positive, as gravity is “helping” the motion and increasing the object’s kinetic energy.

7. Can I calculate escape velocity with this?

Not directly, but the concept is related. Escape velocity is the speed needed for the final distance (r₂) to be infinity with a final velocity of zero. The work done by gravity to stop the object would equal its initial kinetic energy. Our Escape Velocity Calculator is perfect for this.

8. Does the shape of the objects matter?

This formula is precise for point masses or spherically symmetric bodies (like planets and stars), where ‘r’ is the distance between their centers. For irregular objects close to each other, the calculation is much more complex.

© 2026 Your Website Name. For educational and illustrative purposes only.


Leave a Reply

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