Lorentz Transformation Simulator Back
Relativity Simulator

Lorentz Transformation Simulator — Time Dilation and Length Contraction

From the velocity ratio beta = v/c, proper time t_0, proper length L_0 and rest energy E_rest, this tool computes the Lorentz factor gamma, time dilation t, length contraction L and relativistic kinetic energy KE in real time using the Lorentz transformation of special relativity. It draws a contracting rocket and the gamma(beta) curve at the same time, making the warping of spacetime near the speed of light c intuitive and easy to feel.

Parameters
Velocity ratio beta = v/c
Proper time t_0
s
Proper length L_0
m
Rest energy E_rest
MeV

Defaults: beta = 0.500 (half the speed of light), t_0 = 10.0 s, L_0 = 10.0 m, E_rest = 938.5 MeV (proton rest energy). Electron is 0.511 MeV, muon 105.7 MeV, proton 938.3 MeV.

Results
Lorentz factor gamma
Time dilation t
Length contraction L
Relativistic kinetic energy
Rocket length contraction and clock offset

Blue rocket: higher beta squashes it horizontally (L = L_0 / gamma). Top bar: current gamma. Left clock: ground frame (dilated time t). Right clock: onboard frame (proper time t_0). Slide beta to 0.99 to see the rocket flatten and the ground clock tick fast.

gamma(beta) curve

X axis: velocity ratio beta = v/c in [0, 0.999]. Y axis: Lorentz factor gamma in [1, 25]. Blue curve: gamma = 1 / sqrt(1 - beta^2). Yellow marker: current beta. The curve goes nearly vertical as beta approaches 1, illustrating that infinite energy is needed to reach c.

Theory & Key Formulas

The Lorentz transformation is the spacetime coordinate change derived from the invariance of the speed of light (c is the same in every inertial frame). It is the heart of special relativity; every effect is governed by the Lorentz factor gamma.

Lorentz factor:

$$\gamma = \frac{1}{\sqrt{1 - \beta^2}},\qquad \beta = \frac{v}{c}$$

Time dilation (ground-frame time $t$ from proper time $t_0$) and length contraction (observed length $L$ from proper length $L_0$):

$$t = \gamma \cdot t_0,\qquad L = \frac{L_0}{\gamma}$$

Relativistic kinetic energy with rest energy $E_{\rm rest} = m c^2$:

$$KE = (\gamma - 1)\,m c^2 = (\gamma - 1)\,E_{\rm rest}$$

$\beta$ is the velocity ratio and $c \approx 2.998 \times 10^8$ m/s is the speed of light in vacuum. As $\beta \to 1$ the factor $\gamma \to \infty$ and the required energy becomes infinite, so a massive object cannot reach the speed of light. At low speeds $\beta \ll 1$, $\gamma \approx 1 + \beta^2 / 2$ and $KE$ reduces to the classical $(1/2) m v^2$.

What is the Lorentz Transformation Simulator?

🙋
People say "time slows down when you go near the speed of light", but how much slower exactly? You never notice it in daily life.
🎓
Great question. The key is the Lorentz factor gamma = 1 / sqrt(1 - beta^2), with beta = v/c. In everyday life beta is below 10⁻⁶ and gamma is essentially 1, so you feel nothing. With this tool's default beta = 0.500 (half the speed of light!), gamma = 1.1547, so 10 seconds of onboard time stretches to 11.547 seconds on the ground. Push beta to 0.99 and gamma reaches 7.09: only 1 second passes inside while 7 seconds tick on the ground. Near c, time practically freezes.
🙋
The rocket gets shorter too, right? But the people inside don't feel it shrinking?
🎓
That's the magic of relativity. Length contraction L = L_0 / gamma is the rocket length seen from the ground. Onboard, the rocket stays a normal 10 m. From inside, it's the Earth and the stars that look squashed along the direction of motion. With this tool's defaults, a 10 m rocket appears 8.660 m long from the ground. Push beta to 0.99 and 10 m drops dramatically to 1.41 m. Special relativity is symmetric: there is no "true" length, only the length in a given inertial frame.
🙋
How does the relativistic kinetic energy KE = (gamma - 1) m c^2 differ from the classical (1/2) m v^2?
🎓
They agree at low speed but the relativistic one diverges at high speed. Taylor-expanding gives gamma ≈ 1 + beta^2/2 + (3/8) beta^4 + ..., so for beta << 1 the formula reduces to the classical KE ≈ (1/2) m v^2. With this tool's defaults (beta = 0.5, E_rest = 938.5 MeV for a proton), KE = 145.2 MeV. The classical estimate gives 117.3 MeV, 24% too low. Near the speed of light gamma diverges and infinite energy is needed: this is why matter cannot exceed c. The LHC drives protons to gamma ≈ 7500, KE ≈ 7 TeV.
🙋
In the gamma(beta) plot, the curve goes nearly vertical as beta approaches 1. What is that telling me?
🎓
It is the "wall of light" made visible. gamma = 1 / sqrt(1 - beta^2) hits 2.29 at beta = 0.9, 7.09 at 0.99 and 22.4 at 0.999. Tiny extra speed forces an explosion in gamma. In this tool, drag the slider from 0.9 to 0.99 and gamma triples, so the required kinetic energy also triples. The LHC accelerates protons to 99.9999991% of c, yet they never quite reach it. The divergence of the curve is exactly why special relativity declares c an absolute cosmic limit.

Frequently asked questions

The Lorentz factor gamma = 1 / sqrt(1 - beta^2) with beta = v/c is the dimensionless quantity that controls every relativistic effect in special relativity: time dilation, length contraction, and relativistic energy. At beta = 0, gamma = 1; at beta = 0.5, gamma is about 1.155; at beta = 0.9, gamma is about 2.294; at beta = 0.99, gamma is about 7.089; and gamma diverges as beta approaches 1. With this tool's default beta = 0.500 the readout shows gamma = 1.1547. Massive objects need infinite energy to reach the speed of light, which appears mathematically as the divergence of gamma.
Time dilation t = gamma t_0 and length contraction L = L_0 / gamma are two sides of the same Lorentz factor. Multiplying the proper time t_0 (measured by a clock co-moving with the object) by gamma gives the ground-frame time t. Dividing the proper length L_0 by gamma gives the length L seen from the moving frame. With this tool's defaults (beta = 0.500, t_0 = 10.0 s, L_0 = 10.0 m), the readouts are t = 11.547 s and L = 8.660 m: a 10 m rocket appears 8.66 m long from the ground and a 10 s proper-time interval stretches to 11.5 s.
Relativistic kinetic energy is KE = (gamma - 1) m c^2 = (gamma - 1) E_rest. At low speeds beta << 1, gamma is about 1 + beta^2 / 2, which reduces to the classical KE ≈ (1/2) m v^2, but as beta approaches 1, gamma diverges and infinite energy is required. With this tool's defaults beta = 0.500 and E_rest = 938.5 MeV (proton), the readout shows KE = 145.2 MeV. The protons in the LHC reach gamma ≈ 7500, i.e. KE ≈ 7 TeV.
The Lorentz factor gamma = 1 / sqrt(1 - beta^2) diverges as beta approaches 1. Physically, accelerating a massive object up to the speed of light would require infinite energy. Sliding beta to 0.999 in this tool gives gamma ≈ 22.4, so the required kinetic energy is more than 21 times the rest energy. Photons are the only exception because they have zero rest mass and can travel at c without infinite energy. Einstein built special relativity in 1905 from the principle that the speed of light is invariant in every inertial frame, showing that Lorentz transformations are the natural symmetry of spacetime.

Real-world applications

GPS satellites and time correction: GPS satellites orbit at about 14,000 km/h (beta ≈ 4.7 x 10⁻⁵). Special relativity makes their clocks lose 7 microseconds per day, while general relativity (weaker gravity at 20,000 km altitude) makes them gain 45 microseconds, for a net +38 microseconds per day. Without correction, position errors of more than 10 km would accumulate every day. This tool cannot reach such tiny beta values, but the principle is the same: even gamma ≈ 1 + 10⁻⁹ matters at engineering scale. Einstein's theory is not abstract speculation — it is built into the infrastructure of modern navigation.

The Large Hadron Collider (LHC): CERN's LHC accelerates protons up to gamma ≈ 7500 (beta ≈ 0.999999991), reaching KE ≈ 6.5 TeV = 6500 GeV. Starting from this tool's defaults (beta = 0.5, E_rest = 938.5 MeV) and pushing beta to 0.999 with E_rest unchanged gives gamma ≈ 22.4, KE ≈ 20 GeV — already enormous compared to the rest energy. The LHC reaches gamma values around 7500 to recreate the early universe in the laboratory and produced the Higgs boson (discovered 2012).

Muon decay and the experimental proof of time dilation: Cosmic-ray muons created at 15 km altitude have a proper lifetime of only τ₀ ≈ 2.2 μs. At the speed of light they could travel just 660 m, yet they reach the ground. Their beta ≈ 0.998 gives gamma ≈ 16, so their lifetime in the lab frame is τ = gamma τ₀ ≈ 35 μs, enough to cross 10 km. Entering beta = 0.998 and t_0 = 2.2 (arbitrary units) in this tool returns t ≈ 35. The 1941 Rossi-Hall experiment used this effect as one of the earliest direct confirmations of special relativity.

Electron microscopy and relativistic electrons: A 200 kV transmission electron microscope (TEM) accelerates electrons to v ≈ 0.695 c (gamma ≈ 1.39). Without relativistic corrections, the focal length is off by 39% and the image breaks. 300 kV TEMs reach gamma ≈ 1.59 and 500 kV TEMs gamma ≈ 1.98. Set E_rest = 0.511 MeV (electron) and beta = 0.7 in this tool: it returns gamma ≈ 1.40 and KE ≈ 0.205 MeV = 205 keV, exactly the 200 kV TEM operating point. Atomic-resolution imaging in semiconductors and life sciences relies on this correction every day.

Common misconceptions and caveats

The most common misunderstanding is that "a moving observer feels their own time slow down". They do not. Every clock and every metabolic process moves with the observer and slows by the same factor, so subjectively nothing changes. The difference appears only when comparing clocks in different inertial frames. In this tool, compare the onboard t_0 and the ground t: a 10 s proper time "appears" as 11.5 s from the ground, but no clock inside the rocket physically runs slow as far as the rocket crew is concerned.

A second classic confusion is "the twin paradox is a contradiction". "If each frame sees the other clock slowing down, who is really younger?" The resolution is that the symmetry is broken by acceleration. The Earth twin stays in one inertial frame the whole time, but the traveling twin must decelerate, turn around, and accelerate back. That asymmetric world line makes the traveling twin genuinely younger. This tool only handles pure Lorentz transformations between inertial frames; modeling a complete twin scenario requires integrating the proper time along an accelerated world line.

Finally, "Lorentz transformations only matter inside particle accelerators" is wrong. They underpin GPS, satellite navigation (QZSS, Galileo), atomic clocks, gravitational-wave detectors like LIGO, nuclear-reaction codes, particle-in-cell plasma simulations and synchrotron-radiation calculations. This tool stays within pure special relativity for beta <= 0.999 and does not cover general relativity (gravity) or quantum field theory. For those regimes, pair it with specialized solvers such as Einstein Toolkit or quantum electrodynamics codes.