Skip to main content

Energy Calculator: Kinetic, Potential, Spring, Rotational, Elastic

Calculate linear and rotational kinetic energy, gravitational potential (near-surface and two-body), elastic spring energy, and analyze mechanical energy conservation.

Loading calculator...
Last Updated: February 13, 2026

KE = ½mv² for translation. KE_rot = ½Iω² for rotation. PE_grav = mgh near a planet's surface, U = −GMm/r in the full two-body form, U_spring = ½kx² for a Hooke spring. Add them up and total mechanical energy is conserved when no non-conservative forces act. The non-obvious part is that rolling objects carry both KE forms, so a solid cylinder rolling down a ramp arrives slower than a frictionless sliding block from the same height because energy splits between linear and rotational motion. A solid cylinder converts about 67 percent of the available height to translational KE, the rest to rotation. A solid sphere is closer to 71 percent. This calculator tracks both pieces alongside the totals.

Setting Up the Problem: Free Body, Frame, and What's Constant

Energy methods don't require a free-body diagram in the same way force methods do, but you still need to know which forces act so you can classify them. Conservative forces (gravity, ideal springs, electrostatic) have an associated potential energy and conserve mechanical energy. Non-conservative forces (kinetic friction, drag, non-elastic deformation) don't. They show up in the bookkeeping as work terms, not as potential-energy terms.

Pick a reference level for gravitational PE and stick with it. The most common choice is the lowest point the system reaches (so PE bottoms out at zero), but any choice works. Only ΔPE has physical meaning. For a spring, the reference is automatically the unstretched length (x = 0), because U = ½kx² assumes that. For orbital mechanics, the reference is r = ∞, where U → 0.

What's constant: total mechanical energy E = KE + PE if no non-conservative forces act. If they do act, E_final = E_initial − W_friction − W_drag. What changes: the partitioning between KE and PE, and (for rolling) between translational and rotational KE. Mass is constant. The reference level is constant (you don't move it mid-problem). g is constant near the surface (within the 1 percent rule).

Energy TypeFormulaReference Point
Linear KE½mv²v = 0 (rest frame)
Rotational KE½Iω²ω = 0 (not spinning)
Near-surface gravity PEmghh = 0 (your choice)
Two-body gravity PE−GMm/rr = ∞ (U = 0 there)
Spring PE½kx²x = 0 (equilibrium)

Picking the Right Equation Without Memorizing All of Them

One master equation: E_initial = E_final + W_lost, where W_lost is energy dissipated by non-conservative forces. Everything else is filling in which terms are non-zero in your specific problem.

Sliding block from a height h to the ground? E_initial = mgh, E_final = ½mv², no friction, so v = √(2gh). Rolling solid sphere from the same height? E_initial = mgh, E_final = ½mv² + ½Iω² with I = (2/5)mr² and ω = v/r, so mgh = (7/10)mv² and v = √(10gh/7). Same setup, one extra term, different answer.

For springs, swap mgh for ½kx² as the initial PE if you start with a compressed spring. A 200 N/m spring compressed 12 cm stores ½(200)(0.12)² = 1.44 J. Set that equal to whatever final-state KE plus PE plus friction work the problem cares about and solve. The same one-line bookkeeping handles every variation.

The choice between U = mgh and U = −GMm/r depends only on altitude. At 100 km altitude, g drops from 9.81 to 9.51 m/s², about 3 percent. Using mgh with g = 9.81 overestimates PE by about 1.5 percent. At 400 km (ISS orbit), g = 8.69 m/s² (11 percent lower), and the mgh error reaches 5 to 6 percent. For altitudes under 1 km, the error is under 0.05 percent and mgh is fine. The two-body formula handles all altitudes correctly but requires r measured from planet center, not altitude. For Earth: r = 6.371×10⁶ m + altitude.

Spring caveat: U = ½kx² assumes linear Hooke's law behavior. Real springs have nonlinear regions at large compression and may plastically deform past their elastic limit.

Sign Conventions and Direction Choices That Trip Most Solvers

Energy is a scalar. There's no direction to get wrong, but there are several signs that students still flip. The first is the sign of work done by friction or drag in the energy balance. Friction always removes mechanical energy from the body, so it appears as a subtracted term: E_final = E_initial − W_friction. If you write it as E_initial + W_friction = E_final and treat W_friction as positive, your final energy is too high.

The second sign trap is the spring deformation x. U_spring = ½kx² is positive whether x is positive (stretched) or negative (compressed) because of the square. But the direction of the spring force on a body, F = −kx, has a sign that matters when you write Newton's second law. If you're using energy methods only, the squared form removes this issue.

