Spacetime Interval Calculator

Inputs

Interval s-squared64.0000
Spatial separation6.0000 ls
Interval typeTimelike
Proper time8.0000 s
How this was calculated
  1. Inputs: time separation 10.00 s (so c x dt = 10.00 light-seconds), spatial separations 6.00, 0.00 and 0.00 light-seconds.
  2. The spatial separation is sqrt(6.00^2 + 0.00^2 + 0.00^2) = 6.0000 light-seconds; the interval weighs time against it: s^2 = (c dt)^2 - d^2.
  3. s^2 = 100.0000 - 36.0000 = 64.0000 (light-seconds)^2. Every observer agrees on this number even when they split it into time and space differently.
  4. Spacetime interval: 64.0000 - timelike; a clock can travel between the events, ageing by the proper time shown.

Two observers in relative motion disagree about the time between two events and about their distance apart - but they agree, exactly, on one combination of the two: the spacetime interval. Enter the time separation and the spatial separations (in light-seconds, so light travels one unit per second) and the calculator returns the interval, its classification, and the proper time or proper distance it encodes.

The interval is special relativity's invariant - the quantity that replaces the separate absolutes of Newtonian time and space, and the reason causality survives the relativity of simultaneity.

Worked examples

Timelike pair, proper time 8 s

(10 s · 6 light-seconds · 0 light-seconds · 0 light-seconds)

Interval s-squared64.0000
Spatial separation6.0000 ls
Interval typeTimelike
Proper time8.0000 s

Spacelike pair

(3 s · 4 light-seconds · 3 light-seconds · 0 light-seconds)

Interval s-squared-16.0000
Spatial separation5.0000 ls
Interval typeSpacelike
Proper distance4.0000 ls

Exactly lightlike pair

(13 s · 5 light-seconds · 12 light-seconds · 0 light-seconds)

Interval s-squared0.0000
Spatial separation13.0000 ls
Interval typeLightlike (null)
Proper time0.0000 s

The invariant every observer shares

The formula is a subtraction, not an addition: s-squared equals (c times the time separation) squared minus the squared spatial separation. With separations entered in light-seconds, c is 1 and the arithmetic is bare. The first worked example - 10 s apart in time, 6.0000 ls apart in space - gives (10 squared) minus (6 squared) = 64.0000.

Boost to another frame and both numbers change - time dilates, lengths contract - but they change together so that the difference of squares does not. Every observer, whatever their motion, computes 64.0000 for that pair of events. The interval is the events' intrinsic relationship, stripped of any observer's bookkeeping.

Its sign does the classifying. Positive (in this convention) means timelike: the events are close enough in space, relative to their time gap, that one could cause the other.

  • s^2 = (c dt)^2 - dx^2 - dy^2 - dz^2, with distances in light-seconds making c = 1.
  • Timelike: s^2 > 0. Lightlike: s^2 = 0. Spacelike: s^2 < 0.
  • The square root of a timelike interval is the proper time between the events.

Timelike, spacelike, lightlike

The second example flips the balance: 3 s of time against a spatial separation of 5.0000 ls (3-4-5 across two axes) gives 9 minus 25 = -16.0000, spacelike. No signal, not even light, can connect those events; their time order is frame-dependent, and causality has nothing to protect because nothing can pass between them.

The third example is the boundary: 13 s against a separation of exactly 13.0000 ls (a 5-12-13 triangle) gives 0.0000 - lightlike. Only a photon, or another light-speed traveller, can be present at both events; the pair lies exactly on a light cone.

The three worked examples are the three possible relationships between two events in the universe. There is no fourth: every pair of events you will ever specify lands in exactly one of these classes, for every observer.

Examples-squaredSpatial separationTypeProper quantity
First64.00006.0000 lsTimelike8.0000 s
Second-16.00005.0000 lsSpacelike4.0000 ls
Third0.000013.0000 lsLightlike (null)0.0000 s

Worked examples

Example 1: Time separation 10; Space separation, x 6; Space separation, y 0; Space separation, z 0. Interval s-squared = 64.0000. Supporting values: Spatial separation 6.0000 ls; Interval type Timelike; Proper time 8.0000 s. Inputs: time separation 10.00 s (so c x dt = 10.00 light-seconds), spatial separations 6.00, 0.00 and 0.00 light-seconds. The spatial separation is sqrt(6.00^2 + 0.00^2 + 0.00^2) = 6.0000 light-seconds; the interval weighs time against it: s^2 = (c dt)^2 - d^2. s^2 = 100.0000 - 36.0000 = 64.0000 (light-seconds)^2. Every observer agrees on this number even when they split it into time and space differently. Spacetime interval: 64.0000 - timelike; a clock can travel between the events, ageing by the proper time shown.

Example 2: Time separation 3; Space separation, x 4; Space separation, y 3; Space separation, z 0. Interval s-squared = -16.0000. Supporting values: Spatial separation 5.0000 ls; Interval type Spacelike; Proper distance 4.0000 ls. Inputs: time separation 3.00 s (so c x dt = 3.00 light-seconds), spatial separations 4.00, 3.00 and 0.00 light-seconds. The spatial separation is sqrt(4.00^2 + 3.00^2 + 0.00^2) = 5.0000 light-seconds; the interval weighs time against it: s^2 = (c dt)^2 - d^2. s^2 = 9.0000 - 25.0000 = -16.0000 (light-seconds)^2. Every observer agrees on this number even when they split it into time and space differently. Spacetime interval: -16.0000 - spacelike; no signal can connect the events, so their order can flip between observers.

