Inflation Swap Rate
Calculates the zero-coupon and year-on-year inflation swap rates the government bond market implies: the inflation the market expects, as the fair fixed rates of swaps on US CPI-U inflation (from Treasury and TIPS yields) or euro area HICP inflation excluding tobacco (from nominal and inflation-linked German federal securities).
A zero-coupon inflation swap pays the growth of the price index over its life against a fixed rate compounded over the same years; a year-on-year swap pays each year’s inflation against a fixed rate every year. With nominal and real zero-coupon curves, the forward index of maturity T is \(I (0) \cdot P_{\text{real}} (T)\) / P_nominal(T) (Jarrow and Yildirim, 2003), so the zero-coupon swap rate is the zero-coupon breakeven inflation rate and the year-on-year swap rate the discount-weighted average of the forward year-on-year rates (Kerkhof, 2005; Brigo and Mercurio, 2006, ch. 15).
The formula is as follows:
\[\text{Zero-Coupon Inflation Swap Rate:}\;\; K(T) = \frac{1 + n(T)}{1 + r(T)} - 1\] \[\text{Forward Year-on-Year Rate:}\;\; f_{i} = \frac{(1 + K(i))^{i}}{(1 + K(i - 1))^{i - 1}} - 1\] \[\text{Year-on-Year Inflation Swap Rate} = \frac{\sum(P(i) f_{i})}{\sum(P(i))},\;\; \text{over}\;\; i = 1,\; \ldots,\; T\]where n(T) and r(T) are the annually compounded nominal and real zero-coupon rates of maturity T and P(i) = (1 + n(i))^(-i) the nominal discount factor. The nominal zero rates are bootstrapped from the government par yield curve (see get_zero_coupon_curve), the real ones from the real par yields of the inflation-linked bonds with their coupons (twice a year for TIPS, once for German inflation-linked German federal securities), held at the shortest quoted real yield before its maturity. Every rate is annually compounded. The year-on-year rates carry no convexity adjustment, which needs the volatilities of real and nominal rates: it is a few basis points up to ten years.
Also known as: ZCIS rate, YoY swap rate, zero-coupon breakeven inflation, inflation swap curve.
Example · 2026
Install the Finance Toolkit with pip install financetoolkit -U, then call get_inflation_swap_rate:
from financetoolkit import FixedIncome
fixedincome = FixedIncome(start_date="2026-10-01", end_date="2026-11-20")
fixedincome.get_inflation_swap_rate(
show_columns=["Zero-Coupon Inflation Swap Rate", "Year-on-Year Inflation Swap Rate", "Date"]
)
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What were the zero-coupon and year-on-year US inflation swap rates for 5 to 30 years on 20 November 2026?
Which returns:
| Maturity | Zero-Coupon Inflation Swap Rate | Year-on-Year Inflation Swap Rate | Date |
|---|---|---|---|
| 5 | 0.0217 | 0.0216 | 2026-11-20 |
| 7 | 0.0215 | 0.0215 | 2026-11-20 |
| 10 | 0.0215 | 0.0215 | 2026-11-20 |
| 20 | 0.0242 | 0.0234 | 2026-11-20 |
| 30 | 0.0211 | 0.0220 | 2026-11-20 |
5 rows
Parameters
get_inflation_swap_rate accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
country | str | The country. Options are: “United States” (CPI-U, Treasury and TIPS curves), “Germany” (euro area HICP excluding tobacco, Bundesbank curves). Defaults to “United States”. | "US" |
date | str | None | The day (YYYY-MM-DD), or the last day before it with a real yield curve. Defaults to None, the end date. | "2025-03-31" |
maturities | list[float] | str | None | The swap maturities in years, or labels such as “5Y”, as a list or a comma-separated string, all positive. A maturity beyond the longest of the nominal and real curves holds their zero rates flat from there, which is logged. Defaults to None, the maturities of the real yield curve. | ["3M", "6M"] |
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 ZeroCouponInflationSwap.fairRate
- Library Referenced against QuantLib’s YearOnYearInflationSwap.fairRate