How Inflation Affects the Stock Market: CPI, PCE and What Investors Should Know

Inflation reports can move US stocks more than almost any other data release. Learn how CPI and PCE work, why rising prices hurt some companies and help others, and how to protect your portfolio.
For much of the 2010s, inflation barely registered with stock investors. Prices rose slowly, interest rates stayed low and the monthly Consumer Price Index report was a footnote. Then, starting in 2021, inflation surged to its highest levels in roughly four decades, the Federal Reserve raised rates at the fastest pace in a generation, and inflation reports suddenly became some of the most market-moving events on the calendar.
Inflation affects nearly everything that matters to stock prices: corporate costs, consumer spending, interest rates and the valuation investors are willing to pay for future profits. Understanding how it works — and how different companies respond to it — is essential for any US stock investor. This guide explains how inflation is measured, how it flows through to stock prices, which sectors tend to win and lose, and practical steps to inflation-proof your portfolio.
What Is Inflation?
Inflation is the general rise in prices across the economy over time, which reduces the purchasing power of money. If inflation is 3% per year, something that costs $100 today will cost about $103 next year. Moderate, stable inflation is considered normal in a healthy economy; the Federal Reserve targets roughly 2% per year over time.
Problems arise when inflation runs too hot or becomes unpredictable. High inflation erodes savings, squeezes household budgets and forces the central bank to raise interest rates — which, as we explain in our guide to how the Federal Reserve moves the stock market, has powerful effects on stock valuations.
How Inflation Is Measured
The Consumer Price Index (CPI) CPI, published monthly by the Bureau of Labor Statistics, tracks the prices of a basket of goods and services bought by urban consumers — food, energy, housing, medical care, transportation, apparel and more. It's the most widely followed inflation measure and is usually released around the middle of each month at 8:30 a.m. Eastern Time.
Investors watch two versions:
- Headline CPI: Includes everything, including volatile food and energy prices.
- Core CPI: Excludes food and energy to show the underlying trend.
Markets focus on both the month-over-month change and the year-over-year change, and on how each compares with economists' forecasts.
The Personal Consumption Expenditures (PCE) Price Index The Fed's preferred measure is the PCE price index from the Bureau of Economic Analysis. It covers a broader range of spending, including purchases made on behalf of consumers such as employer-paid healthcare, and adjusts more quickly when people switch to cheaper substitutes. PCE inflation typically runs a bit lower than CPI.
The Producer Price Index (PPI) PPI measures prices received by domestic producers. Because businesses often pass their input costs on to consumers, PPI is sometimes viewed as an early signal for future CPI trends.

