# Twin Paradox Calculator for Special Relativity
The twin paradox visualizer turns one of the most famous ideas in special relativity into an interactive spacetime diagram. Set a spacecraft velocity as a fraction of light speed, choose how many years pass on Earth, and the calculator computes the Lorentz factor, the traveler proper time, the reunion age gap and the outward distance to the turnaround point. The visual layout separates the Earth clock from the spacecraft clock so the asymmetry is visible instead of hidden inside formulas.# How the Calculation Works
The core quantity is the Lorentz factor: gamma = 1 / sqrt(1 - v^2 / c^2). For a simple out-and-back trip with constant cruising speed, the time experienced by the traveler is the Earth-frame mission duration divided by gamma. The difference between those two durations is the age gap when the twins reunite. The tool also shows the Earth-frame turnaround distance, which is half of the total Earth time multiplied by the ship velocity in light-years per year.| Speed | Lorentz Factor | Traveler Clock Rate | Physical Meaning |
|---|---|---|---|
| 0.50c | 1.155 | 86.6% of Earth rate | A noticeable but moderate relativistic effect. |
| 0.86c | 1.960 | 51.0% of Earth rate | The traveler ages roughly half as fast during cruise. |
| 0.98c | 5.025 | 19.9% of Earth rate | Extreme time dilation dominates the mission outcome. |
# Why the Situation Is Not Symmetric
At first glance each twin can say the other is moving, which makes the outcome seem contradictory. The resolution is that the Earth twin remains approximately in one inertial frame, while the traveling twin leaves, reverses direction and returns. That change of inertial frame gives the traveler a different path through spacetime. The worldline drawn by this tool bends at the turnaround event, while the Earth twin worldline stays straight.# Reading the Worldline Diagram
A worldline is a map of an object through spacetime rather than through space alone. In this visualizer, the vertical Earth line represents the twin who stays home. The angled red path represents the traveler leaving Earth and coming back. Increasing speed makes the traveler path lean more dramatically and reduces the amount of proper time accumulated on the spacecraft clock.- Age gap: how much younger the traveler is at reunion.
- Lorentz factor: the multiplier that links Earth-frame time to traveler proper time.
- Traveler proper time: the actual elapsed time measured by a clock on the spacecraft.
- Turnaround distance: the outward distance in Earth frame before the traveler reverses course.