Earthquake calculator

Epicenter Distance Calculator (S−P Interval)

The distance from a seismograph to an earthquake equals the S−P interval times Vp × Vs ÷ (Vp − Vs), where Vp and Vs are the P-wave and S-wave speeds. With typical crustal speeds of 6.0 km/s and 3.5 km/s, every second of lag between the two waves adds about 8.4 km (5.2 mi). Enter the lag or the two arrival times and the calculator does the rest.

Epicenter Distance Calculator

Distance from the station to the epicenter84 km · 52.2 miP wave traveled 14 s · S wave traveled 24 s
  1. Distance per second of lag: Vp × Vs ÷ (Vp − Vs) = 6 × 3.5 ÷ (6 − 3.5) = 8.4 km/s
  2. Distance: d = Δt × 8.4 = 10 s × 8.4 km/s = 84 km
  3. In miles: 84 km ÷ 1.609344 = 52.2 mi
  4. P-wave travel time: d ÷ Vp = 84 ÷ 6 = 14 s; S-wave travel time: d ÷ Vs = 24 s

Default speeds of 6.0 km/s (P) and 3.5 km/s (S) are typical values for the upper crust, which give 8.4 km of distance per second of S−P lag. The result is the distance from one station to the epicenter: draw a circle with this radius around the station, and the circles from three stations cross at the epicenter.

Remote seismic monitoring station with a small concrete vault, solar panel and antenna mast on a grassy hillside at dawn
Remote stations like this one record the P and S waves whose time gap reveals how far away an earthquake was.

At a Glance

To find how far away an earthquake was, subtract the P-wave arrival time from the S-wave arrival time and multiply that S−P interval by Vp × Vs ÷ (Vp − Vs). With typical crustal speeds of 6.0 km/s for P waves and 3.5 km/s for S waves, the factor is 8.4 km per second, so a 10-second lag means about 84 km. Distances from three stations locate the epicenter by triangulation.

Formula
d = Δt × Vp·Vs ÷ (Vp − Vs)
Default speeds
Vp 6.0 km/s, Vs 3.5 km/s (typical crust)
Rule of thumb
About 8.4 km (5.2 mi) per second of S−P lag
Inputs
S−P interval, or P and S arrival times
Outputs
Distance in km and mi, travel times, origin time
Method source
USGS Earthquake Hazards Program
On this page
  1. Epicenter distance calculator: S−P interval to distance
  2. How to Use the Epicenter Distance Calculator
  3. What Is the S−P Interval?
  4. What Is the Epicenter Distance Formula?
  5. How to Calculate the Distance to an Earthquake
  6. How Do You Find the Epicenter of an Earthquake?
  7. S−P Interval to Distance Chart
  8. Why Do the Wave Speeds Matter?
  9. When Is the S−P Method Less Accurate?
  10. How Accurate Is This Epicenter Calculator?
  11. Related Earthquake Calculators and Pages
  12. Common Misconceptions
  13. Key Facts
  14. FAQ

How to Use the Epicenter Distance Calculator

The calculator has two input modes. S−P interval takes the lag in seconds between the first P wave and the first S wave on a seismogram. P and S arrival times takes the two clock readings, such as 14:02:08 and 14:02:18, subtracts them, and also estimates the moment the earthquake started.

Both modes use a P-wave speed of 6.0 km/s and an S-wave speed of 3.5 km/s unless you change them. These are round values typical of the upper crust, the same ones we use on our P waves and S waves page. The answer shows the distance in kilometers and miles, the travel time of each wave and every step of the math.

One station gives one distance, not a direction. To pin down the epicenter, repeat the calculation for three stations and draw three circles, as explained further down this page.

What Is the S−P Interval?

An earthquake sends out several kinds of seismic waves at the same instant. The P wave (primary wave) pushes and pulls the rock along its path and is the fastest, so it reaches a seismograph first. The S wave (secondary wave) shakes the rock sideways and travels at a little more than half the P-wave speed, so it always arrives later.

The gap between the two arrivals is the S−P interval, also called the S−P time or lag. The U.S. Geological Survey (USGS) compares it to lightning and thunder: light reaches you before sound, and the longer the wait for the thunder, the farther away the storm. In the same way, a short S−P interval means a nearby earthquake and a long one means a distant earthquake.

The interval grows by the same amount for every extra kilometer, because both waves cover the same path at steady speeds. That steady growth is what turns a time measurement into a distance.

What Is the Epicenter Distance Formula?

The epicenter distance formula is d = Δt × Vp × Vs ÷ (Vp − Vs). Here d is the distance from the station to the earthquake in kilometers, Δt is the S−P interval in seconds, and Vp and Vs are the P-wave and S-wave speeds in kilometers per second.

