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:
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:
| Item | Three-Month Average | Prior Twelve-Month Low | Sahm Rule | Recession Signal |
|---|---|---|---|---|
| 2024-01 | 0.0373 | 0.0350 | 0.0023 | 0 |
| 2024-02 | 0.0380 | 0.0350 | 0.0030 | 0 |
| 2024-03 | 0.0383 | 0.0350 | 0.0033 | 0 |
| 2024-04 | 0.0390 | 0.0350 | 0.0040 | 0 |
| 2024-05 | 0.0390 | 0.0350 | 0.0040 | 0 |
| 2024-06 | 0.0397 | 0.0353 | 0.0043 | 0 |
| 2024-07 | 0.0407 | 0.0357 | 0.0050 | 1 |
| 2024-08 | 0.0417 | 0.0360 | 0.0057 | 1 |
| 2024-09 | 0.0417 | 0.0363 | 0.0053 | 1 |
| 2024-10 | 0.0413 | 0.0373 | 0.0040 | 0 |
| 2024-11 | 0.0413 | 0.0373 | 0.0040 | 0 |
| 2024-12 | 0.0413 | 0.0373 | 0.0040 | 0 |
12 rows
Parameters
get_sahm_rule accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
countries | list[str] | str | None | The countries to include in the data. Defaults to None, which includes every country with a monthly unemployment rate. | ["United States", "Germany"] |
threshold | float | The 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). | |
transform | str | list[str] | None | Time 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 |
growth | bool | Whether to return the growth data or the actual data. Defaults to False. | True |
lag | int | list[int] | The number of periods to lag the growth data by. Defaults to 1. | 4 |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Economics class. | 2 |
show_columns | str | list[str] | None | The 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
- Paper Sahm, C. (2019). “Direct Stimulus Payments to Individuals.” In Recession Ready: Fiscal Policies to Stabilize the American Economy, The Hamilton Project and the Washington Center for Equitable Growth.
- Source Eurostat, Unemployment by sex and age, monthly data (une_rt_m)
- Source Office for National Statistics, Unemployment rate, aged 16 and over, seasonally adjusted (MGSX)
- Source IBGE (Brazilian Institute of Geography and Statistics), PNAD Contínua unemployment rate (6381, 4099)
- Source OECD, Infra-annual labour statistics, unemployment rate (DSD_LFS@DF_IALFS_UNE_M, UNE_LF_M)
- Source U.S. Bureau of Labor Statistics, Unemployment rate, seasonally adjusted (LNS14000000)