⏱️ Lorentz Transform — Minkowski Diagram
Interactive Minkowski spacetime diagram showing Lorentz transformation between inertial frames. Drag events, adjust velocity β, see time dilation, length contraction and relativity of simultaneity.
Lorentz Transformation
The Lorentz transformation relates spacetime coordinates between two inertial frames S and S′, where S′ moves at velocity v = βc relative to S:
- x′ = γ(x − βct) — space coordinate transforms (length contraction)
- ct′ = γ(ct − βx) — time coordinate transforms (time dilation)
- γ = 1/√(1−β²) — Lorentz factor, diverges as β→1
Reading the Minkowski Diagram
- The blue axes are the S frame — horizontal x, vertical ct
- The orange axes are the S′ frame — both tilted toward the light cone as β increases
- The yellow dashed 45° lines are the light cone — events on it have s² = 0 (lightlike)
- Dashed lines from event A show its coordinates in each frame
- The S′ grid lines appear physically stretched because the axes use Minkowski (not Euclidean) unit intervals
What to Explore
- Drag β close to 1 — watch the S′ axes squeeze toward the light cone
- Place event A at x = ct (on light cone) — both frames agree it is lightlike
- Place A in the "past" region (ct < 0) and increase β — ct′ stays negative (causality preserved)
- Place A with x > ct (spacelike) — the time ordering can reverse between frames, showing simultaneity is relative
Spacetime Interval
The quantity s² = c²t² − x² (or −s² = x² − c²t²) is Lorentz-invariant — the same in all inertial frames. If s² > 0 the interval is timelike (causal connection possible), if s² = 0 it is lightlike, if s² < 0 it is spacelike (no causal connection, time order can be reversed).
About this simulation
This interactive Minkowski spacetime diagram shows how the coordinates of a single event A transform between two inertial frames S and S' when S' moves at velocity v = βc. Adjusting the velocity tilts the orange S' axes toward the 45° light cone, while the applet computes the new coordinates using the Lorentz transformation x′ = γ(x − βct), ct′ = γ(ct − βx). It is a vivid way to grasp time dilation, length contraction and the relativity of simultaneity.
🔬 What it shows
A 2D spacetime (x horizontal, ct vertical) measured in light-seconds. The blue grid and axes are frame S; the orange grid and axes are frame S', which the code derives by tilting both axes by the same angle toward the yellow light cone (x = ±ct). Event A's coordinates are computed live with x′ = γ(x − βct), ct′ = γ(ct − βx) and γ = 1/√(1−β²).
🎮 How to use
Drag the β = v/c slider (0 to 0.98) to set the S' frame speed and watch γ update. Drag event A directly on the canvas, or use the x and ct sliders (−4 to 4 ls). The side panel reads out the S coordinates, the transformed S' coordinates, the invariant interval s² = c²t² − x², and whether the interval is timelike, lightlike or spacelike.
💡 Did you know?
The S and S' axes always make equal angles with the light cone, so a light ray stays at 45° in every frame — the geometric expression of the constant speed of light. This is why the diagram is drawn with Minkowski rather than Euclidean unit intervals.
Frequently asked questions
What is a Lorentz transformation?
It is the set of equations in special relativity that converts the space and time coordinates of an event from one inertial frame to another moving at constant velocity. In this simulation it uses x′ = γ(x − βct) and ct′ = γ(ct − βx), where β = v/c and γ = 1/√(1−β²). Unlike the everyday Galilean transformation, it mixes space and time together.
What does the velocity slider β actually do?
β is the speed of frame S' as a fraction of the speed of light, ranging here from 0 to 0.98. Increasing β raises the Lorentz factor γ and tilts the orange S' axes symmetrically toward the 45° light cone. At β = 0 the two frames coincide; as β approaches 1, γ grows without bound and the axes squeeze together near the light cone.
What is the spacetime interval shown in the panel?
The quantity s² = c²t² − x² is the spacetime interval. Its value is the same in every inertial frame, which is why it is called Lorentz-invariant. If s² is positive the interval is timelike (a cause-and-effect link is possible), if it is zero it is lightlike, and if it is negative it is spacelike, meaning no signal can connect the two events.
Why can the time order of events sometimes reverse?
For a spacelike interval (s² less than zero), event A lies outside the light cone of the origin. Because no signal can travel between such events, different frames legitimately disagree on which came first. The simulation lets you place A in this region and increase β to see the transformed ct′ flip sign, demonstrating the relativity of simultaneity.
Are the calculations physically accurate?
Yes. The applet applies the exact special-relativity Lorentz transformation with no approximations, so the displayed S' coordinates, the γ-factor and the invariant interval are quantitatively correct for the chosen β. Distances are expressed in light-seconds so that c = 1 and the light cone sits at a clean 45 degrees, but the underlying physics is unchanged.
Set velocity β and drag event A on a Minkowski diagram to watch Lorentz transformations reveal time dilation and length contraction live.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install