Example 3: Time separation 13; Space separation, x 5; Space separation, y 12; Space separation, z 0. Interval s-squared = 0.0000. Supporting values: Spatial separation 13.0000 ls; Interval type Lightlike (null); Proper time 0.0000 s. Inputs: time separation 13.00 s (so c x dt = 13.00 light-seconds), spatial separations 5.00, 12.00 and 0.00 light-seconds. The spatial separation is sqrt(5.00^2 + 12.00^2 + 0.00^2) = 13.0000 light-seconds; the interval weighs time against it: s^2 = (c dt)^2 - d^2. s^2 = 169.0000 - 169.0000 = 0.0000 (light-seconds)^2. Every observer agrees on this number even when they split it into time and space differently. Spacetime interval: 0.0000 - lightlike (null); only light can connect the events.

Proper time and proper distance

For a timelike pair, the square root of the interval is the proper time: the time a clock actually travelling between the events would record. The first example's root is 8.0000 s - less than the 10 s of the frame in which the spatial separation is 6.0000 ls. That shortfall is time dilation stated without any machinery: the moving clock's elapsed time is the interval, and it is shorter than any stay-at-home frame's coordinate time for the same journey.

For a spacelike pair, the root of the negated interval is the proper distance, 4.0000 ls in the second example: the separation measured in the frame where the events are simultaneous. Lightlike pairs have neither - the interval and both proper quantities vanish, which is the arithmetic behind the statement that no time passes for a photon.

Sign conventions differ by textbook: some authors define the interval with the opposite sign. This calculator uses (time) minus (space), so timelike intervals are positive.

Why the sign convention matters

Nothing physical changes when the convention flips - the classification is read off the magnitude's relationship to zero, and proper quantities use absolute values - but formulas quoted from two textbooks with opposite conventions will disagree by a sign, and more confusion has flowed from that than from any other notational choice in relativity. State your convention when you publish an interval; this page's results use the one in the callout above.

The convention also decides whether the interval is written s-squared or as a squared proper time directly. Here the primary output is s-squared itself, signed, because the sign is the classification - the single most useful thing the number says.

Entering separations

Enter the time separation in seconds and the three spatial separations in light-seconds - the distance light covers in one second, per axis. A separation given in kilometres must be converted first (divide by the distance light travels in a second); mixing kilometres into an axis while the time is in seconds breaks the c = 1 bookkeeping the calculator assumes.

The axes can be entered separately because real separations are rarely along one line: the second example's 4 and 3 across two axes combine into the 5.0000 ls the interval uses. The calculator takes the Euclidean norm of the three components, as the formula requires.

The light cone is the interval's geometric portrait. Fix one event; the set of events at zero interval from it forms a double cone in spacetime - its future and past light cones - and every other event falls inside the cones (timelike, reachable, causally connectable) or outside them (spacelike, forever out of causal reach). The classification this calculator prints is a point's address relative to that cone, and the invariance of the interval is the statement that all observers draw the same cone, however they tilt their axes through it.

General relativity begins where this page ends: the interval becomes a line element with position-dependent coefficients, and proper time is accumulated along a worldline by integrating it. The flat-space version computed here remains the local truth everywhere - in a small enough neighbourhood of any event, spacetime is Minkowskian and these formulas hold. Mastering the invariant in its simple form is not a simplification of the theory; it is the theory's foundation, stated where it can be checked by arithmetic.

One consequence of invariance is worth drawing out because it resolves a shelf of paradoxes: since the interval's sign cannot change between frames, the classification of a pair of events is absolute. Timelike pairs have the same time order for everyone - cause really can precede effect universally - while spacelike pairs may swap order between frames without any physical contradiction, because nothing connects them. Most 'paradoxes' of special relativity dissolve the moment the pairs involved are classified; the interval is the machine that classifies them, and it never disagrees with itself.

FAQs

What interval does the first example give?

The first example gives an interval of 64.0000 - (10 squared) minus (6 squared) - a timelike separation whose proper time is 8.0000 s.

What proper time does the first example give?

The proper time is 8.0000 s in the first example: a clock travelling between the two events ages eight seconds, less than the ten seconds of the frame used to specify them.

What interval does the spacelike example give?

The spacelike example gives -16.0000. The spatial separation of 5.0000 ls outweighs the 3 s time gap, so no signal can connect the events and their time order is frame-dependent.

What spatial separation does the lightlike example have?

The lightlike example has a spatial separation of 13.0000 ls, exactly matching its 13 s time separation - the events lie on a light cone, and only light can attend both.

What spatial separation does the first example have?

The first example has a spatial separation of 6.0000 ls, entered along a single axis. It is comfortably inside the light cone of the 10 s time separation, hence timelike.

What is (c dt)^2 in the first example?

(c dt)^2 is 100.0000 in the first example - the squared time term before the spatial 36 is subtracted to leave the interval of 64.0000.

Sources

Related calculators

Relativistic Energy Calculator
Total, rest and kinetic energy plus momentum for a mass at a fraction of light speed, via the Lorentz factor.
Mass-Energy Equivalence Calculator (E = mc^2)
Einstein's E = mc^2 both ways: the energy locked in a mass, or the mass behind an energy — with kWh and TNT equivalents.
Photon Momentum Calculator
Calculates a photon's momentum p = h/lambda from its wavelength, with its energy in joules and electronvolts and its frequency.