How Inflation Flows Through to Stock Prices
Inflation affects stocks through several channels at once, and they don't always point in the same direction.
1. Higher interest rates compress valuations When inflation rises, the Fed typically raises interest rates. Higher rates increase the discount rate investors use to value future earnings, lowering what those earnings are worth today. This is the main reason high inflation periods tend to coincide with lower price-to-earnings multiples. Our P/E ratio guide explains why multiples move with rates.
2. Rising costs squeeze profit margins Companies pay more for raw materials, energy, shipping and — especially — wages. If they can't raise their own prices fast enough, margins shrink and earnings fall short of expectations.
3. Revenue can rise in nominal terms Inflation also lifts the prices companies charge. Businesses with strong brands or essential products may grow revenue faster during inflationary periods, at least in dollar terms.
4. Consumers change their behavior When the cost of essentials rises, households cut back on discretionary purchases like travel, electronics and dining out. Companies dependent on discretionary spending can see demand weaken.
5. Uncertainty raises the risk premium Unpredictable inflation makes it harder for businesses to plan and for investors to forecast earnings. Investors typically demand a higher return to compensate, which pushes valuations down further.
Why Inflation Surprises Matter More Than the Level
As with earnings season, markets react to inflation data relative to expectations. If economists expect core CPI to rise 0.3% for the month and it comes in at 0.5%, stocks may sell off sharply as traders price in more Fed tightening. A softer-than-expected reading can spark a rally even if inflation is still well above the 2% target.
This is why you'll often see the biggest daily moves of the month on CPI day, with rate-sensitive sectors like technology and small caps swinging the most.
Which Sectors Win and Lose During Inflation
Sectors that have tended to hold up better - Energy: Oil and gas producers often benefit directly when energy prices drive inflation. - Materials: Mining and chemical companies can pass higher commodity prices through. - Consumer staples: Companies selling essentials with strong brands can often raise prices without losing many customers. - Financials: Banks may benefit from higher interest rates, though credit risk rises if the economy slows. - Real estate (selectively): Property owners with short leases can raise rents, though higher rates weigh on valuations. See our REIT guide.
Sectors that have tended to struggle - Long-duration growth stocks: Companies whose profits lie far in the future are most hurt by rising discount rates. Our growth vs. value guide explains why. - Consumer discretionary: Squeezed household budgets mean fewer non-essential purchases. - Companies with high fixed costs and weak pricing power: They absorb rising costs without being able to pass them on.
These are historical tendencies, not guarantees. Every inflationary episode has its own causes and dynamics.
Pricing Power: The Most Important Inflation Defense
Warren Buffett has said that the single most important decision in evaluating a business is pricing power — the ability to raise prices without losing business to competitors. Inflation is when pricing power is truly tested.
Signs of strong pricing power include:
- Stable or rising gross margins during periods of cost inflation.
- Strong brands, patents or network effects that make products hard to replace.
- Products that are a small portion of the customer's total cost but critical to them.
- High customer switching costs, such as enterprise software.
You can track gross margins over several years using the income statement — see our step-by-step income statement guide.

Stocks as a Long-Term Inflation Hedge
In the short run, high inflation is often bad for stocks. But over long periods, stocks have historically outpaced inflation by a wide margin. That's because companies own real assets and can, over time, raise prices along with costs. Cash and traditional bonds, by contrast, lose purchasing power when inflation exceeds their yield.
This doesn't mean stocks protect you every year — they clearly didn't in 2022, when both stocks and bonds fell. But for investors with long time horizons, owning productive businesses has been one of the most reliable ways to grow wealth faster than prices rise.
Practical Ways to Inflation-Proof Your Portfolio
- Stay invested in stocks for the long term. Historically, equities have been among the best inflation-beating assets over decades.
- Favor companies with pricing power and strong balance sheets.
- Diversify across sectors, including some that tend to benefit from inflation. Our diversification guide shows how.
- Consider dividend growers. Companies that raise dividends faster than inflation help protect your income. See our dividend investing guide.
- Hold Treasury Inflation-Protected Securities (TIPS) or I bonds for part of your safe assets. Their value adjusts with inflation. Learn more from TreasuryDirect.
- Don't hold excessive cash. Keep an emergency fund, but extra cash steadily loses purchasing power when inflation is elevated.
- Avoid overreacting to single reports. One hot or cool CPI print rarely changes the long-term picture.
Deflation and Disinflation: The Other Side
It's worth distinguishing a few related terms:
- Disinflation means inflation is falling but still positive — for example, from 6% to 3%. Disinflation has often been good for stocks because it allows the Fed to stop raising or start cutting rates.
- Deflation means prices are actually falling. Though it sounds appealing, deflation is often a sign of a weak economy and can be very damaging, because consumers delay purchases and debt burdens become heavier in real terms.
Key Takeaways
- Inflation is measured mainly by CPI and the Fed's preferred PCE index.
- Rising inflation tends to raise interest rates, compress valuations and squeeze margins.
- Markets react most to inflation surprises relative to forecasts.
- Energy, materials and staples have historically held up better; long-duration growth stocks have struggled.
- Over long periods, stocks — especially companies with pricing power — have outpaced inflation.




