Earthquake Magnitude and Distance Calculator
Enter the S−P interval, wave speeds, seismic moment, magnitudes, recurrence parameters and aftershock constants to get distance, Mw, energy, recurrence and aftershock counts.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Enter S−P time
From a seismogram.
- 2Enter seismic moment
For moment magnitude.
- 3Enter magnitudes
For energy and comparison.
- 4Enter recurrence parameters
a and b values.
- 5Enter aftershock constants
K, c, p and time window.
About this tool
Seismologists locate earthquakes, measure their size and estimate how often they recur with a few classic relationships. The delay between P and S waves gives the distance to the epicentre; seismic moment gives the moment magnitude; energy grows about 32 times per magnitude unit; and aftershocks decay over time following Omori's law. This calculator brings these together for learning and quick estimates.
Who this is for
Earth science students, teachers, emergency planners and anyone interpreting earthquake reports.
Distance from S−P time
P waves travel faster than S waves. The delay grows with distance: d = Δt × v_p v_s / (v_p − v_s). With typical crustal speeds (6.0 and 3.5 km/s), each second of S−P time means about 8.4 km. Three stations' distances locate the epicentre by triangulation.
Moment magnitude
The moment magnitude M_w, used for large earthquakes worldwide, comes from the seismic moment M₀ = μ A D (rigidity × fault area × slip): M_w = (2/3)(log₁₀ M₀ − 9.1) with M₀ in newton-metres (IASPEI standard).
Energy
log₁₀ E = 1.5 M + 4.8 (joules). Each magnitude unit releases about 32 times more energy; two units about 1000 times. Ground-motion amplitude on a seismogram grows only 10 times per unit.
Frequency of earthquakes
The Gutenberg-Richter law log₁₀ N = a − b M gives the yearly number N of earthquakes of magnitude M or more in a region; b is usually close to 1, so there are about ten times more magnitude-5 than magnitude-6 events. The recurrence interval is 1/N.
Aftershocks
After a large earthquake, aftershocks decay roughly as n(t) = K/(c + t)^p (Omori-Utsu law), with p usually between 0.9 and 1.5. The calculator integrates the rate between two times. Båth's law states that the largest aftershock is typically 1.2 magnitudes smaller than the main shock.
Magnitude and intensity
Magnitude measures the size of the earthquake; intensity (Modified Mercalli or EMS-98) measures shaking at a place, which depends on distance and local ground.
Good practice
Regional seismic velocities differ; use local values when known. Recurrence estimates need long, complete catalogues.
Local magnitudes saturate for very large events, which is why Mw is used.
Depth matters
Shallow earthquakes cause stronger shaking at the surface than deep ones of the same magnitude.
Worked example
An S−P time of 30 s places the epicentre about 252 km away. A seismic moment of 1.1 × 10²¹ N·m corresponds to M_w 7.96. A magnitude 6.0 earthquake releases 6.3 × 10¹³ J (about 15 kilotons of TNT); a 7.0 releases 31.6 times more. With a = 4 and b = 1, magnitude 6 or larger occurs about once per century.
Limits
Simplified relations for teaching and quick estimates; not an official seismic hazard assessment or warning.
Worked example
An S−P time of 30 seconds means an epicentre about 252 km away.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: S−P epicentral distance d = Δt·v_p·v_s/(v_p − v_s) with crustal v_p ≈ 6.0 and v_s ≈ 3.5 km/s; moment magnitude M_w = (2/3)(log₁₀M₀ − 9.1) (IASPEI standard, M₀ in N·m); radiated energy log₁₀E = 1.5M + 4.8 (Gutenberg-Richter); frequency-magnitude log₁₀N = a − bM; Omori-Utsu aftershock rate n(t) = K/(c + t)^p; Båth's law ΔM ≈ 1.2
Frequently asked questions
How do I find the distance to an earthquake?
Multiply the S−P time by about 8.4 km per second.
How much more energy does each magnitude release?
About 32 times per unit.
What is moment magnitude?
A magnitude based on fault area, slip and rock rigidity.
What is the Gutenberg-Richter law?
log₁₀N = a − bM for the number of earthquakes above a magnitude.
How big is the largest aftershock?
Typically about 1.2 magnitudes smaller (Båth's law).
Is my data stored?
No. Everything is calculated in your browser.
