Sahm Rule

Get the Sahm rule recession indicator of a variety of countries: how far the three-month average unemployment rate has risen above its low of the previous twelve months, a recession signal at 0.5 percentage points.

Sahm (2019) found that every US recession since 1970 began within a few months of the three-month average unemployment rate rising 0.5 percentage points above its low of the previous year, with no false signal outside recessions over that period. The rule was calibrated on the United States; for other countries it is a gauge of how fast unemployment rises, and a threshold that fits their labour markets may differ.

The Prior Low is the lowest Three Month Average of the twelve months before (t - 12 to t - 1), and the Recession Signal is 1 when the Sahm Rule reaches threshold and 0 otherwise. The formula is as follows:

\[\text{Three Month Average} = \frac{\text{Unemployment Rate} + \text{Unemployment Rate}_{t-1} + \text{Unemployment Rate}_{t-2}}{3}\] \[\text{Prior Low} = \text{Min}(\text{Three Month Average}_{t-1}, 12)\] \[\text{Sahm Rule} = \text{Three Month Average} - \text{Prior Low}\] \[\text{Recession Signal} = 1 \quad \text{if } \text{Sahm Rule} \geq \texttt{threshold}\] \[\text{Recession Signal} = 0 \quad \text{if } \text{Sahm Rule} < \texttt{threshold}\]

Min(X, 12) is the lowest value of X over 12 months. The Three Month Average and Prior Low are the columns Three-Month Average and Prior Twelve-Month Low.

The unemployment rate is the monthly one of get_unemployment_rate (the OECD, Eurostat, the ONS, the IBGE and the Bureau of Labor Statistics), as a decimal, so a Sahm Rule of 0.005 is 0.5 percentage points. Countries that publish their unemployment rate quarterly only, such as New Zealand, are not included. The low leaves the current month out, so the indicator turns negative when the average falls to a new low. A month without a figure (the US October 2025, not published during the government shutdown) is left out of the three-month average, which then covers the other two months.

The figures use the unemployment rates as currently published, so they equal the Federal Reserve Bank of St. Louis’ SAHMCURRENT for the United States. Its real-time version (SAHMREALTIME) uses the rates as first published each month, which differ from the revised ones by up to a few hundredths of a percentage point.

Also known as: Sahm recession indicator, real-time recession signal, unemployment trigger.

Example · United States, Germany · 2024

Install the Finance Toolkit with pip install financetoolkit -U, then call get_sahm_rule:

from financetoolkit import Economics

economics = Economics(start_date='2024-01-01', end_date='2024-12-31')

economics.get_sahm_rule(countries=['United States', 'Germany'])['United States']

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

Did the Sahm rule signal a US recession in any month of 2024?

Which returns:

Parameters

get_sahm_rule accepts the following parameters.

ParameterTypeDescriptionExample
countrieslist[str] | str | NoneThe countries to include in the data. Defaults to None, which includes every country with a monthly unemployment rate.["United States", "Germany"]
thresholdfloatThe rise of the three-month average above its low that signals a recession, as a decimal. Defaults to 0.005 (0.5 percentage points, Sahm’s threshold).
transformstr | list[str] | NoneTime series steps applied in order, such as “sma:12” (moving average), “pct_change”, “yoy”, “zscore:60” or “hp_cycle” (Hodrick-Prescott), before growth and the date range, on the history before the start date. Defaults to None.None
growthboolWhether to return the growth data or the actual data. Defaults to False.True
lagint | list[int]The number of periods to lag the growth data by. Defaults to 1.4
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Economics class.2
show_columnsstr | list[str] | NoneThe columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column.None, which keeps every column

References

Share