b2KIT

Special Relativity Visualizer

Visualize time dilation, length contraction, and Lorentz transformations. Explore spacetime diagrams and the twin paradox interactively.

Tested tool guide Tested browser tools Checked August 16, 2026

What Special Relativity Visualizer does, with a checked example

This tool draws a spacetime diagram: time on one axis, space on the other, light moving at 45 degrees, and a second set of axes for an observer whose speed you drag. As v rises, the moving frame's axes tilt, clocks along it tick slower by the Lorentz factor, and rulers shrink in the direction of motion. What the diagram makes visible that arithmetic hides: the moving observer's 'now' is a tilted line, so events simultaneous for you are not simultaneous for them. Most users are surprised that time dilation alone is symmetric between frames; the twin paradox's age difference comes from the traveler switching frames at the turnaround.

Worked example

A concrete input and expected output from the current implementation.

Input

Velocity v = 0.6c, outbound distance 3 light-years, instant turnaround, round trip.

Expected output

Stay-at-home twin ages 10.0 years; the traveler ages 8.0 years (Lorentz factor gamma = 1.25). Outbound leg: 5.0 years Earth time, 4.0 years traveler time; the return leg repeats both.

At beta = 0.6, gamma = 1/sqrt(1 - 0.6^2) = 1/0.8 = 1.25, so each 5-year leg (3 light-years at 0.6c) takes 5/1.25 = 4 years of traveler proper time. The round trip comes out 10 years versus 8 years.

How the result is produced

1

Reading the Minkowski diagram

The tool plots ct (time in light-travel units) vertically and x horizontally, so light always moves at 45 degrees. A frame moving at v gets skewed axes: the time axis is the moving observer's worldline, and the space axis is the line of events that observer calls simultaneous, tilted the same angle the other way. Reading coordinates along those skewed axes reproduces the Lorentz transformation, and ticks on them are stretched by sqrt((1 + beta^2)/(1 - beta^2)).

2

Proper time along the worldline

Elapsed time for any observer is the integral of dt/gamma along their worldline: a clock that follows the path records less than the coordinate time. Straight legs at constant speed contribute t/gamma(v) each, so the tool sums the legs of a polyline. The twin paradox is just two legs for the traveler and one straight line for the stay-at-home; the entire age difference enters at the turnaround, where the traveler switches frames.

Good uses

  • Verify a hand calculation before trusting it: set v = 0.6c and a 3-light-year target and confirm the round trip gives 10 Earth years versus 8 traveler years.
  • Build intuition about simultaneity: drag the speed slider and watch the moving frame's 'now' line sweep across events, so two lightning strikes simultaneous in one frame happen in a definite order in the other.
  • Plan a story or game star trip: choose a ship speed and destination distance, then read off how much the crew ages versus how much Earth ages.

Limits and checks

  • Time dilation is symmetric between inertial frames: the diagram shows both you and a passing ship seeing the other's clock run slow. A real age difference appears only on a closed worldline with a turnaround, so quote the twin-paradox numbers, never a single pass-by.
  • Length contraction is a measured quantity, not a visual appearance. Because light itself takes time to travel, a fast object looks rotated or distorted (the Terrell effect); the contracted ruler in the diagram is not what a photograph or an eye records.
  • The model uses idealized straight legs and an instantaneous turnaround, and it sets c = 1, so one unit of time equals one unit of distance (1 year = 1 light-year). Real acceleration smooths the corner without changing who is younger; mixing seconds with light-years gives nonsense.

Common questions

After the round trip, which twin is actually younger?

The traveler. Their worldline bends at the turnaround, so they never stay in one inertial frame, while the stay-at-home's worldline is straight. The traveler's elapsed time is the sum of the two legs' proper times, which is shorter: 8 years versus 10 at v = 0.6c over 3 light-years. Smoothing the turnaround with real acceleration changes the details but never reverses the result.

Why are the moving frame's axes tilted? Is that a real effect?

The tilt is the diagram's way of showing that 'now' is not universal. The tilted time axis is just the traveler's worldline, and the tilted space axis is every event the traveler calls simultaneous, which is a different set of events than yours. At v = 0.6c both axes sit at about 31 degrees, and reading coordinates along them gives exactly the Lorentz transformation.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools