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.
- 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), 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:
=(E32/E31)/(1+C32)-1How 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.
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:
=AVERAGEIF('Real returns 1994+'!D4:D35,"High",'Real returns 1994+'!I4:I35)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.
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. 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, which leaves out food and energy, peaked later, at 6.6% in Sep 2022.
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. 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.
Where is inflation now?
Here is the full CPI history, with core CPI and the 3% line:
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.
- 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 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.
Every number above comes from this article's spreadsheet, rebuilt from market data each trading day. Open the full sheet or download the .xlsx and check the formulas yourself.
What I use for this
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.
See more detailsA 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.
See more detailsFAQ
Sources
- Neville, Draaisma, Funnell, Harvey & Van Hemert: The Best Strategies for Inflationary Times (Journal of Portfolio Management, 2021) scholars.duke.edu
- FRED: Consumer Price Index for All Urban Consumers (CPIAUCSL) fred.stlouisfed.org
- FRED: Core CPI, less food and energy (CPILFESL) fred.stlouisfed.org
- FRED: 3-month Treasury constant maturity yield (DGS3MO) fred.stlouisfed.org
- SPDR S&P 500 ETF (SPY): fund page, daily closes with dividends reinvested ssga.com
- Vanguard Total Bond Market Index Fund (VBMFX): fund page, closes with interest reinvested investor.vanguard.com
- World Gold Council: gold price data ($ per troy ounce) gold.org
- FRED: S&P 500 index (S&P Dow Jones Indices), daily closes fred.stlouisfed.org
Numbers marked "in my numbers" come from my own spreadsheets, built from dividend-adjusted daily prices through Nov 27, 2026 and public FRED data, and recalculated every trading day. Educational content, not investment advice. Past results don't guarantee future results.