Underlying Inflation
Get the median CPI and the 16% trimmed-mean CPI of the Federal Reserve Bank of Cleveland: how fast US prices rise once the components with the most extreme price changes of the month are set aside, monthly from 1983.
Core inflation leaves out food and energy by decision; these measures leave out whatever moved most in the month. Every month the Cleveland Fed ranks the monthly price changes of the components of the Consumer Price Index by size, each with its expenditure weight in the CPI. The median CPI is the price change of the component at the middle of the weights, and the 16% trimmed-mean CPI the weighted average of the components left after the 8% of the weights with the smallest changes and the 8% with the largest are cut off. Bryan and Cecchetti found such measures to track the trend of inflation better than the CPI and core CPI, as single prices with large moves (weather, oil, tax changes) no longer drive them.
Bryan, M. F., & Cecchetti, S. G. (1994). Measuring Core Inflation. In N. G. Mankiw (Ed.), Monetary Policy (pp. 195-219). University of Chicago Press. https://www.nber.org/papers/w4303
The Cleveland Fed publishes each measure as a seasonally adjusted index (December 1982 = 100), from which the changes are calculated. The formula for each change of the index I in month t is as follows:
\[\text{Year over Year} = \frac{I_{t}}{I_{t-12}} - 1\] \[\text{Monthly} = \frac{I_{t}}{I_{t-1}} - 1\] \[\text{Annualized} = \left(\frac{I_{t}}{I_{t-1}}\right)^{12} - 1\]The data is the Federal Reserve Bank of Cleveland’s, retrieved from FRED, which republishes it with attribution to the Cleveland Fed; it requires a FRED API key.
See definition: clevelandfed.org
Also known as: median CPI, trimmed-mean CPI, Cleveland Fed median CPI, underlying inflation, trend inflation.
Example · 2026
Install the Finance Toolkit with pip install financetoolkit -U, then call get_underlying_inflation:
from financetoolkit import Economics
economics = Economics(
start_date='2026-05-01', end_date='2026-10-31', fred_api_key="your_fred_api_key"
)
economics.get_underlying_inflation()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What were the Cleveland Fed's median CPI and trimmed-mean CPI inflation each month from May to October 2026?
Which returns:
| Item | Median CPI | 16% Trimmed-Mean CPI |
|---|---|---|
| 2026-05 | 0.0285 | 0.0291 |
| 2026-06 | 0.0271 | 0.0263 |
| 2026-07 | 0.0269 | 0.0260 |
| 2026-08 | 0.0258 | 0.0257 |
| 2026-09 | 0.0261 | 0.0266 |
| 2026-10 | 0.0280 | 0.0289 |
6 rows
Parameters
get_underlying_inflation accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
change | str | The change of the index. Options are: “year_over_year” (the change on the same month a year earlier), “monthly” (the change on the month before, the figure the Cleveland Fed leads with), “annualized” (the change on the month before at an annual rate). Defaults to “year_over_year”. | "year_over_year" |
rolling | int | The rolling window size to use for smoothing the data (simple moving average). Defaults to None. | 4 |
transform | str | list[str] | None | Time series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott). They run before growth and the date range, on the history fetched with it: the full history from 1983, so any window fits. Defaults to None. | None |
growth | bool | Whether to return the growth data or the actual data. Defaults to False. | True |
lag | int | The number of periods to lag the data by. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
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
- Source FRED (Federal Reserve Bank of St. Louis), Median Consumer Price Index (Federal Reserve Bank of Cleveland) (MEDCPIM094SFRBCLE)
- Source FRED (Federal Reserve Bank of St. Louis), 16% Trimmed-Mean Consumer Price Index (Federal Reserve Bank of Cleveland) (TRMMEANCPIM094SFRBCLE)