The third sign trap is gravitational PE in the two-body formula. U = −GMm/r is negative for any finite r. This surprises students used to mgh, which is positive when h is positive. The minus sign reflects the convention U(∞) = 0, with U decreasing (becoming more negative) as the masses approach. Total energy E = KE + U can be negative for a bound orbit (negative U overwhelms positive KE). Positive E means the body has enough energy to escape.

One more: throwing a ball up at speed v versus down at speed v from the same height gives identical impact speeds. This surprises students who assume "gravity works against an upward throw, so it lands slower." Gravity does negative work going up, positive work coming down, and the round trip cancels exactly. Energy is path-independent for conservative forces, which is the punchline.

When the Setup Has Multiple Phases (Acceleration, Constant, Stopping)

Energy bookkeeping handles multi-phase motion better than force bookkeeping does, because you can write a single conservation equation across the whole trajectory if you account for every PE form, every KE form, and every friction-work term.

Example: a block starts at rest, slides down a 30° ramp 5 m long with μ_k = 0.2, then crosses a horizontal floor with μ_k = 0.1, and finally compresses a spring with k = 500 N/m. How far does it compress the spring? One equation:

mgh − μ_k1 · mg cos θ · d_ramp − μ_k2 · mg · d_floor = ½kx²

where h = 5 sin 30° = 2.5 m is the height drop, d_ramp = 5 m, d_floor is whatever distance the block crosses the floor, and x is the compression we want. Plug in and solve for x. No phase boundaries to track, no intermediate velocities to chain together.

The trade-off: energy hides the time evolution. If the question asks "how long does the block take to reach the spring?" energy alone can't answer it. You'd need force methods on each phase to compute accelerations and times. Energy is most efficient when start and end states are what you care about.

One trap: don't double-count friction across phase boundaries. The friction work on the ramp is μ_k1 · N · d_ramp where N = mg cos θ is the ramp normal force. The friction work on the floor uses N = mg (different value). Using mg for both, or mg cos θ for both, gives wrong answers. Always recompute N for each surface.

Energy vs. Force Approaches: When Each One Wins

For rolling bodies on a ramp, energy is dramatically faster. A solid sphere rolls down a 5 m drop. Force approach: write Newton's second law along the slope, write the torque equation about the center of mass, apply the rolling constraint v = rω, solve the coupled equations for a, then use SUVAT to get v. Five steps. Energy approach: mgh = ½mv² + ½Iω² with I = (2/5)mr² and ω = v/r, gives mgh = (7/10)mv², so v = √(10gh/7). One step.

For springs and Hooke's law systems, energy wins outright. ½kx² is path-independent and works for any compression or extension. The force approach (F = −kx) leads to a differential equation (simple harmonic motion) which is harder to solve for a single energy state.

For pendulums released from angle θ, energy gets you the bottom speed in one line: mgL(1 − cos θ) = ½mv², so v = √(2gL(1 − cos θ)). For a 0.5 kg bob on a 2 m string released at 60°, h = 2(1 − cos 60°) = 1.0 m, and v_bottom = √(2 · 9.81 · 1.0) = 4.43 m/s. The force approach involves integrating the tangential equation over the arc, which is uglier.

Force methods win for problems involving specific forces (tension at the bottom of a pendulum swing, normal force on a roller-coaster cart at a specific point), instantaneous accelerations, and questions about static equilibrium. Energy is path-independent and can't isolate a single point on the path. For "where is the body at time t?" you need force methods plus kinematics.

Both approaches give the same answer when both can be applied, which they must by conservation laws. Picking between them is judgement: if the question is about start and end, go energy. If it's about somewhere in between, go force.

Worked Example: Compressed Spring Launches a Block, with Friction

A 2.0 kg block sits on a horizontal surface against a spring with k = 200 N/m. The spring is compressed 12 cm and released. Coefficient of kinetic friction between block and surface is μ_k = 0.15. After the spring releases, the block slides along the surface, hits a frictionless ramp, and climbs to a height h before stopping. Find the maximum velocity of the block on the flat section, and the height it climbs on the ramp. Assume the spring decompresses over a distance equal to its 12 cm compression before the block leaves the spring contact.

Step 1: spring energy at full compression

U_spring = ½kx² = ½ · 200 · (0.12)² = 1.44 J

Step 2: friction work during the 12 cm spring decompression

f = μ_k · m · g = 0.15 · 2.0 · 9.81 = 2.943 N

W_friction = f · d = 2.943 · 0.12 = 0.353 J

Step 3: max velocity, where the block leaves the spring

