The Relativity Calculator works out time dilation and length contraction at high speeds. Enter a velocity as a fraction of light speed.
Relativity Calculator
One speed, three relativistic effects: gamma, dilated time and contracted length - the special relativity trio in a single run.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Relativity Result
Calculated locally in your browser
—
Name
—
Speed (fraction of c)
—
Proper time
—
Rest length
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
Special relativity links speed to time and length through the Lorentz factor gamma, which equals one divided by the square root of one minus beta squared. At six tenths of light speed gamma is one point two five, so a ten second proper time is observed as twelve point five seconds.
- gamma = 1/sqrt(1 - beta^2), beta = v/c
- Moving clocks are measured slow by a factor gamma
- Lengths along the motion contract by a factor gamma
Lorentz factor at landmark speeds
Reference values for this calculator.
| Speed | Gamma | Effect scale |
|---|---|---|
| 0.1c | 1.005 | Barely detectable |
| 0.6c | 1.250 | Textbook example |
| 0.8c | 1.667 | Strong |
| 0.99c | 7.089 | Extreme |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Enhancement: returns all three linked effects - gamma, dilated time and contracted length - from one speed, because relativity problems always ask for the trio together; speed is entered as beta to keep inputs sane.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
The textbook 0.6c case
beta 0.6, proper time 10, rest length 100
| Calculation | Steps |
|---|---|
| gamma = 1 / sqrt(1 - 0.36) = 1 / 0.8 = 1.25. Dilated time = 10 x 1.25 = 12.5. Contracted length = 100 / 1.25 = 80. | gamma 1.25; time 12.5; length 80. |
Result
Example 2
Slow by relativistic standards
beta 0.1, proper time 5, rest length 50
| Calculation | Steps |
|---|---|
| gamma = 1 / sqrt(0.99) = 1.00504. Time = 5.025; length = 49.75. | Effects of about half a percent. |
Result
Example 3
Near-light travel
beta 0.99, proper time 1, rest length 10
| Calculation | Steps |
|---|---|
| gamma = 1 / sqrt(1 - 0.9801) = 1 / 0.14107 = 7.089. Time = 7.089; length = 1.411. | gamma about 7.09 - a sevenfold stretch. |
Result
How to use this calculator
Step 1
Enter the speed as a fraction of the speed of light - 0.6 means 0.6c (the calculator also shows it in m/s).
Step 2
Enter a proper time: a duration measured on the moving clock.
Step 3
Enter a rest length: the object's length in its own rest frame.
Step 4
Read gamma first - it is the single factor behind both effects.
Step 5
Apply the outputs: time dilates by gamma, length contracts by gamma.
Frequently asked questions
What is proper time?
The time measured by a clock that is present at both events - the moving clock itself. Observers watching it from a frame it moves through measure a longer, dilated time: gamma times the proper time.
Why must beta be below 1?
Massive objects cannot reach or exceed c; as beta approaches 1, gamma grows without bound, reflecting the infinite energy that acceleration to c would require. Beta of exactly 1 is for light itself, which has no rest frame.
Does length contract in all directions?
No - only along the direction of motion. A spaceship contracts in length but not in height or width. The calculator's rest length is understood as the length along the motion.
Who is 'really' moving?
Special relativity treats motion as relative: each inertial observer measures the other's clocks as slow. There is no contradiction because simultaneity is also relative. The calculator takes the common textbook framing: enter proper values from the moving object's frame.
Where is this measurable at low speed?
In particle physics daily (muons reach the ground only because their decay clocks dilate), and in GPS satellites, whose clocks need relativistic corrections at orbital speeds despite beta being tiny - gamma differs from 1 by only parts per billion there, but the errors would accumulate to kilometres per day.
About this calculator
A relativity calculator computes the Lorentz factor for a given speed and applies it to the two headline effects of special relativity: time dilation (moving clocks measured as running slow) and length contraction (moving objects measured as shortened along their motion).
Gamma is always at least 1 and hugs 1 until speeds become a substantial fraction of c: at 0.1c it is only 1.005, which is why everyday experience never hints at these effects. The curve then turns savage - 0.99c gives gamma over 7 - because the denominator sqrt(1 - beta^2) collapses toward zero.
Time dilation and length contraction are two faces of one geometry, not separate mechanisms. Observers measure a moving clock's ticks spread out by gamma and the moving rod's length shrunk by the same gamma, and both follow from the single postulate that light speed is the same for every inertial observer.
Entering speed as beta (a fraction of c) keeps the physics honest: it makes the c limit impossible to cross by accident, and the calculator shows the equivalent m/s figure using the exact defined value of c, 299,792,458 m/s, for scale.
Use it for physics coursework, for muon and GPS-style estimation problems, or for building intuition about how close to light speed an effect becomes large.
How to calculate it yourself
Step 1
Express the speed as beta = v / c.
Step 2
Compute gamma = 1 / sqrt(1 - beta^2).
Step 3
Multiply the proper time by gamma for the dilated duration other observers measure.
Step 4
Divide the rest length by gamma for the contracted length.
Step 5
Sanity-check: gamma >= 1, times grow, lengths shrink - never the reverse.
Real-life examples
Muons reaching the ground
Cosmic-ray muons are created high in the atmosphere with a proper lifetime of about 2.2 microseconds, far too short to reach the surface at 0.99c - unless their clocks dilate.
At beta 0.99, gamma = 7.089, so Earth observers measure their lifetime as 2.2 x 7.089 = about 15.6 microseconds - long enough to be detected at sea level.
Time dilation is why ground detectors see them at all.
A starship's measured length
In a textbook scenario, a 100-metre (rest length) ship passes Earth at 0.6c while its crew logs a 10-second manoeuvre on ship clocks.
Earth measures length 100 / 1.25 = 80 metres and the manoeuvre lasting 10 x 1.25 = 12.5 seconds.
80 metres and 12.5 seconds as measured from Earth.
Ideas & use cases
- Threshold hunting: find the beta where an effect reaches 1%, 10% and a factor of 2 - the answers (about 0.14c, 0.44c... verify with the tool) build real intuition for 'relativistic' speed.
- Muon lab: vary beta in the muon scenario to see the minimum speed at which muons survive a given atmospheric path.
- Reciprocity discussion: swap frames in words - the crew measures Earth's clocks slow instead - and identify what extra ingredient (acceleration) resolves the twin paradox.
Limitations & sources
- Special relativity only: inertial frames, speeds below c entered as beta. No general relativity (gravity), relativistic momentum/energy in this view, twin-paradox ageing integrals, or velocity addition.
Sources: Einstein special relativity (1905); Lorentz factor definitions as in standard texts (OpenStax University Physics, Relativity chapter) and NIST value of c = 299,792,458 m/s
