Potential Energy Formula Calculator
Solve gravitational potential energy (PE equals m g h) or spring potential energy (PE equals one half k x squared) for any missing value, with unit conversions included.
For gravitational energy, height is measured from your chosen zero level. Changing the zero level changes the stored value, but not the change in energy between two heights.
What Potential Energy Means
Potential energy is stored energy, held in a system because of where something is or how something is stretched. A book on a high shelf, a drawn bow, and a compressed spring all store energy that can be released as motion. The amount stored depends on the system and on a reference point you choose, and the calculator on this page handles the two most common cases: gravitational potential energy near Earth, and elastic potential energy in a spring.
The key idea is that potential energy is not a property of an object alone. It belongs to a system, such as an object plus Earth, or a mass plus a spring. Changing the system changes the stored energy. Lifting a book higher increases its gravitational potential energy relative to the floor, while compressing a spring further increases its elastic potential energy relative to its relaxed length. In both cases, the stored energy can be converted into kinetic energy, heat, or work when the system is released.
Potential energy also has a reference problem that confuses many students. Only changes in potential energy have direct physical meaning, because you are free to choose where zero sits. A book on a table has one value if the floor is zero and a different value if the table is zero, but the energy released when it falls to the floor is the same either way. The calculator reports values for the height you enter, so it is important to be consistent about the zero level when comparing two situations.
Gravitational Potential Energy: PE Equals m g h
Near the surface of Earth, gravitational potential energy is calculated with a simple formula: PE equals m times g times h, where m is mass in kilograms, g is the acceleration due to gravity in meters per second squared, and h is height in meters above the chosen zero level. The standard value of g on Earth is 9.81 meters per second squared, and the result is in joules. The formula works well for heights that are small compared with Earth radius, which covers nearly every everyday situation.
Each variable in the formula has a clear meaning. Mass measures how much matter is being lifted, and heavier objects store more energy at the same height. Gravity measures how strongly Earth pulls, and the same object stores more energy on a planet with stronger gravity. Height measures how far the object sits above the zero level, and doubling the height doubles the stored energy, as long as mass and gravity stay fixed. That direct proportionality makes the formula easy to check by feel: twice the mass, twice the energy, and twice the height, twice the energy.
- Mass must be in kilograms for the result to come out in joules.
- Height must be in meters, measured from your chosen zero level.
- Gravity is 9.81 on Earth, lower on the Moon, and higher on Jupiter.
- The formula assumes gravity stays constant over the height involved.
- For very large heights, a more general gravitational formula is needed.
The formula can also be rearranged to solve for any missing value. Mass equals PE divided by g times h, gravity equals PE divided by mass times height, and height equals PE divided by mass times gravity. The calculator offers all four options, so a problem that gives energy and asks for height is just as easy as a problem that gives height and asks for energy. That flexibility matters in homework and in lab work, where the unknown is not always the energy itself.
Spring Potential Energy: PE Equals One Half k x Squared
Elastic potential energy in an ideal spring follows a different formula: PE equals one half times k times x squared, where k is the spring constant in newtons per meter and x is the stretch or compression in meters from the relaxed length. The spring constant measures stiffness, so a stiffer spring stores more energy at the same stretch. The squared term is the interesting part, because it means doubling the stretch quadruples the stored energy, not doubles it.
The squared dependence has practical consequences. A spring stretched twice as far stores four times the energy and pulls back with twice the force, because force equals k times x while energy grows with x squared. That distinction between force and energy trips up many students, and it is worth stating plainly: force grows linearly with stretch, energy grows quadratically. A spring that feels twice as hard to pull may hold four times the energy.
As with gravity, the spring formula can be rearranged. The spring constant equals twice the energy divided by x squared, and the stretch equals the square root of twice the energy divided by k. The calculator offers both options, along with the direct energy calculation. Note that x must be measured from the relaxed length, not from the ground or from any other landmark. Stretching a spring that is already under tension requires care, because the relevant x is the additional displacement from equilibrium, not the total length.
Worked Examples With Verified Numbers
Start with gravity. A mass of 2 kilograms at a height of 5 meters, with gravity at 9.81 meters per second squared, stores 2 times 9.81 times 5, which equals 98.1 joules. In kilojoules that is 0.0981, and in foot-pounds it is 72.3548. The same numbers solve in reverse: given 98.1 joules, 2 kilograms, and 9.81 gravity, the height comes out as exactly 5 meters, which confirms the rearranged formula works.
Now try a spring. A spring constant of 200 newtons per meter stretched by 0.1 meters stores one half times 200 times 0.01, which equals 1 joule. That small figure makes sense, because a tenth of a meter is a modest stretch, even for a fairly stiff spring. Solving in reverse, given 1 joule and a constant of 200 newtons per meter, the stretch comes out as exactly 0.1 meters, which again confirms the rearranged formula.
Unit conversions add a third example. A mass of 10 pounds at a height of 10 feet converts to about 4.5359 kilograms and 3.048 meters, and with gravity at 9.81, the stored energy is 135.628 joules. The calculator handles pounds and feet directly, so you do not need to convert by hand, but the conversion factors are worth knowing: one pound equals 0.453592 kilograms, and one foot equals 0.3048 meters. Mixing units without converting is the most common source of wrong answers in energy problems.
Energy Conservation and Why It Matters
Potential energy earns its importance from conservation of energy. In a closed system without friction or air resistance, the total of kinetic and potential energy stays constant, so energy simply changes form. A falling object loses gravitational potential energy and gains exactly the same amount of kinetic energy. A released spring loses elastic potential energy and gains kinetic energy in the mass it drives. That exchange is what makes potential energy useful for prediction: if you know the stored energy, you know the maximum speed or the maximum height that follows.
Real systems add friction, air resistance, and deformation, which convert some energy into heat and sound. The conservation law still holds, but the useful mechanical energy falls short of the stored amount. A roller coaster never quite reaches its starting height again, and a bouncing ball never quite returns to its drop height, because each cycle loses a little energy to the surroundings. The ideal formulas in the calculator describe the stored energy before those losses, which is the right starting point for most problems.
Reference levels return here as a practical tip. When comparing two heights, only the difference matters, so you can set zero wherever it is convenient. When reporting an absolute value, state the zero level, because the number alone is ambiguous. A textbook that sets zero at the ground and a lab that sets zero at the bench will report different values for the same object, and both are correct within their own convention.
Common Mistakes to Avoid
The most common mistake is confusing mass and weight. Mass is measured in kilograms and stays the same everywhere, while weight is a force measured in newtons and changes with gravity. The formula uses mass, not weight, so entering a weight in newtons as if it were mass will give a wrong answer. If a problem gives weight, divide by gravity to find mass before using the formula.
- Use mass in kilograms, not weight in newtons, in the gravitational formula.
- Measure height from a stated zero level, and keep that level fixed within one problem.
- Measure spring stretch from the relaxed length, not from the ground.
- Convert pounds and feet to kilograms and meters before calculating, or use the calculator unit options.
- Remember that spring energy grows with the square of stretch, not linearly.
Another frequent error is squaring the wrong quantity in the spring formula, or forgetting the one-half factor. The one half comes from averaging the force over the stretch, because the force grows from zero to its final value as the spring extends. Omitting it doubles the answer, which is a large error that is easy to catch by checking the worked example: 200 newtons per meter and 0.1 meters must give 1 joule, not 2.
How to Use the Calculator
Choose the energy type first, then choose what to solve for. Enter the known values in the fields provided, selecting pounds or feet if your measurements use imperial units. Press the calculate button, and the result appears with conversions for energy answers. If you chose to solve for mass, gravity, height, spring constant, or stretch, the calculator uses the energy value you entered, so make sure that value is filled in before calculating.
- Select gravitational or spring energy.
- Select the quantity you want to solve for.
- Enter every known value, checking the units.
- Calculate and compare the result with a rough estimate.
- Re-run with different inputs to explore how each variable affects the answer.
A rough estimate is a powerful check. If doubling the height does not double the gravitational energy, something is wrong. If doubling the stretch does not quadruple the spring energy, something is wrong. Those two checks catch most entry errors before they reach an assignment or a lab report.
Frequently Asked Questions
What is the formula for gravitational potential energy?
Gravitational potential energy near Earth equals mass times gravity times height, written as PE equals m g h. Mass is in kilograms, gravity is in meters per second squared, height is in meters, and the result is in joules.
What is the formula for spring potential energy?
Spring potential energy equals one half times the spring constant times the stretch squared, written as PE equals one half k x squared. The spring constant is in newtons per meter, stretch is in meters from the relaxed length, and the result is in joules.
Why does spring energy use stretch squared?
Because the spring force grows linearly from zero to its final value as the spring extends, and energy is the average force times the distance. Averaging gives the one-half factor, and integrating the growing force gives the squared dependence on stretch.
What value should I use for gravity on Earth?
Use 9.81 meters per second squared for most problems on Earth. The value varies slightly with location and altitude, and textbooks sometimes round it to 10 for rough estimates, but 9.81 is the standard figure for accurate work.
Does the zero level change the energy?
Yes, the absolute value changes with the zero level, but changes in energy between two heights do not. When comparing situations, keep the zero level fixed, and when reporting a value, state the zero level so the number is unambiguous.
Is mass the same as weight in this formula?
No. Mass is measured in kilograms and does not change with location, while weight is a force measured in newtons and equals mass times gravity. The gravitational formula uses mass, so convert weight to mass by dividing by gravity if a problem gives weight.
How do I solve for height if I know the energy?
Rearrange the formula to height equals energy divided by mass times gravity. Enter the energy, mass, and gravity in the calculator, select height as the unknown, and the result appears directly in meters.
How do I solve for the spring constant?
Rearrange the spring formula to spring constant equals twice the energy divided by stretch squared. Enter the energy and stretch in the calculator, select spring constant as the unknown, and the result appears in newtons per meter.
Why is spring energy not linear with stretch?
Because force grows with stretch, so each additional bit of stretch is done against a larger force than the last. That growing resistance makes the total work grow quadratically, which is why doubling the stretch quadruples the stored energy.
Can potential energy be negative?
Yes, when the object sits below the chosen zero level, the formula gives a negative value. Negative potential energy is not a problem, because only differences matter, and a negative value simply means the object is below the reference point.
What units does the calculator return?
Energy answers are given in joules, with kilojoules and foot-pounds shown for convenience. Mass answers are in kilograms, height and stretch answers are in meters, gravity answers are in meters per second squared, and spring constant answers are in newtons per meter.
Does the gravitational formula work on the Moon?
Yes, with the Moon value of gravity, about 1.62 meters per second squared, instead of 9.81. The same object at the same height stores much less energy on the Moon, which is why astronauts could jump higher with less effort.
What happens to potential energy when an object falls?
It converts into kinetic energy, ignoring air resistance and friction. A falling object loses gravitational potential energy as its height drops and gains the same amount of kinetic energy, so its speed grows as it falls.
Why do I need the relaxed length for a spring?
Because spring energy depends on displacement from the relaxed length, not on total length or height above the ground. Measuring from the wrong reference gives a wrong stretch and therefore a wrong energy, often by a large factor.
How can I check my answer quickly?
Use proportionality checks. Doubling mass or height should double gravitational energy, doubling stretch should quadruple spring energy, and the worked examples of 98.1 joules and 1 joule are useful anchors for verifying a calculation.