½mv² = U_spring − W_friction = 1.44 − 0.353 = 1.087 J

v² = 2 · 1.087 / 2.0 = 1.087

v_max = √1.087 = 1.043 m/s

That's the peak velocity right at the moment the block parts ways with the spring. From there, friction continues acting on the flat section before the ramp. If the flat section is, say, 30 cm long beyond where the block leaves the spring, additional friction work is 2.943 · 0.30 = 0.883 J. But wait, that's more than the 1.087 J of KE the block has. Let's check whether the block even reaches the ramp.

Step 4: how far does the block travel on the flat surface?

All KE converts to friction heat: ½mv² = f · d_flat

1.087 = 2.943 · d_flat

d_flat = 0.369 m, about 37 cm before stopping

With our 30 cm flat section, the block barely reaches the ramp. Energy remaining when it hits the ramp = 1.087 − 2.943 · 0.30 = 1.087 − 0.883 = 0.204 J.

Step 5: height climbed on frictionless ramp

mgh = 0.204 J

h = 0.204 / (2.0 · 9.81) = 0.0104 m

h ≈ 1.04 cm

About a centimeter up the ramp, then the block stops and (since the ramp is frictionless) slides back. It returns to the flat section with v = √(2gh) = 0.452 m/s, then friction eats the rest. The whole sequence is governed by one equation: spring PE = sum of all friction work + final mgh. Track the energy budget and the rest follows.

References & Further Reading

  • Halliday, D., Resnick, R., & Walker, J. (2018). Fundamentals of Physics (11th ed.). Wiley. Chapters 7 and 8 cover work, kinetic energy, potential energy, and conservation principles with extensive worked examples.
  • Serway, R. A., & Jewett, J. W. (2018). Physics for Scientists and Engineers (10th ed.). Cengage Learning. Chapter 7 (Energy of a System) and Chapter 8 (Conservation of Energy) provide rigorous derivations of all formulas used here.
  • Feynman Lectures on Physics, Vol. I, Chapter 4. Feynman's discussion of energy conservation as a bookkeeping principle, with the famous "28 blocks" analogy.
  • NIST Reference on Constants  physics.nist.gov Standard values for G = 6.67430×10⁻¹¹ N·m²/kg², g = 9.80665 m/s² (standard), and unit conversion factors.
  • OpenStax College Physics 2e  openstax.org Free peer-reviewed textbook, Chapters 7 and 8 cover energy concepts with an algebra-based approach.
  • HyperPhysics  hyperphysics.phy-astr.gsu.edu Georgia State University's concept map physics reference for energy topics.

Formulas implemented following standard physics conventions. For professional engineering applications that require safety factors or code compliance, consult relevant industry standards (ASME, AISC, etc.).

Troubleshooting KE, PE, and Conservation Problems

Real questions from students stuck on rolling objects, reference levels, and energy balance sheets.

What is the difference between kinetic and potential energy?

Kinetic energy is the energy a system has because it's moving. Potential energy is energy stored in the configuration of a system, available to be released. Both are scalars measured in joules. For a point mass moving at speed v, kinetic energy is KE = ½mv². For a rotating rigid body with moment of inertia I and angular velocity ω, rotational kinetic energy is KE_rot = ½Iω². A rolling ball has both: total KE = ½mv² + ½Iω². Potential energy depends on the type of force storing it. Near Earth's surface, gravitational PE is U_g = mgh. A spring with stiffness k stretched by displacement x stores elastic PE = ½kx². The electrical PE between charges q₁ and q₂ at separation r is kq₁q₂/r. The two convert into each other. Drop a 1 kg ball from 10 m: at the top, PE = 98.1 J and KE = 0. Just before impact (ignoring drag), PE = 0 and KE = 98.1 J, giving v = √(2gh) = 14 m/s. Total mechanical energy stays constant when only conservative forces act. Friction and drag bleed energy out as heat, and the balance shifts.

My physics problem says gravitational PE is −3.8×10⁹ J but that's a negative number—how can energy be negative?

The negative sign indicates a bound system, not negative energy in a physical sense. Two-body gravitational PE uses U = −GMm/r with zero defined at infinite separation. As objects get closer, U becomes more negative (energy is released). The more negative the PE, the more tightly bound the system. To escape to infinity, you'd need to add +3.8×10⁹ J of kinetic energy. It's a bookkeeping convention, not a statement about reality—only ΔU matters physically.

I calculated the speed of a rolling ball as √(2gh) but my measured value is 15% lower—what am I missing?

