Toolvito

Works on this device

Spacetime Interval Calculator

Two events are separated in time and in space. The spacetime interval s² = c²Δt² − Δr² is the same for every observer in uniform motion. Find it, see whether the events are timelike, lightlike or spacelike, and get the proper time or the proper distance between them.

Enter your values

Your values

Negative when B happens before A.

Use one unit for all three distances. With years and light-years, c = 1 light-year per year.

More options

Leave blank for 0.

Leave blank for 0.

Optional: see the same two events from a frame that moves along x. Negative means against +x.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Type the time between the two events, Δt = t_B − t_A, and choose its unit. It may be negative.
  2. Type the distance along x, and under More options along y and z, all in one unit. With years and light-years, light goes 1 light-year in 1 year.
  3. Choose the metric signature: (+, −, −, −) or (−, +, +, +). It only changes the sign of s².
  4. Under More options you can type the velocity of another frame along x, to see the same two events from that frame.
  5. Choose Calculate. The answer says what kind the interval is and gives the proper time or the proper distance.

The formulas

  • Interval, signature (+, −, −, −): s² = c²Δt² − Δx² − Δy² − Δz². Timelike if s² > 0, lightlike if s² = 0, spacelike if s² < 0.
  • Interval, signature (−, +, +, +): s² = −c²Δt² + Δx² + Δy² + Δz², the same geometry with the opposite sign: timelike if s² < 0.
  • Proper time (timelike): Δτ = √(c²Δt² − Δr²) ÷ c, the time on a clock that goes from one event to the other at a steady velocity.
  • Proper distance (spacelike): σ = √(Δr² − c²Δt²), the distance between the events in the frame in which they happen at the same time.
  • Lorentz transformation along x: c Δt′ = γ (c Δt − β Δx), Δx′ = γ (Δx − β c Δt). The interval comes out the same.

Worked examples

5 years and 3 light-years. s² = 5² − 3² = 16 ly², timelike, so Δτ = 4 years. Seen from a frame moving at 0.6 c along x, both events are at one place and 4 years apart.

3 years and 5 light-years. s² = 9 − 25 = −16 ly² with (+, −, −, −): spacelike, with a proper distance of 4 light-years. No signal can link the two events.

1 year and 1 light-year. s² = 0 exactly: lightlike. Only a light signal links them, in every frame.

The Sun and the Earth. An event on the Sun and one on the Earth 1 au away and 500 s later: c Δt = 149,896,229 km is just more than 1 au (149,597,871 km), so they are timelike.

Two signatures, one geometry

Books write the interval with one of two sign conventions. With (+, −, −, −), common in particle physics, a timelike interval has s² > 0. With (−, +, +, +), common in general relativity, it has s² < 0. Both describe the same spacetime. This page shows which one it used in every answer, and the kind of interval does not depend on the choice.

Limits you should know

  • This is flat spacetime (special relativity), with inertial frames. Near large masses spacetime is curved and the formula holds only over small regions.
  • The kind of interval is decided exactly from your typed values: a year is the Julian year of 365.25 days, a light-year is c × 1 Julian year and a light-second is c × 1 s. Distances in parsecs are not offered, because a parsec has no exact factor.
  • Answers are shown to the significant figures of your least precise input.
  • For the time on a moving clock, see the Proper Time Calculator. For adding velocities, see the Relativistic Velocity Addition Calculator.

Related tools