Forward Inflation Index
Calculates the forward US consumer price index (CPI-U, not seasonally adjusted) of every coming month: the price level the inflation swap rates the Treasury and TIPS curves imply, with the monthly seasonality of the CPI.
The zero-coupon inflation swap rates fix the growth of the index over whole years (see get_inflation_swap_rate). Between them, prices rise faster in some months than in others, so each month’s forward index is moved by its seasonal factor relative to that of the base month (Belgrade, Benhamou and Koehler, 2004; Kerkhof, 2005). The seasonal factors are estimated from the CPI history: the average log change of each calendar month above the average of all months, accumulated over the year and scaled so that the twelve factors multiply to 1.
The formula is as follows:
\[I(m) = \frac{I(0) \cdot \left(1 + K\left(\frac{m}{12}\right)\right)^{\frac{m}{12}} \cdot S_{monthofm}}{S_{basemonth}}\] \[K(T) = \frac{1 + n(T)}{1 + r(T)} - 1\] \[s_{k} = \operatorname{MEAN}\left(\ln\left(\frac{I_{t}}{I_{t-1}}\right) \;\text{in calendar month}\; k\right) - \operatorname{MEAN}\left(\ln\left(\frac{I_{t}}{I_{t-1}}\right)\right)\] \[S_{k} = \exp(s_{1} + \ldots + s_{k}),\;\; \text{scaled so that PRODUCT}(S_{k}) = 1\]where I(0) is the CPI of the base month, m the months after it, K the annually compounded zero-coupon inflation swap rate (interpolated linearly between whole years), n and r the annually compounded nominal and real zero rates of the Treasury and TIPS curves and S the seasonal factors (all 1 without seasonality). The base month is the third month before the date’s month, the CPI the reference CPI of TIPS starts from on the first of the month (31 CFR 356), so the breakevens price the inflation from it on.
Also known as: forward CPI, CPI fixing curve, inflation index curve, seasonal adjustment of inflation swaps.
Example · 2026
Install the Finance Toolkit with pip install financetoolkit -U, then call get_forward_inflation_index:
from financetoolkit import FixedIncome
fixedincome = FixedIncome(start_date="2026-10-01", end_date="2026-11-20")
fixedincome.get_forward_inflation_index(years=1)
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What US CPI levels, month by month for the coming year, did inflation swaps price in on 20 November 2026?
Which returns:
| Month | Forward CPI | Trend CPI | Seasonal Factor | Zero-Coupon Inflation Swap Rate |
|---|---|---|---|---|
| 2026-09 | 335.388 | 335.524 | 0.9996 | 0.0196 |
| 2026-10 | 335.709 | 336.068 | 0.9989 | 0.0196 |
| 2026-11 | 334.568 | 336.613 | 0.9939 | 0.0196 |
| 2026-12 | 334.306 | 337.160 | 0.9915 | 0.0196 |
| 2027-01 | 335.731 | 337.707 | 0.9941 | 0.0196 |
| 2027-02 | 337.160 | 338.255 | 0.9968 | 0.0196 |
| 2027-03 | 339.026 | 338.804 | 1.0007 | 0.0196 |
| 2027-04 | 340.487 | 339.354 | 1.0033 | 0.0196 |
| 2027-05 | 341.337 | 339.904 | 1.0042 | 0.0196 |
| 2027-06 | 341.073 | 340.456 | 1.0018 | 0.0196 |
| 2027-07 | 341.073 | 341.008 | 1.0002 | 0.0196 |
| 2027-08 | 341.562 | 341.562 | 1.0000 | 0.0196 |
12 rows
Parameters
get_forward_inflation_index accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
date | str | None | The day (YYYY-MM-DD) of the curves, or the last day before it with a real yield curve. Defaults to None, the end date. | "2025-03-31" |
years | int | The number of years of months after the base month. Defaults to 5. | 5 |
seasonality | bool | Whether to apply the monthly seasonal factors. Defaults to True. | True |
seasonality_years | int | The years of CPI history before the base month the seasonal factors are estimated on. The keyless BLS API covers about three years; a FRED API key gives the rest. Defaults to 10. | 10 |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the 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
- Library Referenced against QuantLib’s ZeroInflationIndex
- Library Referenced against QuantLib’s MultiplicativePriceSeasonality