Physics

Relativistic Energy Calculator

Rest, total and kinetic energy at relativistic speed, compared against the Newtonian ½mv² estimate — reuses larzscript-cosmos's verified relativity package.

Real Larzscript running in your browser74 automated checksOpen source · MITNo sign-up · your inputs never leave your device

Relativistic energy

Rest energy (mc²)
—
Total energy (γmc²)
—
Relativistic kinetic energy
—
Newtonian ½mv² (for comparison)
—
Lorentz factor γ
—
Show the Larzscript program that just ran
Run a calculation to see the exact program.

This is the real program the page sent to the Larzscript interpreter (compiled to WebAssembly) in your browser. The library it imports is the same code the automated tests check.

The formulas

E₀ = mc²    E = γmc²    KE = (γ-1)mc²    γ = 1/√(1-v²/c²)

Worked example, computed above

1 kg at 90% of light speed: kinetic energy 1.1631 × 10¹⁷ J — versus a Newtonian estimate of only 3.6400 × 10¹⁶ J.

What is verified

This page calls relativity.rest_energy_j, total_energy_j, kinetic_energy_j and gamma directly from larzscript-cosmos, inheriting that package's own verification, and additionally checks here that total energy always equals rest energy plus kinetic energy, and that the relativistic and Newtonian kinetic energies converge at low speed but diverge sharply as speed approaches c — see tests/test_modern.lz.

Frequently asked questions

What is rest energy?

E₀ = mc² — the energy locked in mass alone, at rest. A 1 kg object has rest energy 8.98755 × 10¹⁶ J, whether or not it is moving — the famous number is huge because c² is huge.

How is this different from ½mv² kinetic energy?

At 10% of light speed, relativistic kinetic energy (4.5278 × 10¹⁴ J for 1 kg) is barely different from the Newtonian ½mv² estimate (4.4938 × 10¹⁴ J) — but at 90% of light speed the relativistic value (1.1631 × 10¹⁷ J) is roughly 3.2× the Newtonian one, which badly underestimates it. This is exactly why ½mv² only works for 'slow' speeds.

What is gamma?

The Lorentz factor γ = 1/√(1−v²/c²), which grows from 1 (at rest) toward infinity as v approaches c. At 90% of light speed, γ ≈ 2.294.

What is total energy?

E = γmc² — rest energy plus kinetic energy combined, the quantity that is actually conserved in relativistic collisions (unlike ½mv² and mc² separately).

Every number on this page is computed by the open-source larzscript-physics library (relativity, physconst, physmath), written in Larzscript, and checked against independent references in its test suite. How it is verified →