It comes straight from the travel times. The P wave needs d ÷ Vp seconds and the S wave needs d ÷ Vs seconds, so the lag is Δt = d ÷ Vs − d ÷ Vp. Factoring out d and solving gives the formula above. With Vp = 6.0 km/s and Vs = 3.5 km/s, the fraction 6.0 × 3.5 ÷ 2.5 equals 8.4, which is where the rule of thumb of 8.4 km per second of lag comes from.

The calculator uses this single relation. It comes from the fact that both waves leave the focus together, so the S−P interval is the difference between the S-wave travel time and the P-wave travel time over the same distance.

d=ΔtVpVsVp−Vs
What each symbol means
SymbolQuantitySI unit
ddistance from the seismograph station to the earthquakekilometers (km)
ΔtS−P interval: S-wave arrival time minus P-wave arrival timeseconds (s)
VpP-wave speed (typical crustal value 6.0 km/s)kilometers per second (km/s)
VsS-wave speed (typical crustal value 3.5 km/s)kilometers per second (km/s)

Rearranged to find another variable:

Δt=dVp−VsVpVs

Valid for: both waves leave the focus at the same moment and travel at constant speeds along the same path; a good estimate for nearby earthquakes, while distant ones are read from standard travel-time tables and curves (USGS); with the typical crustal speeds 6.0 and 3.5 km/s each second of S−P lag equals 8.4 km.

How to Calculate the Distance to an Earthquake

Four steps work for any seismogram:

  1. Find the first P-wave arrival and the first S-wave arrival on the record and read their times.
  2. Subtract to get the S−P interval in seconds.
  3. Work out the distance per second of lag, Vp × Vs ÷ (Vp − Vs). For 6.0 and 3.5 km/s it is 8.4 km/s.
  4. Multiply the interval by that factor to get the distance in kilometers. Divide by 1.609344 for miles.

A quick mental check: 10 seconds of lag is about 84 km, and 1 minute is about 504 km with the default speeds. The example below follows the four steps.

Example 1 Distance from a 10-second S−P interval

A seismogram shows the S wave arriving 10 seconds after the P wave. Using the typical crustal speeds of 6.0 km/s for P waves and 3.5 km/s for S waves, how far away was the earthquake?

  1. Given:
    • S−P interval: Δt=10 s
    • P-wave speed: Vp=6 km/s
    • S-wave speed: Vs=3.5 km/s
  2. Formula: d=ΔtVpVsVp−Vs
  3. Substitute: Δt=10 s,Vp=6 km/s,Vs=3.5 km/s
  4. Answer: d=84 km

6.0 × 3.5 ÷ 2.5 = 8.4 km for every second of lag, so 10 seconds gives 84 km, or about 52.2 miles. The P wave needed 14 seconds for the trip and the S wave 24 seconds.

Bar chart: S−P intervals of 5, 10, 20, 30 and 60 seconds give distances of 42, 84, 168, 252 and 504 km
With P and S speeds of 6.0 and 3.5 km/s, every second of lag adds the same 8.4 km, so the bars grow in step with the interval.

How Do You Find the Epicenter of an Earthquake?

A single station tells you how far away the earthquake was but not in which direction, so the earthquake could lie anywhere on a circle around that station. The USGS describes the fix as triangulation: draw a circle around each of three seismograph stations with a radius equal to its distance, and the point where the three circles cross is the epicenter. Our page on locating an earthquake epicenter walks through the map work, and the epicenter triangulation tool draws the circles for you.

On a globe, the USGS explains that the circles are great-circle arcs drawn with each station distance as the radius, and that all the arcs should meet at a common point. In practice they rarely meet perfectly, because of reading errors and real differences in rock speed, so seismologists use many stations and find the best-fitting point.

Arrival times also give the origin time, the moment the fault began to slip. Subtract the P-wave travel time from the P-wave arrival time, as the calculator does in arrival-time mode. The example below uses two clock readings.

Example 2 Distance from two arrival times

At one station the P wave arrives at 14:02:08 and the S wave at 14:02:33. With Vp = 6.0 km/s and Vs = 3.5 km/s, what radius should the circle around this station have?

  1. Given:
    • S−P interval (14:02:33 − 14:02:08): Δt=25 s
    • P-wave speed: Vp=6 km/s
    • S-wave speed: Vs=3.5 km/s
  2. Formula: d=ΔtVpVsVp−Vs
  3. Substitute: Δt=25 s,Vp=6 km/s,Vs=3.5 km/s
  4. Answer: d=210 km

The S−P interval is 25 seconds, so the circle has a radius of 210 km (about 130.5 miles). The P wave took 210 ÷ 6.0 = 35 seconds, which puts the origin time at about 14:01:33.

S−P Interval to Distance Chart

