Skip to main content
Calcimator

Earthquake Distance Calculator

Epicenter distance from P-wave and S-wave arrival times.

About this calculator

Earthquakes generate two body waves that travel at different speeds through the crust — the faster P-wave (compressional) and the slower S-wave (shear) — and the gap between their arrival times at a seismograph, the S-P interval, is a direct proxy for distance to the epicenter. This calculator uses distance = (Vp × Vs / (Vp − Vs)) × Δt, which falls out of the fact that both waves start at the same instant but arrive at different times because they travel at different constant speeds over the same distance. The defaults, 6.0 km/s for P-waves and 3.5 km/s for S-waves, are typical continental crust averages, but actual velocities vary with rock type and depth, so a single-station reading only gives a distance, not a direction — real epicenter location requires combining readings from at least three stations and triangulating where the distance circles intersect.

The calculator enforces that the P-wave velocity must exceed the S-wave velocity by at least a small margin, since P-waves are always faster in any real medium; if you enter values that violate this, they're silently adjusted to remain physically valid. It also back-calculates individual P- and S-wave travel times at the computed distance and re-derives the S-P interval from them as a consistency check — if your inputs are self-consistent, this "verified" value should equal what you originally entered. The most common misunderstanding is treating the output as a compass bearing rather than a radius: with one seismograph, the epicenter could be anywhere on a circle at that distance.

Inputs

Results

Distance to epicenter (km)

252

Distance (miles)156.59
Distance (degrees)2.27
P-wave travel time (s)42
S-wave travel time (s)72
Verified S-P interval (s)30
How to Use This Calculator
  1. Read the seismogram and measure the S-P time interval — the gap in seconds between the first P-wave and first S-wave arrival.
  2. Enter the P-wave velocity (km/s) for the local crust; the default 6.0 km/s is a typical continental average.
  3. Enter the S-wave velocity (km/s); 3.5 km/s is standard for continental crust.
  4. The calculator returns the Distance to epicenter (km). Use readings from three stations to triangulate the exact epicenter location.
  5. Check the Verified S-P interval output — it should match your measured interval, confirming consistent inputs.

How the result changes with S-wave velocity (km/s)

S-wave velocity (km/s)Distance to epicenter (km)
1.7574.12
2.63140.47
5.251,260
819,440

What each input means

S-P time interval (seconds)
Time difference between S-wave and P-wave arrivals on the seismogram.
P-wave velocity (km/s)
Compressional wave speed. Typical crustal average is ~6.0 km/s.
S-wave velocity (km/s)
Shear wave speed. Typical crustal average is ~3.5 km/s.

What each result means

Distance to epicenter (km)
Estimated distance from the seismograph station to the earthquake epicenter.
Distance (miles)
Epicentral distance converted to miles.
Distance (degrees)
Epicentral distance in degrees of arc (~111.19 km per degree).
P-wave travel time (s)
Time for the P-wave to travel from the epicenter at the given velocity.
S-wave travel time (s)
Time for the S-wave to travel from the epicenter at the given velocity.
Verified S-P interval (s)
Cross-check: S travel time minus P travel time (should match your input).

How this is calculated

Worked example, using the default values

  1. Identify Input Parameters
    S-P time interval (seconds) = 30, P-wave velocity (km/s) = 6, S-wave velocity (km/s) = 3.5 = 3 input(s) provided
  2. Calculate Distance to epicenter
    Distance to epicenter = (vp * vs / (vp - vs)) * spInterval
    252 = 252
  3. Calculate Distance
    Distance = distanceKm * 0.621371
    156.59 = 156.59
  4. Calculate Distance
    Distance = distanceKm / 111.19
    2.266 = 2.266

Engine last updated . Checked against 1 independently-derived test — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why can't this calculator tell me exactly where the earthquake happened?

A single S-P interval only gives you a distance from one seismograph station, which corresponds to a circle of possible locations, not a single point. Pinpointing the epicenter requires the same calculation from at least three stations and finding where their distance circles intersect, a process called triangulation.

What happens if I enter an S-wave velocity that's faster than the P-wave velocity?

The calculator enforces the physical requirement that P-waves always travel faster than S-waves in any real medium by silently adjusting your inputs so Vp exceeds Vs by at least 0.1 km/s. If your entered values violate this, the distance calculation still runs, but on the corrected velocities rather than exactly what you typed.

What is the Verified S-P interval output actually checking?

After computing the epicentral distance, the calculator works backward to find how long the P-wave and S-wave would each take to travel that distance at your entered velocities, then subtracts those travel times. If your inputs are internally consistent, this recomputed value should equal the S-P interval you originally entered — a mismatch would only appear if the velocity clamping described above kicked in.

Why do the default velocities matter so much to the result?

Distance is directly proportional to (Vp × Vs)/(Vp − Vs), so changing either velocity shifts the answer substantially even for the same measured S-P interval. The defaults of 6.0 km/s and 3.5 km/s represent typical continental crust, but actual local velocities vary with rock type and depth, which is one reason regional seismic networks calibrate velocity models for their specific area.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Science & Physics.