Earthquake Magnitude Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Introduction to local magnitude and the Richter scale

Every earthquake radiates elastic waves that a seismometer converts into a trace on a seismogram. Local magnitude, written ML and still widely called the Richter scale, is the oldest surviving way of turning that trace into a single number. Charles F. Richter defined it in 1935 for southern California, and the definition was deliberately practical: measure the largest excursion on a Wood-Anderson torsion seismograph, correct it for how far the station sits from the source, and read off a logarithmic magnitude.

The scale is anchored by one arbitrary but famous choice. An earthquake that writes a peak trace amplitude of 1 mm on a Wood-Anderson instrument at a hypocentral distance of 100 km is defined to be magnitude 3.0. Everything else follows from an empirical attenuation curve that describes how that 1 mm reading would shrink or grow at other distances. Because the curve is logarithmic in amplitude, one whole magnitude unit corresponds to a tenfold change in ground motion at the station and to roughly a 32-fold change in radiated seismic energy.

This calculator does not use the loose classroom shortcut that many pages copy from each other. It implements the IASPEI standard local magnitude relation, the version recommended by the International Association of Seismology and Physics of the Earth's Interior for reporting ML from digital data. That relation carries the modern southern California distance correction of Hutton and Boore (1987) and the measured Wood-Anderson static magnification of 2080, so the numbers it produces are directly comparable with the values a seismic network would compute for the same reading.

How to use this estimator with a real seismogram reading

The calculator needs one amplitude and one distance. Work through the inputs in order:

  1. Measure the amplitude. On a horizontal component that has been deconvolved to ground displacement and reconvolved with the Wood-Anderson response at unit gain, take half of the maximum peak-to-peak excursion of the S-wave group. Enter that number and select its unit. Choose nanometres, micrometres or millimetres if you already have a ground-displacement figure; choose mm on a Wood-Anderson trace if you are reading a paper or simulated Wood-Anderson record directly, and the calculator will divide by the 2080 static magnification for you.
  2. Choose how you know the distance. The equation wants hypocentral distance, the straight-line distance from the station to the focus. If your catalogue already gives it, select that option. If you have an epicentral distance and a focal depth, select the second option and the calculator combines them with Pythagoras. If all you have is a seismogram, select the third option and enter the S-minus-P arrival-time difference in seconds; the tool converts that into epicentral distance and then adds the depth.
  3. Estimate the magnitude. The results panel reports ML to two decimals, the descriptive band it falls in, the hypocentral distance actually used, a term-by-term breakdown of the equation, and a sensitivity table showing how the answer would move if your amplitude or distance were wrong.
  4. Read the chart. The curve below the results shows ML as a function of assumed hypocentral distance for the amplitude you entered, with your own case marked. It is the fastest way to see whether a mislocated epicentre would matter.
  5. Keep or share the run. The address bar updates with every calculation, so the link reproduces the exact scenario. The buttons under the result copy a plain-text summary to the clipboard or download it as a .txt file for a lab notebook.

Inputs are validated as you calculate. Non-numeric or empty fields, zero or negative amplitudes, zero or negative distances, and hypocentral distances beyond the 1000 km validity limit of the relation all produce an explicit message instead of a number, so the panel never shows a stale or meaningless result.

The IASPEI local magnitude formula, term by term

Richter's original definition is a difference of logarithms. The magnitude is the logarithm of the measured amplitude minus the logarithm of the amplitude that a reference earthquake of magnitude zero would have produced at the same distance:

ML = log10 (A) log10 (A0(R))

The whole difficulty of the scale lives in that second term, the distance correction or attenuation function. Richter published it as a table. Hutton and Boore re-derived it in 1987 from 7355 Wood-Anderson amplitudes recorded by the Southern California Seismic Network, and their curve is the one in use today:

log10A0 = 1.110 log10 (R100) + 0.00189 (R100) + 3.0

Substituting that curve, converting the trace amplitude in millimetres into ground displacement in nanometres through the measured Wood-Anderson static magnification of 2080, and collecting the constants gives the compact form that IASPEI recommends and that this calculator evaluates:

ML = log10 (A) + 1.11 log10 (R) + 0.00189 R 2.09

with A the maximum horizontal ground-displacement amplitude in nanometres on a Wood-Anderson instrument simulated at unit gain, and R the hypocentral distance in kilometres. Each piece has a job:

The unit conversion built into the constant is worth stating explicitly, because it is where most published shortcuts go wrong:

Anm = Atrace, mm×106 2080

