Compute total mechanical energy, kinetic energy (½mv²), gravitational potential energy (mgh), and elastic potential energy (½kΔx²). Visualize energy components with an interactive bar chart.
Mechanical energy is the sum of kinetic energy and potential energy in a physical system. It represents the energy associated with motion and position. According to the law of conservation of mechanical energy, in an isolated system where only conservative forces (gravity, spring force) do work, the total mechanical energy remains constant. This principle is fundamental in physics, engineering, and classical mechanics.
Etotal = K + Ug + Ue
K = ½·m·v² | Ug = m·g·h | Ue = ½·k·(Δx)²
The concept of mechanical energy emerged from the works of Galileo, Newton, and Leibniz. The work-energy theorem states that the net work done on an object equals its change in kinetic energy. For conservative forces (gravity, ideal springs), potential energy functions can be defined such that the total mechanical energy is conserved. The kinetic energy quantifies motion, gravitational potential energy depends on height in a gravitational field, and elastic potential energy is stored in deformed elastic materials (Hooke's law). These forms are interconvertible: a falling object converts gravitational potential into kinetic energy; a compressed spring releases elastic potential into kinetic energy. Our calculator enables quantitative exploration of these transformations.
Our calculator applies fundamental formulas:
All values are computed with double precision. The energy bar chart scales dynamically to show relative magnitudes, helping to compare energy contributions at a glance.
| System | Mass (kg) | Velocity (m/s) | Height (m) | Spring k / Δx | Total Energy (J) |
|---|---|---|---|---|---|
| Falling apple | 0.15 | 0 (at top) | 2.5 | — | 3.68 |
| High-speed train | 50000 | 40 | 0 | — | 40,000,000 |
| Spring-loaded toy | 0.2 | 2 | 0.5 | k=80 N/m, Δx=0.05m | 0.5 |
| Roller coaster car | 400 | 12 | 25 | — | 126,900 |
A roller coaster car of mass 600 kg starts from rest at a height of 40 m. At the top of the first hill, its mechanical energy is purely gravitational: E = mgh = 600 × 9.81 × 40 = 235,440 J. As it descends, potential energy converts to kinetic. At the bottom (h=0), neglecting friction, kinetic energy equals 235,440 J → v = √(2E/m) ≈ 28.0 m/s. Our calculator confirms this transformation: set height to 40 m, mass 600 kg, velocity 0 → total energy = 235,440 J; then set height 0, velocity 28.0 m/s → kinetic matches. This demonstrates conservation of mechanical energy, a key design principle for amusement park rides.
When only conservative forces (gravity, ideal springs) do work, the total mechanical energy E = K + U is constant. Our tool allows users to verify this by inputting different states of the same system. For example, a mass-spring system: at maximum compression (v=0, Δx = A) energy is entirely elastic; at equilibrium (Δx=0) energy is entirely kinetic. Non-conservative forces like friction or air resistance dissipate energy; in such cases the total mechanical energy decreases. The calculator flags when input values seem inconsistent with conservation, though it's the user's task to define an isolated system. The tool also serves as an instant validator for textbook problems.