Excess CAPE Yield
Get the Excess CAPE Yield of the US stock market: the earnings yield of the cyclically adjusted price-earnings ratio (CAPE) above the real 10-year Treasury yield, how much more stocks earn than bonds after inflation.
Shiller, Black and Jivraj (2020) introduced the Excess CAPE Yield because the CAPE alone ignores the level of interest rates: a high CAPE is less stretched when real bond yields are low. It tracks the subsequent ten years of US stock returns over bonds more closely than the CAPE does. The real bond yield takes the annualized inflation of the previous ten years as the expected inflation.
The formula is as follows, with CPI(t-120) the index of 120 months earlier:
\[\text{CAPE Yield} = \frac{1}{\text{CAPE}}\] \[\text{Trailing Inflation} = \left(\frac{\text{CPI}}{\text{CPI}_{t-120}}\right)^{1/10} - 1\] \[\text{Real Bond Yield} = \text{Long Interest Rate} - \text{Trailing Inflation}\] \[\text{Excess CAPE Yield} = \text{CAPE Yield} - \text{Real Bond Yield}\]The inputs are those of get_shiller_stock_market_data: the CAPE of the S&P Composite, the consumer price index and the 10-year Treasury yield (GS10, a monthly average of bond-equivalent yields), monthly from 1881, when ten years of inflation are available. The result equals the Excess CAPE Yield column of Shiller’s own file. Every value is a decimal (0.03 for 3%), and the trailing inflation is annually compounded.
Also known as: ECY, excess CAPE yield, CAPE yield spread, real equity risk premium.
Example · 2026
Install the Finance Toolkit with pip install financetoolkit -U, then call get_excess_cape_yield:
from financetoolkit import Economics
economics = Economics(start_date='2026-01-01', end_date='2026-11-30')
economics.get_excess_cape_yield()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What was the excess CAPE yield of the US stock market, the CAPE earnings yield over the real bond yield, each month from January to November 2026?
Which returns:
| Item | CAPE Yield | Trailing Inflation | Real Bond Yield | Excess CAPE Yield |
|---|---|---|---|---|
| 2026-01 | 0.0252 | 0.0322 | 0.0099 | 0.0153 |
| 2026-02 | 0.0256 | 0.0326 | 0.0087 | 0.0169 |
| 2026-03 | 0.0270 | 0.0332 | 0.0093 | 0.0177 |
| 2026-04 | 0.0262 | 0.0336 | 0.0096 | 0.0166 |
| 2026-05 | 0.0248 | 0.0339 | 0.0109 | 0.0139 |
| 2026-06 | 0.0248 | 0.0332 | 0.0115 | 0.0132 |
| 2026-07 | 0.0248 | 0.0333 | 0.0127 | 0.0121 |
| 2026-08 | 0.0243 | 0.0335 | 0.0133 | 0.0111 |
| 2026-09 | 0.0248 | 0.0341 | 0.0158 | 0.0090 |
| 2026-10 | 0.0249 | 0.0343 | 0.0170 | 0.0080 |
| 2026-11 | 0.0254 | 0.0347 | 0.0141 | 0.0113 |
11 rows
Parameters
get_excess_cape_yield accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
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 Shiller, R. J., Black, L. and Jivraj, F. (2020). “CAPE and the COVID-19 Pandemic Effect.” Project Syndicate, November 2020.
- Source Robert Shiller (Yale), U.S. Stock Markets 1871-Present and CAPE Ratio (ie_data)