🔬
🔬 Science & engineering

Earthquake Distance from S−P Time Calculator

Results update as you type.

Your numbers

Understanding the earthquake distance from S−P time — concept and principle

When an earthquake occurs, a seismograph first records the faster P wave and then the slower S wave. The gap between their arrivals, the S−P time, grows with distance, so it tells you how far away the earthquake was. This method is taught in every introductory geology course and is the basis for locating an epicentre by triangulation from three stations.

Distance from the S−P timeOver 168 km the P wave at 6.0 km/s takes 28 s and the S wave at 3.5 km/s takes 48 s, a 20 s gap.P waves outrun S wavesquakestationP 6.0 km/s28 sS 3.5 km/s48 s← 168 km →PS20 s gap20 ÷ (1/3.5 − 1/6.0) = 20 ÷ 0.119Distance = 168 km≈ 8.4 km per second of S−P
A 20-second gap between P and S arrivals puts the quake 168 km away.

How it is calculated

d = Δt ÷ (1/vs − 1/vp)

The term 1/vs − 1/vp is the extra time the S wave needs per kilometre, so dividing the delay by it gives the distance.

The principle

Both waves leave the source at the same moment. Over a distance d, the P wave takes d/vp seconds and the S wave d/vs seconds. Their difference is Δt = d/vs − d/vp = d(1/vs − 1/vp), which rearranges to the formula above. With vp = 6 and vs = 3.5 km/s, 1/(1/3.5 − 1/6) = 8.4, so each second of S−P delay is about 8.4 km of distance. P waves are faster because they are compressional and depend on both the bulk and shear stiffness of rock, while S waves are shear waves and depend only on shear stiffness.

Worked example

  1. Inputs: Δt = 20 s, vp = 6.0 km/s, vs = 3.5 km/s.
  2. 1/vs = 0.285714 s/km and 1/vp = 0.166667 s/km.
  3. Difference: 0.285714 − 0.166667 = 0.119048 s/km.
  4. d = 20 ÷ 0.119048 = 168 km.
How Distance (km) changes with S-wave speed (km/s)How Distance changes with S-wave speed-1,000-50005001,0000.8751.752.623.54.385.257Example: 168S-wave speed (km/s)
Each point is the calculator re-run with only “S-wave speed (km/s)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
S-wave speed (km/s)Distance (km)
0.87520.48780488
1.7549.41176471
2.6293.33333333
3.5168
4.38323.0769231
5.25840
7-840

How to read the result

The distance is the radius of a circle around the station on which the source lies. With three stations you draw three circles; where they intersect is the epicentre. A short S−P time of a few seconds means a nearby quake, often felt as a sharp jolt; a long one means a distant event. Note that the result is the straight-line distance to the hypocentre, which for a shallow quake is close to the epicentral distance.

Common mistakes

Keep in mind: Real wave speeds vary with rock type and depth, and waves bend as they travel, so the constant-speed formula is a teaching approximation. Official locations come from many stations and velocity models.

Frequently asked questions

Why does the S wave not travel through liquid?

Liquids have no shear stiffness, so shear waves cannot propagate. This is how the liquid outer core was discovered.

How do earthquake early warning systems use this?

They detect the P wave near the source and send a warning that can arrive before the stronger S waves reach more distant areas.

Is 8 km per second a good rule of thumb?

Many textbooks use about 8 km per second of S−P time for shallow local earthquakes; the exact factor depends on the speeds you assume.

Sources: S. Stein and M. Wysession, An Introduction to Seismology, Earthquakes, and Earth Structure, Blackwell, 2003 · P. M. Shearer, Introduction to Seismology, 2nd ed., Cambridge University Press, 2009

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →