Show the math
ME = KE + PE = ½ m v² + m g h, with energy in joules, m in kg, v in m/s, g in m/s² and h in meters.Your inputs are already in kg, m, m/s, m/s² and J.Earth (g = 9.80665 m/s²).KE = ½ × 10 kg × (3 m/s)² = 45 JPE = 10 kg × 9.80665 m/s² × 5 m = 490.332 JME = 45 J + 490.332 J = 535.332 JShort answer: Total mechanical energy is kinetic plus potential energy: E = KE + PE = ½mv² + mgh, in joules. With no friction E stays the same from point to point, so height lost becomes speed gained. For 10 kg moving at 3 m/s and 5 m above the zero level, total mechanical energy is 535.3 J (KE 45 J + PE 490.3 J).
Three modes: energy at a point (with an optional spring), conservation between two points (with optional friction), and projectile.
This article contains Amazon affiliate links. 33science earns a commission on qualifying purchases. See our affiliate disclosure.
How to use the mechanical energy calculator
Mechanical energy formula: E = KE + PE
The mechanical energy formula is E = KE + PE, where KE = ½mv² is the energy of motion and PE = mgh is gravitational potential energy (OpenStax University Physics). Mass m is in kilograms, speed v in m/s, height h in meters above the zero level and g in m/s². A stretched or compressed spring adds ½kx², with spring constant k and stretch x; see examples of elastic potential energy. Each term has a calculator: kinetic energy, potential energy and elastic potential energy, three of the forms of energy.
Worked example: 10 kg at 3 m/s, 5 m up. KE = ½ × 10 kg × (3 m/s)² = 45 J. PE = 10 kg × 9.80665 m/s² × 5 m = 490.3 J. E = 535.3 J, split 8.41% kinetic and 91.6% potential. The calculator uses the standard g of 9.80665 m/s² (NIST); a textbook g of 9.8 gives 535 J.
What mechanical energy results look like
Cases from the Examples menu, on Earth with no friction. Drops show the speed at the bottom. More everyday cases: our examples of kinetic energy and examples of potential energy.
| Case | Inputs | Result |
|---|---|---|
| Standard point | 10 kg, 3 m/s, 5 m | E = 535.3 J |
| Dropped ball | 0.5 kg from 2 m | 6.263 m/s at the floor |
| Roller coaster hill | 500 kg, 20 m drop | 19.81 m/s (71.3 km/h) |
| Same hill on the Moon | 500 kg, 20 m drop | 8.05 m/s |
| Pendulum | 1 m long, released at 30 degrees | 1.621 m/s at the bottom |
| Skateboard halfpipe | 60 kg at 6 m/s at the bottom | rises 1.835 m |
| Spring launcher | 0.5 kg, 2 m/s, 1.5 m up, 50 N/m stretched 0.15 m | E = 8.917 J |
Conservation of energy: find the speed or height at a second point
With only gravity and springs doing work, energy at point 1 equals energy at point 2: KE1 + PE1 = KE2 + PE2 (OpenStax). Solving for speed gives v2 = √(v1² + 2g(h1 − h2)). Mass cancels, so a heavy cart and a light ball dropped through the same height arrive at the same speed.
Worked example: a 500 kg coaster car starts from rest at the top of a 20 m hill. All of its 98.07 kJ is potential energy. At the bottom all of it is kinetic, so v2 = 19.81 m/s, which is 71.3 km/h. On the Moon the same hill gives 8.05 m/s.

To find a height instead, rearrange to h2 = h1 + (v1² − v2²) / (2g). A 2 kg object launched straight up at 10 m/s from the zero level stops at 5.099 m. A target above that, such as 10 m, cannot be reached: the calculator reports the turnaround height of 5.099 m instead. It also reports the speed at the lowest point of the track.
Check it with a pendulum
Release a washer on a 1 m string at 30 degrees. Conservation predicts 1.621 m/s at the bottom, for any mass. Film the swing next to a ruler in slow motion to measure it; expect a slightly lower speed because of friction and air drag. Weigh the bob on a digital kitchen scale if you want the energy in joules.

To time the swing itself instead of its speed, the pendulum calculator gives the period and frequency for any length and release angle.
Is mechanical energy always conserved?
No. Mechanical energy is conserved only when gravity and springs do the work. Friction, air drag and impacts turn some of it into thermal energy and sound (OpenStax College Physics). The calculator takes the loss as work Wf in joules, or as friction force times path length, and solves KE1 + PE1 − Wf = KE2 + PE2.
Worked example: a 40 kg sled starts from rest 6 m above the bottom of a slope, with 2,354 J of potential energy. Friction of 25 N over 30 m of slope takes Wf = 25 × 30 = 750 J, which is 31.9% of the energy. 1,604 J remains as kinetic energy, so the sled moves at 8.954 m/s instead of 10.85 m/s. If the loss exceeds the energy available, the calculator reports that friction stops the object short.

Friction and drag turn mechanical energy into heat. To express that loss as a percentage of the input, use the energy efficiency calculator.
Mechanical energy vs work
Mechanical energy is what a system has at one moment. Work is energy transferred by a force over a distance. Both are measured in joules. Work by gravity or a spring moves energy between KE and PE and leaves E unchanged. Work by friction removes energy, and a push you apply adds it.
Projectile motion with conservation of energy
Without air resistance, E is constant along the flight, so speed depends only on height: v = √(v0² + 2g(h0 − h)). The peak uses only the vertical part of the launch speed: apex = h0 + (v0 sin θ)² / (2g) (OpenStax).
Worked example: a 0.15 kg ball thrown at 25 m/s and 40 degrees from 1.5 m up has E = 49.08 J. It peaks at 14.67 m, 13.17 m above the launch point, and is still moving sideways at 19.15 m/s there. It lands at 25.58 m/s. Impact speed does not depend on the angle: 20 degrees and 60 degrees both give 25.58 m/s, with peaks of 5.228 m and 25.4 m.
Common mistakes
Sources
- OpenStax. Conservation of Energy
- OpenStax. Potential Energy of a System
- OpenStax. Projectile Motion
- OpenStax. Nonconservative Forces
- HyperPhysics. Gravitational potential energy
- NIST. Standard acceleration of gravity
- NIST. SI conversion factors, Appendix B.8
A wound torsion spring stores energy that turns into motion when it unwinds. The torsion spring calculator gives the stored energy along with the torque and stress at the wound angle.
Frequently asked questions
Mechanical energy is the sum of an object’s kinetic energy and potential energy. It measures the energy tied to motion and position, in joules.
Add kinetic energy (1/2 m v^2) and gravitational potential energy (m g h). For 10 kg at 3 m/s and 5 m up, the total is 535.3 J.
When only gravity and springs do work, KE1 + PE1 = KE2 + PE2. A loss in height gives an equal gain in kinetic energy.
No. Friction, air resistance and collisions that deform objects turn mechanical energy into thermal energy and sound. The sled example loses 31.9% of its starting energy to friction.
Use v2 = sqrt(v1^2 + 2 g (h1 – h2)). Mass cancels, so any mass dropped from rest through 20 m reaches 19.81 m/s on Earth.
No. Mechanical energy is kinetic and potential energy, including a spring’s elastic energy. Energy lost to friction becomes thermal energy and is tracked separately as the loss W_f.
Yes, when air resistance is ignored. Kinetic energy turns into potential energy on the way up and back on the way down, so a ball launched at 25 m/s from 1.5 m lands at 25.58 m/s at any angle.