Earthquake Early Warning: Seconds Before Shaking
Calculate P- and S-wave arrivals, warning seconds and the blind zone. Animate wavefronts, infer distance from S−P and explore a rough shaking estimate. Educational use only.
Explore how many seconds of earthquake early warning a location might receive in a simplified scenario. This tool is for engineers, students and anyone comparing detection delays with the arrival of seismic waves. It uses distances and assumptions that you enter; it has no connection to live earthquake feeds and does not issue warnings.
Set up a scenario
Enter the surface distance from the epicentre to your city and the hypocentral depth. Then set the distance to the station that enables detection, the processing time after its P-wave arrival, and the time needed to deliver the alert. The defaults describe a hypothetical Mw 7.2 event, 100 km from the city. They are teaching assumptions, not measured performance of a warning network.
P waves travel faster than S waves. The model computes both arrival times from the same straight source-to-city path. The alert has a different path: the P wave must first reach the triggering station, after which processing and delivery consume time. JMA illustrates this principle using approximate speeds of 7 and 4 km/s. JMA EEW explanation (https://www.jma.go.jp/jma/en/Activities/jishintsunami/jishintsunami_low4.pdf).
Read the warning time and blind zone
The main result is the positive time between alert receipt and modeled S-wave arrival. The signed margin also shows when the alert would be late. All arrival times are measured from rupture onset. A positive result assumes that the network actually detects the event, issues an alert and delivers it through the chosen channel.
Press play to follow expanding P and S wavefronts on the local plan-view schematic. The gray disk is the blind zone: locations where the modeled S wave arrives by the alert-receipt time. Wavefronts disappear when they leave the circular map window. The distance charts show why a nearby city may have little warning even when a more distant city has tens of seconds.
Use a recorded S−P interval
The alternative entry mode turns this into a P wave S wave arrival time calculator for seismograms. Enter the measured interval and an assumed depth to infer hypocentral and epicentral distance using the Omori relation. One station cannot determine direction; locating an epicentre requires additional observations.
Interpret shaking cautiously
Si–Midorikawa estimates median peak ground velocity on reference ground, followed by a selectable site factor and a rough continuous JMA intensity proxy. Its distance measure is closest distance to the rupture. Enter that value when known; the default hypocentral-distance proxy can underestimate shaking near long faults. Si and Midorikawa (1999) (https://doi.org/10.3130/aijs.64.63_2).
The tool does not reproduce JMA, SASMEX or ShakeAlert algorithms, thresholds or coverage. Layered Earth structure, evolving rupture, strong P motion and local soil response can change both timing and shaking. Peak shaking may occur later than the S onset. Use official warnings and local guidance for real events; this calculator supports learning and scenario comparison. Allen and Melgar (2019) (https://doi.org/10.1146/annurev-earth-053018-060457).
How it is calculated
Timing. With epicentral distance D and source depth h, the straight path is R = √(D² + h²). City arrivals are tP = R/vP and tS = R/vS. Detection uses a separate source-to-triggering-station path. Alert receipt is station P arrival + processing + delivery. The signed warning margin is tS − tAlert; available advance warning is max(margin, 0). These times are conditional on an alert being issued. S onset is a timing proxy; it is not a forecast of peak or damaging shaking.
Blind zone and animation. The surface radius reached by S at alert receipt is √max[(vS tAlert)² − h², 0]. With a sufficiently deep source, a zero radius can mean there is no blind zone even above the hypocentre. P and S animation circles are intersections of spherical fronts with a flat surface, r(t) = √max[(vt)² − h², 0], not circles expanding at surface speed v from time zero. Their radius is zero until the front reaches the surface. The gray disk is fixed at the alert-receipt time. The circular window is a schematic map, with no geographic direction or basemap.
Omori inversion. The same straight-path approximation gives Δt = R(1/vS − 1/vP), hence R = vP vS Δt/(vP − vS). Epicentral distance is √(R² − h²); the measured interval must be at least h(1/vS − 1/vP). One interval gives a radius, not a unique epicentre.
Shaking. Si and Midorikawa (1999), attached source s2, printed p. 67 (file page 5), Table 6, constrained closest-fault-distance regression:
log10[PGV600/(cm/s)] = 0.58 Mw + 0.0038 h + d − 1.29 − log10[X + 0.0028 × 10^(0.5 Mw)] − 0.002 X,
where h and X are numerical distances in km and d is 0, −0.02 or +0.12 for crustal, interface or intraslab events. PGV600 refers to stiff ground with S-wave velocity about 600 m/s. Multiply by the selected site factor to estimate site PGV. The 1.41 factor for 400 m/s engineering ground is documented by GEM's implementation of the NIED method. Reference cases use GEM's published alternative-implementation fixtures.
Intensity proxy. I = 2.68 + 1.72 log10[site PGV/(cm/s)] is the Midorikawa–Fujimoto–Muramatsu (1999) correlation, also reproduced in Tajima and Hayashida (2018), Appendix Eq. 7. The continuous value is shown only as an interpretation within I = 4–7. It does not assign an official JMA intensity class or reproduce the filtered, duration-dependent instrumental-intensity calculation.
Source discrepancy. Tajima and Hayashida, Appendix Eq. 4, prints −0.0038D. The original Si–Midorikawa Table 6 has +0.0038; the original abstract describes stronger motion for deeper events, and GEM's independent implementation agrees. This calculator retains the positive coefficient. No published values were fitted.
Assumptions
- Educational hypothetical scenario, not a warning service. No live input, location lookup or connection to JMA, SASMEX or ShakeAlert.
- Homogeneous isotropic medium, straight rays, flat surface and a point source for travel time. P speed exceeds S speed. JMA's introductory 7/4 km/s values are defaults, not a regional velocity model.
- The triggering-station distance represents the station that completes detection. Processing includes confirmation, signal accumulation and any additional station/network delay. A single alert-receipt time is used across the map.
- Magnitude affects PGV only. No amplitude threshold, false-alarm probability, missed detection, rupture evolution or network coverage model decides whether an alert is sent.
- Ground-motion distance is the closest 3D distance to the rupture. If unknown, hypocentral distance is used explicitly as a point-source proxy; this can underestimate near-fault shaking for extended ruptures.
- Site factors are PGV ratios relative to 600 m/s reference ground. The 400 m/s preset uses ×1.41; a custom factor is a user assumption.
- Default delays of 2 s processing and 2 s delivery are illustrative. Animation time changes only the wavefront view.
- Physical fields and result cards use the viewer's metric/US conversion. Wave speeds are entered in m/s (or ft/s in US mode). PGV cards use m/s (or ft/s); the regression steps explicitly retain cm/s. The schematic's written blind-radius label remains in km.
- Alert delivery ends when the user/device receives the alert. Human reaction and protective-action time are excluded from alert receipt, warning margin and blind-zone calculations.
Where it applies
Use for teaching and comparing scenarios, never for real-time protective decisions, structural design or equipment shutdown control. Follow official warnings and local emergency guidance.
The Si–Midorikawa database comprises Japanese events with Mw about 5.8–8.3 and depths 6–120 km (s2, file page 1). Inputs permit timing studies at 0–150 km depth and 0–500 km epicentral distance; the tool flags empirical depth extrapolation and paths over 300 km. The latter is a caution threshold chosen for this simple straight-ray timing model, not its published calibration limit. Layering, refraction and Earth curvature can cause substantial travel-time errors. Different regions require regional ground-motion and travel-time models.
Ground-motion distance envelope. Si and Midorikawa (1999), attached s2, file page 3 / printed p. 65, selected records within 100 km for Mw ≤ 6.2, 150 km for Mw 6.3–6.5, 200 km for Mw 6.6 to below 7.0, and 300 km for Mw ≥ 7.0. The calculator applies the transitions at Mw 6.3, 6.6 and 7.0; intermediate entered magnitudes below a transition retain the lower distance limit. It compares the actual ground-motion distance X_fault with that envelope, using the hypocentral proxy when selected. An exceedance separately flags PGV and the intensity proxy as distance extrapolations; results remain available for educational exploration. This published data-selection envelope is distinct from the 300 km surface-distance caution used for straight-ray timing.
PGV is a median empirical estimate, not a guaranteed amplitude. Original Table 8 (s2, file page 5) gives log10 PGV scatter of about 0.23, roughly a factor of 1.7 for one standard deviation, before uncertainty in site factors and source geometry. This is not a complete confidence interval. The JMA intensity correlation adds its own scatter (about ±0.21 in the published relation); do not interpret displayed decimals as measurement accuracy. Outside I = 4–7, the interpretation card is withheld.
No basin resonance, surface-wave dispersion, nonlinear soil response, liquefaction, duration, frequency content, aftershocks, tsunami hazard or building response is calculated. P-wave motion can already be strong; peak motion can occur well after S onset. Real warning availability also depends on evolving event estimates, alert thresholds and communications reliability.
References
- JMA, Earthquake Early Warnings: principle, wave speeds and limitations. https://www.jma.go.jp/jma/en/Activities/jishintsunami/jishintsunami_low4.pdf (attached s1).
- Si, H. and Midorikawa, S. (1999), New attenuation relationships for peak ground acceleration and velocity considering effects of fault type and site condition, AIJ 64(523), 63–70. https://doi.org/10.3130/aijs.64.63_2 (attached s2, especially file pp. 1, 3 and 5).
- Midorikawa, S., Fujimoto, K. and Muramatsu, I. (1999), Correlation of New J.M.A. Instrumental Seismic Intensity with Former J.M.A. Seismic Intensity and Ground Motion Parameters. https://doi.org/10.11314/jisss.1.51
- Tajima, F. and Hayashida, T. (2018), Earthquake early warning: what does ‘seconds before a strong hit’ mean? Fig. 1 and Appendix. https://doi.org/10.1186/s40645-018-0221-6 (attached s3).
- Allen, R. M. and Melgar, D. (2019), Earthquake Early Warning: Advances, Scientific Challenges, and Societal Needs. https://doi.org/10.1146/annurev-earth-053018-060457 (attached s4).
- GEM Foundation, OpenQuake, Si–Midorikawa implementation and 600-to-400 m/s adjustment. https://docs.openquake.org/oq-engine/latest/manual/_modules/openquake/hazardlib/gsim/si_midorikawa_1999.html
- GEM OpenQuake independent-implementation PGV reference data (attached s5 and s6): https://raw.githubusercontent.com/gem/oq-engine/master/openquake/hazardlib/tests/gsim/data/SM99/SM99ASC_MEAN.csv and https://raw.githubusercontent.com/gem/oq-engine/master/openquake/hazardlib/tests/gsim/data/SM99/SM99SInter_MEAN.csv . Provenance: https://github.com/gem/oq-engine/blob/master/openquake/hazardlib/tests/gsim/si_midorikawa_1999_test.py
Inputs
| Input | Symbol | Unit | Default |
|---|---|---|---|
| Locate the city Use a hypothetical scenario or a recorded earthquake. This tool receives no live earthquake data. | entry | Enter epicentral distance | |
| City–epicentre surface distance Horizontal distance to the epicentre, not distance to the nearest edge of a long fault. | D_input | km | 100 |
| Measured S−P interval at the city Time between the first P and S arrivals in a recorded seismogram. One interval gives distance, not direction or a unique epicentre. | lag_input | s | 10 |
| Hypocentral depth Depth below the surface. The straight-ray timing model ignores layering and refraction. | h_src | km | 10 |
| Moment magnitude Mw Used only for ground-motion amplitude. It does not change travel speed or decide whether an operational service would issue an alert. | M_w | 7.2 | |
| Earthquake type | tectonic | Shallow crustal | |
| Distance for the ground-motion equation Si–Midorikawa requires closest distance to the rupture. A point-source proxy may substantially underestimate shaking near an extended fault. | fault_distance | Hypocentral proxy | |
| Closest distance to rupture (Rrup) Shortest 3D distance to the rupture surface. It cannot exceed distance to the hypocentre, which lies on the rupture. | X_input | km | 50 |
| Ground amplification relative to 600 m/s rock The 1.41 factor is the NIED 600-to-400 m/s adjustment documented by GEM. A custom factor must use the same 600 m/s reference. | site | 400 m/s ground: ×1.41 | |
| Site PGV amplification factor Dimensionless surface PGV / reference-ground PGV. A constant factor does not model soil nonlinearity, basin resonance or liquefaction. | A_input | 1.41 | |
| Epicentre–triggering station surface distance Distance to the station whose P arrival enables detection. For a multi-station algorithm, use the last required triggering station, not necessarily the nearest station. | D_station | km | 20 |
| Detection and processing after station P arrival Includes signal accumulation, confirmation, processing and any extra station/network delay. Scenario assumption, not a promise by JMA, SASMEX or ShakeAlert. | t_process | s | 2 |
| Alert dissemination and device delay Time from processing completion until the alert reaches the user/device. Excludes human reaction and protective-action time. | t_delivery | s | 2 |
| P-wave speed JMA's introductory value is about 7 km/s. Regional crustal speeds differ; the same constant speed is used on both ray paths. | v_P | m/s | 7000 |
| S-wave speed JMA's introductory value is about 4 km/s. Must be lower than the P-wave speed. | v_S | m/s | 4000 |
| ▶ Time since rupture onset Animation time only. It does not change warning time or the shaking estimate. Fronts disappear after leaving the circular map window. | t_anim | s | 16 |
Results
With the default inputs above, the calc gives:
| Result | Value |
|---|---|
| Warning before modeled S-wave (conditional) | 17.9 s |
| S arrival − alert receipt (negative = late) | 17.9 s |
| City P arrival after rupture | 14.4 s |
| City S arrival after rupture | 25.1 s |
| Alert received after rupture | 7.2 s |
| Blind-zone surface radius | 27 km |
| Local S−P interval | 10.8 s |
| City epicentral distance used | 100 km |
| Median site PGV — scenario estimate | 0.06674 m/s |
| Rough intensity (continuous JMA proxy) | 4.1 (JMA proxy) |
Checked against sources
Each case below was calculated by this calc and agrees with the value from its source (within the tolerance where one is shown).
GEM PGV: crustal Mw 6, 10 km deep, Rrup 50 km
Source: GEM OpenQuake published independent-implementation regression fixture SM99/SM99ASC_MEAN.csv, row Mw=6, depth=10 km, Rrup=50 km, Vs30=400 m/s; PGV in cm/s. https://raw.githubusercontent.com/gem/oq-engine/master/openquake/hazardlib/tests/gsim/data/SM99/SM99ASC_MEAN.csv . The accompanying test states that the data were generated using an alternative implementation; this validates transfer of the regression, not its predictive skill.
Inputs: Moment magnitude Mw = 6; Distance for the ground-motion equation = Closest rupture distance; the others as above.
| Result | Source | This calc |
|---|---|---|
| Median site PGV — scenario estimate | 0.03586 m/s | 0.03586 m/s |
GEM PGV: crustal Mw 7, 50 km deep, Rrup 100 km
Source: GEM OpenQuake SM99ASC_MEAN.csv, independent-implementation fixture, Mw=7, depth=50 km, Rrup=100 km, Vs30=400 m/s. PGV 7.4537224011 cm/s. This case checks the positive depth coefficient. https://raw.githubusercontent.com/gem/oq-engine/master/openquake/hazardlib/tests/gsim/data/SM99/SM99ASC_MEAN.csv . Tajima and Hayashida (2018), Appendix Eq. 4, prints −0.0038D; the original Table 6 uses a positive depth coefficient. The original sign is retained.
Inputs: Moment magnitude Mw = 7; Hypocentral depth = 50 km; Distance for the ground-motion equation = Closest rupture distance; Closest distance to rupture (Rrup) = 100 km; the others as above.
| Result | Source | This calc |
|---|---|---|
| Median site PGV — scenario estimate | 0.07454 m/s | 0.07454 m/s |
GEM PGV: subduction interface correction
Source: GEM OpenQuake SM99SInter_MEAN.csv, independent-implementation fixture: Mw=7, depth=10 km, Rrup=50 km, Vs30=400 m/s, PGV 11.6799327569 cm/s. Verifies the −0.02 interface correction. https://raw.githubusercontent.com/gem/oq-engine/master/openquake/hazardlib/tests/gsim/data/SM99/SM99SInter_MEAN.csv
Inputs: Moment magnitude Mw = 7; Distance for the ground-motion equation = Closest rupture distance; Earthquake type = Subduction interface; the others as above.
| Result | Source | This calc |
|---|---|---|
| Median site PGV — scenario estimate | 0.1168 m/s | 0.1168 m/s |
Published gray zone: 10 km station scale
Source: Tajima and Hayashida (2018), Fig. 1 caption, https://doi.org/10.1186/s40645-018-0221-6 : source depth 10 km; P=5.8 km/s, S=3.4 km/s; processing 2 s; station-spacing examples 10, 20, 30, 40 km give gray-zone limits about 11, 17, 23, 29 km. Here the governing station epicentral distance is taken as the 10 km scale illustrated by that example, with zero extra delivery. The published result is approximate; 0.5 km allows rounding to a whole kilometre. This is a comparison of the simplified construction, not a general mapping from grid spacing to last triggering station.
Inputs: Epicentre–triggering station surface distance = 10 km; P-wave speed = 5,800 m/s; S-wave speed = 3,400 m/s; Alert dissemination and device delay = 0 s; the others as above.
| Result | Source | This calc |
|---|---|---|
| Blind-zone surface radius | 11 ± 0.5 km | 11.301 km |
Published gray zone: 20 km station scale
Source: Tajima and Hayashida (2018), Fig. 1 caption, https://doi.org/10.1186/s40645-018-0221-6 : the 20 km station-spacing construction has an approximately 17 km gray zone for depth 10 km, speeds 5.8/3.4 km/s and a 2 s processing time. Represent the governing station distance by 20 km and assume zero extra delivery. Tolerance 0.5 km reflects rounding to a whole kilometre and the simplified network geometry.
Inputs: P-wave speed = 5,800 m/s; S-wave speed = 3,400 m/s; Alert dissemination and device delay = 0 s; the others as above.
| Result | Source | This calc |
|---|---|---|
| Blind-zone surface radius | 17 ± 0.5 km | 17.214 km |
Published ground-motion distance limit: Mw 6.2
Source: Si and Midorikawa (1999), attached s2, file page 3 / printed p. 65, opening paragraph and Fig. 4: magnitude-dependent record-selection distances. For Mw 6.2, the stated upper distance is 100 km. The 300 km band applies from Mw 7.0, as the paragraph's first clause specifies. DOI: https://doi.org/10.3130/aijs.64.63_2
Inputs: Moment magnitude Mw = 6.2; Distance for the ground-motion equation = Closest rupture distance; the others as above.
| Result | Source | This calc |
|---|---|---|
| Published maximum ground-motion distance for Mw | 100 km | 100 km |
Published ground-motion distance limit: Mw 6.3
Source: Si and Midorikawa (1999), attached s2, file page 3 / printed p. 65, opening paragraph and Fig. 4: magnitude-dependent record-selection distances. For Mw 6.3, the stated upper distance is 150 km. The 300 km band applies from Mw 7.0, as the paragraph's first clause specifies. DOI: https://doi.org/10.3130/aijs.64.63_2
Inputs: Moment magnitude Mw = 6.3; Distance for the ground-motion equation = Closest rupture distance; the others as above.
| Result | Source | This calc |
|---|---|---|
| Published maximum ground-motion distance for Mw | 150 km | 150 km |
Published ground-motion distance limit: Mw 6.6
Source: Si and Midorikawa (1999), attached s2, file page 3 / printed p. 65, opening paragraph and Fig. 4: magnitude-dependent record-selection distances. For Mw 6.6, the stated upper distance is 200 km. The 300 km band applies from Mw 7.0, as the paragraph's first clause specifies. DOI: https://doi.org/10.3130/aijs.64.63_2
Inputs: Moment magnitude Mw = 6.6; Distance for the ground-motion equation = Closest rupture distance; the others as above.
| Result | Source | This calc |
|---|---|---|
| Published maximum ground-motion distance for Mw | 200 km | 200 km |
Published ground-motion distance limit: Mw 7.0
Source: Si and Midorikawa (1999), attached s2, file page 3 / printed p. 65, opening paragraph and Fig. 4: magnitude-dependent record-selection distances. For Mw 7.0, the stated upper distance is 300 km. The 300 km band applies from Mw 7.0, as the paragraph's first clause specifies. DOI: https://doi.org/10.3130/aijs.64.63_2
Inputs: Moment magnitude Mw = 7; Distance for the ground-motion equation = Closest rupture distance; the others as above.
| Result | Source | This calc |
|---|---|---|
| Published maximum ground-motion distance for Mw | 300 km | 300 km |







Responses