A rolling ball has both translational KE (½mv²) and rotational KE (½Iω²). For a solid sphere, the total is (7/10)mv², not ½mv². Solving mgh = (7/10)mv² gives v = √(10gh/7), which is about 84.5% of √(2gh). That explains your 15% discrepancy. Hollow spheres are even slower—only 77.5% of sliding speed because more mass is at the rim (higher I).

I threw a ball upward at 5 m/s and my friend threw one downward at 5 m/s from the same height—whose hits the ground faster?

They hit at the same speed (assuming negligible air resistance). This surprises everyone. Both balls have identical initial mechanical energy: E = mgh + ½mv₀². The upward-thrown ball rises, stops, falls back past the launch point at v₀ downward, then continues to ground. From that point, both scenarios are identical. Direction of initial velocity doesn't affect final speed—only magnitude and height matter. Energy conservation doesn't care which way you threw.

My professor said potential energy depends on reference point choice—so how can it predict anything real?

Only changes in PE (ΔU) have physical meaning, and those are independent of reference choice. Set ground as h=0 and a shelf at h=5m has PE = 490 J. Set the shelf as h=0 and ground is h=−5m with PE = −490 J. But in both cases, ΔU = −490 J when the object falls, converting to +490 J of KE. The predicted impact speed is identical. Choose whichever reference makes your math easier—typically the lowest point in the problem (makes final PE = 0).

I need to convert 2000 Calories from my diet into joules—is it 2000 J or 2,000,000 J?

It's 8,368,000 J (about 8.4 MJ). Food "Calories" (capital C) are actually kilocalories (kcal), where 1 Cal = 1 kcal = 4184 J. So 2000 Cal × 4184 J/Cal = 8.37 MJ. The lowercase calorie (1 cal = 4.184 J) is a chemistry unit rarely used for food. This confusion has caused countless errors—always check whether sources mean Cal or cal. A 2000-joule diet would be starvation (about 0.5 kcal).

I used mgh for a satellite at 400 km altitude but my answer differs from the textbook by 6%—why?

The mgh approximation assumes constant g, which fails at high altitude. At 400 km (ISS orbit), g = 8.69 m/s²—about 11% lower than surface g = 9.81 m/s². Using mgh with surface g overestimates PE. For orbital mechanics, you must use the two-body formula U = −GMm/r, where r is distance from Earth's center (6371 km + altitude). Rule of thumb: if altitude exceeds 1% of Earth's radius (~64 km), use the full formula.

My friend calculated more PE than me for the same problem—turns out she used basement as reference, I used floor level. Who's right?

Both of you. PE absolute values depend on reference choice, but you should get identical ΔU and therefore identical predictions. If you're comparing PE values between two people's solutions, you can't—that's meaningless. If your final answers (speeds, heights, times) differ, someone made a calculation error unrelated to reference choice. Always compare physics predictions (kinetic energy, velocity, time), never raw PE numbers from different reference frames.

Why doesn't my yo-yo reach the same height on the way back up? I expected perfect energy conservation.

Real yo-yos have friction in the axle bearing, string rubbing against itself, and air drag—all non-conservative forces. These convert mechanical energy to heat. Additionally, the string may not release cleanly, losing energy to internal string tension. A high-quality ball-bearing yo-yo on a thin string in vacuum would return nearly to release height. Measure the height loss percentage—it equals the fraction of energy dissipated per cycle. Professional yo-yos lose about 2-5% per throw.

I'm confused about moment of inertia for a rolling cylinder vs solid sphere—they have different formulas but same mass and radius. Why different speeds down a ramp?

Because mass distribution matters, not just total mass. A solid sphere has I = (2/5)mr² while a solid cylinder has I = (1/2)mr². More moment of inertia means more energy goes into rotation, leaving less for translation. Using mgh = ½mv² + ½Iω² with v = rω: sphere gets v = √(10gh/7) ≈ 0.845√(2gh), cylinder gets v = √(4gh/3) ≈ 0.816√(2gh). The sphere is faster because its mass is concentrated closer to the axis (lower I).

How do I calculate energy lost to friction on a ski slope when I don't know the friction coefficient?

Measure initial and final states, then calculate the difference. If you start at height h with velocity 0 and reach the bottom at velocity v, the energy "lost" is W_friction = mgh − ½mv². From this, work backward: W_friction = μmg·cos(θ)·d gives μ = W_friction/(mg·cos(θ)·d), where d is slope distance and θ is angle. Example: 60 kg person, 50 m vertical drop, final speed 25 m/s → mgh = 29,430 J, ½mv² = 18,750 J, so ~36% of energy went to friction and drag.