When a catalogue supplies an epicentral distance and a focal depth rather than a hypocentral distance, the calculator combines them in the obvious way. Ignoring depth is the single most common source of error for shallow local networks, where a 10 km focus and a 12 km epicentral distance differ from the straight-line range by nearly 30 per cent:

R = Δ2+h2

If you only have a seismogram, the interval between the S and P arrivals fixes the epicentral distance. For a crust in which the P velocity is about 6.0 km/s and the ratio of P to S velocity is the Poisson value of the square root of three, the conversion factor works out near 8 km per second of S-minus-P time, the classic rule of thumb behind the Richter nomograph:

Δ vPvS vPvS × tSP 8 km/s × tSP

Finally, two ratios follow directly from the logarithmic definition and are reported alongside every result. The ground-motion ratio between two magnitudes is a power of ten, and the radiated-energy ratio is a power of ten with an exponent of one and a half, which is where the familiar factor of about 32 per magnitude unit comes from:

A2A1 = 10ΔM , E2E1 = 101.5ΔM 31.6 per unit

Worked example: a light event recorded 82 km away

A regional broadband station records an event. After the horizontal channel has been converted to ground displacement and filtered through the Wood-Anderson response, half of the maximum peak-to-peak S-wave amplitude measures 5400 nm, which is 5.4 micrometres of ground displacement and would be about 11.2 mm of pen excursion on a genuine Wood-Anderson drum. The network locates the event 82 km away in map view at a focal depth of 12 km.

  1. Convert the epicentral distance and depth into a hypocentral distance:

    R = sqrt(82² + 12²) = sqrt(6868) = 82.87 km

  2. Take the logarithm of the amplitude:

    log10(5400) = 3.7324

  3. Apply the geometrical spreading term:

    1.11 × log10(82.87) = 1.11 × 1.9184 = 2.1294

  4. Apply the anelastic attenuation term:

    0.00189 × 82.87 = 0.1566

  5. Add the terms and subtract the calibration constant:

    ML = 3.7324 + 2.1294 + 0.1566 − 2.09 = 3.93

The station therefore reports ML 3.93, a light earthquake that people close to the epicentre would clearly feel indoors but that would not be expected to damage well-built structures. Compared with an ML 5.0 event, the ground motion at an equivalent station would be about 12 times smaller and the radiated energy about 40 times smaller.

It is worth checking the equation against its own anchor point, because a formula that fails its calibration is a formula that has been copied incorrectly. Richter defined magnitude 3.0 as a 1 mm trace amplitude at 100 km. One millimetre of trace at a gain of 2080 is 480.8 nm of ground displacement, so the equation gives log10(480.8) + 1.11 × log10(100) + 0.00189 × 100 − 2.09 = 2.6819 + 2.2200 + 0.1890 − 2.09 = 3.00. The relation reproduces its own definition to two decimal places, and you can confirm this in the calculator by selecting the Wood-Anderson trace unit, entering 1 mm, and setting a hypocentral distance of 100 km.

Interpreting the estimated magnitude

Magnitude is a dimensionless property of the source. It is not a prediction of shaking at any particular address, and it is not an intensity. Two events of identical magnitude can produce completely different experiences depending on depth, distance to population, sediment thickness and building stock. The Modified Mercalli Intensity scale, not magnitude, describes what people felt and what broke.

The descriptive bands below follow the classes the USGS uses in its public material. They are conventions for talking about earthquakes, not thresholds with physical meaning, and the boundaries are soft.

Descriptive magnitude bands and the effects usually associated with them
Magnitude band Class Typical effects near the epicentre
Below 2.0 Micro Recorded by instruments only; effectively never felt.
2.0 to 3.9 Minor Felt by some people very close to the source in quiet conditions; damage not expected.
4.0 to 4.9 Light Widely felt indoors, rattling objects; minor damage to vulnerable structures at most.
5.0 to 5.9 Moderate Can damage poorly built or unreinforced buildings; well-designed structures usually cope.
6.0 to 6.9 Strong Destructive over tens of kilometres in populated regions.
7.0 to 7.9 Major Serious damage over a wide area; local magnitude has usually saturated by this point.
8.0 and above Great Catastrophic across very large regions; only moment magnitude describes these properly.

Because different magnitude scales measure different parts of the wavefield, a published number is only meaningful together with its type. The second table sets local magnitude beside the scales that agencies use for larger or more distant events.

How local magnitude compares with the other magnitude types reported by seismic agencies
Scale What it measures Useful range Saturation behaviour
ML (local, Richter) Peak Wood-Anderson horizontal amplitude, roughly 1 s period About M 2.0 to 6.5, 0 to 600 km Saturates above roughly M 6.5
mb (short-period body wave) First few seconds of the P wave near 1 s period About M 4 to 6.5, 15 to 100 degrees Saturates near M 6.5
MS (surface wave) 20 s period Rayleigh wave amplitude About M 5 to 8, 20 to 160 degrees Saturates near M 8.5
MW (moment) Seismic moment from fault area, slip and rigidity All sizes, all distances Does not saturate

Limitations, assumptions and honest error bars

The equation is empirical, regional and single-station. Every one of those words is a limitation:

Treat the output as a defensible single-station estimate with an uncertainty of roughly plus or minus 0.2 to 0.3 magnitude units, and treat any published catalogue value from a national agency as authoritative in preference to it. If you are responding to a real earthquake, follow official guidance rather than a web calculator.

Frequently asked questions about earthquake magnitude

Which local magnitude formula does this calculator use?

It applies the IASPEI standard local magnitude relation ML = log10(A) + 1.11 log10(R) + 0.00189 R - 2.09, in which A is the maximum horizontal ground-displacement amplitude in nanometres on a Wood-Anderson seismogram simulated at unit gain and R is the hypocentral distance in kilometres. That relation is the one recommended by the IASPEI Working Group on Magnitude Measurements, and it reproduces Richter's original calibration point exactly: a 1 mm trace amplitude at 100 km returns ML 3.00.

Why does the calculator ask for amplitude in nanometres rather than millimetres?

The IASPEI relation is defined for ground displacement in nanometres on a Wood-Anderson instrument simulated at unit gain, so the instrument magnification is handled openly instead of being hidden inside a constant. If you are measuring millimetres off a real or simulated Wood-Anderson trace, pick the Wood-Anderson trace unit and the calculator divides by the measured static magnification of 2080 for you.

How much does an uncertain epicentral distance change the answer?

Less than most people expect, because the distance term is only 1.11 log10(R) plus a small linear correction. Getting the hypocentral distance wrong by 25 percent moves the estimate by roughly 0.15 magnitude units at regional distances, whereas a factor-of-two error in reading the amplitude moves it by a full 0.30 units. The sensitivity table in the results panel quantifies both effects for the numbers you entered.

What is the difference between local magnitude and moment magnitude?

Local magnitude is an amplitude measurement: it records how strongly the ground moved at one station and corrects that reading back to a reference distance. Moment magnitude is a measurement of the source itself, derived from the seismic moment, which is the product of ruptured fault area, average slip, and rock rigidity. The two agree reasonably well between about magnitude 3 and magnitude 6, but local magnitude saturates for large ruptures because the narrow Wood-Anderson passband cannot capture the long-period energy that a big fault radiates.

Over what distance and magnitude range is a local magnitude estimate meaningful?

The IASPEI relation is recommended for hypocentral distances below 1000 km, and the USGS lists local magnitude as applicable from about 0 to 600 km and from roughly magnitude 2.0 to 6.5. Inside that window the calculator returns the estimate without a caveat. Outside it the estimate is still shown, but it carries a warning, because the southern California attenuation model behind the coefficients no longer describes how the waves actually decayed.

Can a single station produce an official magnitude?

No. Operating agencies average local magnitude readings from many stations and from both horizontal components, apply station corrections, and reject outliers before publishing a value. A single-station estimate typically scatters by a few tenths of a magnitude unit around the network answer, so treat this page as a teaching and cross-checking tool rather than a source of official numbers. For real events, use the published catalogue of the responsible geological survey.

Half the maximum peak-to-peak Wood-Anderson S-wave excursion.
Trace millimetres are divided by the 2080 static magnification.
The equation needs hypocentral distance; the other modes convert to it.
Map-view distance from the station to the epicentre.
Use 0 if the depth is unknown; shallow crustal events are typically 5 to 20 km.
Enter an amplitude and a distance, then select Estimate local magnitude.
Estimated local magnitude against assumed hypocentral distance for the amplitude you entered. The marker shows the distance currently in use.

Arcade Mini-Game: Richter Magnitude Calculator Calibration Run

Use this quick arcade run to practise separating the quantities the local magnitude equation actually needs from the mistakes that most often corrupt a single-station estimate.

Score: 0 Timer: 30s Best: 0

Start the game, then use your pointer or arrow keys to catch useful inputs and avoid bad assumptions.