# How Does Inflation Affect Stocks, Bonds, Gold and Cash? I Tested It

> Real returns, after inflation, for the four things most of us own, grouped by how hot inflation ran each year. Plus the long S&P 500 record and what 2021-22 did to every one of them.

Source: https://www.beststocktools.com/resources/inflation-and-stock-returns · By Mark L., Best Stock Tools

## Short answer
- Real return = what you earn after prices rise. I grouped every year since 1994 by its CPI inflation and measured stocks, bonds, gold and cash in each group.
- In low-inflation years (under 2%) stocks averaged +9.6% a year after inflation. In high-inflation years (3% or more) that dropped to +3.7%. Bonds went from +3.9% to -1.2%.
- Over 75 years of S&P 500 prices, years with inflation of 5% or more averaged a -5.7% real price return, and 67% of them lost money after inflation.
- 2021-22 hit everything: prices rose 14.0% over two years, and stocks lost 7.6%, bonds 25.6%, gold 15.5% and cash 10.4% after inflation.

High inflation lowered the real return of almost everything I tested, but not equally. In years when consumer prices rose 3% or more, stocks still averaged **+3.7%** a year after inflation, gold +3.0%, bonds **-1.2%** and cash -1.0%. In low-inflation years stocks averaged +9.6%. So stocks were the best of the four in hot years too, just with far less to spare.

That's the average. The years that hurt are the ones where inflation surprises everyone, like 2021-22, when every one of the four lost money after inflation. Here is what I measured and how.

## What is a real return?

A real return is what you earn after rising prices. If your fund gains 8% in a year when prices rise 6%, you can buy only about 2% more stuff than before. The formula is `(1 + return) / (1 + inflation) - 1`, and every number in this article uses it.