The table lists the distance for common S−P intervals with the default speeds, plus the travel time of each wave. Use it to estimate an answer before you open the calculator, or to check a classroom exercise.

Notice that the distance grows in a straight line with the interval: doubling the lag doubles the distance. Real travel-time curves bend at larger distances because the waves dip into faster rock below the crust, so the last rows of the table are rough estimates.

Distance to the earthquake for common S−P intervals (Vp 6.0 km/s, Vs 3.5 km/s)
S−P intervalDistance (km)Distance (mi)P-wave travel timeS-wave travel time
1 s8.45.21.4 s2.4 s
2 s16.810.42.8 s4.8 s
5 s4226.17 s12 s
10 s8452.214 s24 s
15 s12678.321 s36 s
20 s168104.428 s48 s
30 s252156.642 s72 s
45 s378234.963 s108 s
60 s504313.284 s144 s
90 s756469.8126 s216 s
120 s1,008626.3168 s288 s
Source: Computed by us with d = Δt × Vp × Vs ÷ (Vp − Vs) and typical crustal speeds of 6.0 and 3.5 km/s, consistent with the USGS description of crustal P speeds under 6 km/s and S speeds barely more than half of that (Seismographs: Keeping Track of Earthquakes, retrieved 2026-10); miles = km ÷ 1.609344

Why Do the Wave Speeds Matter?

The factor Vp × Vs ÷ (Vp − Vs) is sensitive to the speeds you choose, especially the S-wave speed. The USGS notes that P waves in the crust usually travel at less than 6 km/s and that S waves move at barely more than half the P-wave speed, so 6.0 and 3.5 km/s are a sensible round pair, not a universal constant.

The table below changes one speed at a time by 0.5 km/s. Raising the S-wave speed from 3.5 to 4.0 km/s pushes the factor from 8.4 to 12 km per second, while raising the P-wave speed to 6.5 km/s lowers it to about 7.58. That is why seismic networks rely on carefully measured travel-time tables instead of one rule of thumb.

Example 3 Same method with different wave speeds

A lab exercise uses a P-wave speed of 5.0 km/s and an S-wave speed of 3.0 km/s. The S−P interval is 20 seconds. How far away was the earthquake?

  1. Given:
    • S−P interval: Δt=20 s
    • P-wave speed: Vp=5 km/s
    • S-wave speed: Vs=3 km/s
  2. Formula: d=ΔtVpVsVp−Vs
  3. Substitute: Δt=20 s,Vp=5 km/s,Vs=3 km/s
  4. Answer: d=150 km

Here each second of lag is worth 5 × 3 ÷ 2 = 7.5 km, so 20 seconds gives 150 km. With the default speeds the same lag would give 168 km, which shows why the speeds you choose matter.

How the chosen wave speeds change the distance per second of S−P lag
P-wave speedS-wave speedDistance per second of lagDistance for a 10 s lag
6.0 km/s3.5 km/s8.4 km84 km (52.2 mi)
5.5 km/s3.5 km/s9.63 km96.3 km (59.8 mi)
6.5 km/s3.5 km/s7.58 km75.8 km (47.1 mi)
6.0 km/s3.0 km/s6.0 km60 km (37.3 mi)
6.0 km/s4.0 km/s12.0 km120 km (74.6 mi)
Source: Computed by us with Vp × Vs ÷ (Vp − Vs); the first row uses the typical crustal speeds, the other rows change one speed by 0.5 km/s to show sensitivity · Retrieved October 2026

When Is the S−P Method Less Accurate?

The simple formula assumes both waves travel in straight lines at constant speeds. That works best for nearby, shallow earthquakes. According to the USGS, the standard way to locate an earthquake is to read each station distance from travel-time tables and travel-time curves, and its example curves cover distances of 0 to 1,300 km. Beyond about 1,000 km our calculator adds a note that the answer is rough.

Strictly, the lag measures the distance to the focus, the point underground where the rupture began, not to the epicenter on the surface. For a shallow earthquake the two distances are almost the same. For a deep one, such as a shock 700 km down, the USGS says travel-time tables made for that depth are needed. Our page on the seismic shadow zone explains why S waves never reach stations on the far side of the planet.

How Accurate Is This Epicenter Calculator?

The math is exact for the speeds you enter, so the answer is only as good as the speeds and the arrival times you read. We checked the calculator against three hand calculations and against the arrival-time table on our P and S wave page, which uses the same round speeds, and every case matches to the precision shown.

Reading the S-wave arrival is the hardest part for students, because it often begins inside the P-wave coda (the tail of P-wave shaking). An error of 1 second in Δt shifts the distance by 8.4 km with the default speeds.