For inflation I use the Consumer Price Index from the Bureau of Labor Statistics, through [FRED (CPIAUCSL)](https://fred.stlouisfed.org/series/CPIAUCSL), measured December to December. For the four assets:

- **Stocks:** an S&P 500 fund, dividends reinvested.
- **Bonds:** a total US bond market fund, interest reinvested.
- **Gold:** the gold price.
- **Cash:** 3-month Treasury bills, using the average yield that year.

My test covers 32 full calendar years, 1994 to 2025. Here are a few rows of the sheet, including the two inflation years that broke the usual rules:

Spreadsheet excerpt (Real returns 1994+ tab, full workbook: https://www.beststocktools.com/resources/sheets/inflation-and-stock-returns.xlsx):

| Year | Inflation | Regime | Stocks real | Bonds real | Gold real | Cash real |
|---|---|---|---|---|---|---|
| 2,019 | 2.3% | Moderate | 28.2% | 6.2% | 16.2% | -0.2% |
| 2,020 | 1.3% | Low | 16.8% | 6.2% | 22.8% | -0.9% |
| 2,021 | 7.2% | High | 20.1% | -8.5% | -10.0% | -6.7% |
| 2,022 | 6.4% | High | -23.1% | -18.6% | -6.1% | -4.1% |
| 2,023 | 3.3% | High | 22.1% | 2.3% | 9.8% | 1.9% |
| 2,024 | 2.9% | Moderate | 21.4% | -1.7% | 23.9% | 2.2% |

## How did each asset do in low, moderate and high inflation?

I sorted every year into three groups: low (under 2%), moderate (2-3%) and high (3% or more). The thresholds are blue cells on the Inputs tab, so you can change them.

[Chart: Stocks (S&P 500 fund) vs Bonds (total bond market fund) vs Gold vs Cash (3-month T-bills) — Average real return per calendar year, 1994-2025, by that year's CPI inflation (Dec to Dec).]

What stands out to me:

- **Stocks** were positive after inflation in all three groups, but the average fell from +13.4% in moderate years to +3.7% in high ones.
- **Bonds** went from a solid +3.9% in low-inflation years to -1.2% in high ones. Bonds are a promise of fixed dollars, and inflation is exactly what erodes fixed dollars.
- **Gold** did best in the moderate group (+14.2%) and was roughly flat in low-inflation years (-0.5%). In the high group it averaged +3.0%: positive, but not the inflation shield people expect.
- **Cash** lost a little to inflation in high years (-1.0%) and barely kept up the rest of the time.

The summary tab has the full table, including how often each asset beat inflation in the high years:

Spreadsheet excerpt (Summary tab, full workbook: https://www.beststocktools.com/resources/sheets/inflation-and-stock-returns.xlsx):

| Inflation that year | Years | Stocks real | Bonds real | Gold real | Cash real |
|---|---|---|---|---|---|
| Low (under 2%) | 10 | 9.6% | 3.9% | -0.5% | 0.3% |
| Moderate (2-3%) | 13 | 13.4% | 2.0% | 14.2% | 0.4% |
| High (3% or more) | 9 | 3.7% | -1.2% | 3.0% | -1.0% |
| All years | 32 | 9.5% | 1.7% | 6.4% | -0.0% |
| High years it beat inflation |  | 67% | 67% | 56% | 44% |
| 2021 and 2022 together | 2 | -7.6% | -25.6% | -15.5% | -10.4% |

9 high-inflation years is a small group, and a calendar year is a blunt unit. Treat these as directions, not precise forecasts.

## What does the longer S&P 500 record say?

My four-asset test starts in 1994 because that is where my bond data begins. To include the 1970s, I ran the S&P 500 index on its own back to 1951, against the same CPI. One caveat: the index doesn't include dividends, which added roughly 2-4% a year, so these real returns understate what an investor got.

[Chart: Average real price return — S&P 500 price index (no dividends), 1951-2025, real = after CPI inflation.]

The pattern is clear. Years with inflation under 3% averaged a real price return of +10.7% (under 2%) and +10.4% (2-3%). From 3% to 5% it was +5.0%. In the 15 years with inflation of 5% or more, the average was **-5.7%**, and 67% of those years lost money after inflation.

The 1970s are the classic case. Inflation peaked at 14.6% in Mar 1980, and the S&P 500's price, after inflation, ended the decade -42.5% below where it started. Dividends softened that, but it was still a lost decade in real terms.

Researchers who studied nearly a century of data across three countries reached the same conclusion: [unexpected inflation is bad news for both stocks and bonds](https://scholars.duke.edu/publication/1494610). The word that matters is *unexpected*. Steady 3% inflation that everyone plans for does far less damage than a jump from 2% to 7%.

## What happened to every asset in 2021-22?

This is the surprise case in my data. CPI rose 7.2% in 2021 and 6.4% in 2022, about 14.0% over the two years. On FRED's seasonally adjusted series, the 12-month rate peaked at 9.0% in Jun 2022. [Core CPI](https://fred.stlouisfed.org/series/CPILFESL), which leaves out food and energy, peaked later, at 6.6% in Sep 2022.

[Chart: Real return over 2021-22 — Two calendar years compounded, after CPI inflation.]

Over the two years together, after inflation, stocks lost 7.6%, bonds 25.6%, gold 15.5% and cash 10.4%. The shape mattered too. In 2021 stocks still gained +20.1% after inflation, while bonds were already losing (-8.5%). In 2022 everything fell at once: stocks -23.1%, bonds -18.6%.

That is why a classic stock-bond mix had such a bad year. I covered it in detail in [what happened to 60/40 portfolios in 2022](https://www.beststocktools.com/resources/what-happened-to-60-40-portfolios-in-2022). And it is why "add gold" was a weaker answer than people hoped; my full gold test is in [is gold a good portfolio hedge](https://www.beststocktools.com/resources/gold-as-a-portfolio-hedge-tested).

## Where is inflation now?

Here is the full CPI history, with core CPI and the 3% line:

[Chart: CPI, change over 12 months vs Core CPI (no food, energy) — Monthly, FRED CPIAUCSL and CPILFESL. The line at 3% is the "high inflation" band used above.]

The latest reading in my data is 3.7% for headline CPI (Sep 2026) and 2.6% for core. Both refresh with every new release, so this sentence stays current.

Headline and core can tell different stories. Headline CPI includes food and energy, so it jumps with oil and grocery prices; core leaves them out to show the slower trend underneath. For your own budget the headline number is the one that matters, because you buy gas and groceries. For judging whether inflation is settling down, core is the better guide; FRED's own notes on the CPI series point to core for a more reliable read on the trend.

The level matters less than the direction and the surprise. A rate that climbs past what markets expected is what hurt in 2022. A high rate that is already falling, and expected to fall, is a different situation.

## How should a 50+ investor think about inflation?

For people living off their savings, inflation is a slow version of a crash. A 30% fall in stocks is loud; 4% inflation for ten years takes about a third of your buying power without a single scary headline.

The test points to a few practical conclusions:

- **Stocks are the long-run inflation fighter**, but they can fail you for a year or two exactly when inflation spikes.
- **Ordinary bonds are the most exposed.** Shorter maturities are much less sensitive to rising rates than long bonds. I looked at how bonds behaved in every fall in [do bonds still protect a portfolio](https://www.beststocktools.com/resources/do-bonds-still-protect-a-portfolio).
- **Gold is a diversifier, not an inflation guarantee.** It helped some years and lost real value in others.
- **The stock-bond balance can break.** When inflation is the problem, stocks and bonds can fall together, so a mix that worked for twenty years may not protect you. That's when I lean on [a weekly market forecast](https://www.exent.ai/intel) that reads dozens of market and economic signals together, rather than on the bond side alone.

## What I'd do

- **Check your real return, not your statement.** Divide your yearly growth by one plus inflation; the spreadsheet formula is in my sheet.
- **Know your bond duration.** Long bond funds lost the most in 2022. If you hold them, decide whether you are comfortable with that.
- **Don't count on one hedge.** No single asset beat inflation in every hot year in my test.
- **Watch for inflation surprises**, not just the level. A jump above what was expected is the warning sign.
- **Keep a cash buffer for spending** but don't park long-term money there; it lost buying power in most years of my test.

## What I use for this
- **Portfolio optimizer** (https://www.exent.ai/portfolio) — Upload your holdings and see how your exact stock, bond and gold mix behaved through 2022, when inflation hit all of them at once, and which position did most of the damage.
- **Market intelligence** (https://www.exent.ai/intel) — A forecast that combines dozens of market and economic signals into one weekly reading, useful when inflation is high and the usual stock-bond balance stops working.

## FAQ
### Are stocks a good hedge against inflation?
Over long periods, yes: they were the best of the four in my test. Year by year, no. When inflation ran at 3% or more, stocks still averaged +3.7% after inflation, but they beat inflation in only 67% of those years, and in 2022 they lost 23.1% in real terms.

### Does gold protect against inflation?
Unreliably. In my high-inflation years gold averaged +3.0% after inflation and beat it in 56% of them. Over the 2021-22 inflation surge, gold lost 15.5% in real terms.

### Why did bonds do so badly in 2022?
Inflation pushed interest rates up fast, and when rates rise, existing bonds lose value. The total bond market fund lost 18.6% after inflation in 2022 alone, its worst year in my test.

### Is cash safe during inflation?
Safe from crashes, not from inflation. Cash in 3-month Treasury bills averaged -0.0% a year after inflation across my whole test, and -1.0% in high-inflation years. It holds its dollar value while quietly losing buying power.

## Sources
- Neville, Draaisma, Funnell, Harvey & Van Hemert: The Best Strategies for Inflationary Times (Journal of Portfolio Management, 2021) — https://scholars.duke.edu/publication/1494610
- FRED: Consumer Price Index for All Urban Consumers (CPIAUCSL) — https://fred.stlouisfed.org/series/CPIAUCSL
- FRED: Core CPI, less food and energy (CPILFESL) — https://fred.stlouisfed.org/series/CPILFESL
- FRED: 3-month Treasury constant maturity yield (DGS3MO) — https://fred.stlouisfed.org/series/DGS3MO
- SPDR S&P 500 ETF (SPY): fund page, daily closes with dividends reinvested — https://www.ssga.com/us/en/intermediary/etfs/spdr-sp-500-etf-trust-spy
- Vanguard Total Bond Market Index Fund (VBMFX): fund page, closes with interest reinvested — https://investor.vanguard.com/investment-products/mutual-funds/profile/vbmfx
- World Gold Council: gold price data ($ per troy ounce) — https://www.gold.org/goldhub/data/gold-prices
- FRED: S&P 500 index (S&P Dow Jones Indices), daily closes — https://fred.stlouisfed.org/series/SP500

Educational content, not investment advice. Past results don't guarantee future results.