Our epicenter distance calculator checked against hand calculations and our P and S wave table
Test caseExpectedCalculator result
S−P interval of 10 s, Vp 6.0 and Vs 3.5 km/s84 km84 km (52.2 mi)
Earthquake 50 km away (our P and S wave table: gap 6.0 s, 5.952 s unrounded)50 km50 km (31.1 mi)
S−P interval of 20 s with Vp 5.0 and Vs 3.0 km/s150 km150 km (93.2 mi)
P at 14:02:08.0 and S at 14:02:18.0 (origin time)84 km, origin 14:01:54.084 km, origin 14:01:54.0
Source: Hand calculations by us; 50 km case from the arrival-time table on earthquakes/p-waves-and-s-waves (computed with 6 and 3.5 km/s); calculator run 2026-10-16 · Retrieved October 2026

Common Misconceptions

Myth: One seismograph can show exactly where an earthquake happened.

Science: One station gives only a distance, so the earthquake could be anywhere on a circle around it. Circles from at least three stations are needed to fix the epicenter.

Myth: The S−P interval depends on how strong the earthquake was.

Science: The lag depends on distance and wave speeds, not on magnitude. A small earthquake and a large one at the same distance from a station show the same lag.

Myth: 8.4 km per second is a law of nature.

Science: It is a rule of thumb for P and S speeds of 6.0 and 3.5 km/s. Different rock, depths and distances give different factors, which is why seismologists use travel-time tables.

Key Facts

  • The distance to an earthquake is d = Δt × Vp × Vs ÷ (Vp − Vs), where Δt is the S−P interval.
  • With typical crustal speeds of 6.0 km/s (P) and 3.5 km/s (S), each second of S−P lag equals 8.4 km, about 5.2 miles.
  • P waves always reach a seismograph before S waves because they travel faster.
  • The USGS says S waves travel at barely more than half the P-wave speed.
  • One station gives a distance only; three stations locate the epicenter by triangulation.
  • The origin time equals the P-wave arrival time minus the P-wave travel time.
  • A 1-second error in the S−P interval changes the distance by 8.4 km with the default speeds.
  • For distant or deep earthquakes, seismologists use travel-time tables instead of a single rule of thumb.
Did you know? A single seismogram can tell how far away an earthquake was but not in which direction: the same S−P interval fits every point on a circle around the station, which is why at least three stations are needed.

Frequently Asked Questions

How do you calculate the distance to an earthquake epicenter?

Subtract the P-wave arrival time from the S-wave arrival time to get the S−P interval, then multiply by Vp × Vs ÷ (Vp − Vs). With typical crustal speeds of 6.0 and 3.5 km/s that factor is 8.4, so an interval of 15 seconds means the earthquake was about 126 km (78 miles) away.

What is the epicenter distance formula?

The formula is d = Δt × Vp × Vs ÷ (Vp − Vs), where d is the distance in kilometers, Δt is the S−P interval in seconds, and Vp and Vs are the P-wave and S-wave speeds in km/s. It comes from setting the lag equal to d ÷ Vs minus d ÷ Vp and solving for d.

How many kilometers is one second of S−P time?

About 8.4 km (5.2 miles) when you use 6.0 km/s for P waves and 3.5 km/s for S waves, typical speeds in the upper crust. Other speeds give other factors: 5.0 and 3.0 km/s give 7.5 km per second. Always use the speeds stated in your exercise or data set.

How do you find the epicenter of an earthquake with three stations?

Work out the distance from each of three seismograph stations using its S−P interval. On a map, draw a circle around each station with that distance as the radius. The point where all three circles cross is the epicenter. This method is called triangulation.

Why are three seismographs needed to locate an earthquake?

One distance puts the earthquake somewhere on a circle. Two circles usually cross at two points, so the location is still uncertain. A third circle picks out one of those points, giving a single epicenter. Real networks use many more stations to reduce errors.

How do you find the origin time of an earthquake?

First find the distance from the S−P interval. Divide that distance by the P-wave speed to get how long the P wave traveled, and subtract that travel time from the P-wave arrival time. For a 10-second lag the P wave took 14 seconds, so the earthquake began 14 seconds before the P wave arrived.

Is the S−P method accurate for distant earthquakes?

It becomes rough. Over long distances the waves curve down through deeper, faster rock, so their speeds are not constant. The USGS locates earthquakes with standard travel-time tables and curves, and deep earthquakes need tables made for their depth. Our calculator flags answers beyond about 1,000 km.

Does the S−P interval give the distance to the epicenter or the focus?

Strictly, to the focus (hypocenter), the underground point where the rupture began, because that is where the waves start. For shallow earthquakes the focus is close to the surface, so the distance to the epicenter is almost the same.

Magma Tribune Editorial Team
Written by our editors and checked against USGS, NOAA, NASA and Smithsonian Global Volcanism Program data. Every number in a table comes from a cited dataset, never from memory. Read our editorial policy. Last updated October 2026.