← Learn

How Do You Calculate the Inflation Rate?

June 30, 2022

Inflation rate is calculated by comparing the Consumer Price Index (CPI) between two points in time: subtract the base year’s value from the target year’s value, divide by the base year’s value, then multiply by 100 to get a percentage. That gives you the total inflation rate over the period; a related formula spreads that same change evenly across each year to get an average annual rate. Both are simple enough to calculate by hand once you know the terms.

The inflation rate formula

There are two common ways to express inflation:

Total inflation rate — the total change in prices (or CPI) over a given period:

((Target Year − Base Year) ÷ Base Year) × 100

Average annual inflation rate — the same change, expressed as a steady annual rate over that period:

(((Target Year ÷ Base Year) ^ (1 ÷ Years in Time Frame)) − 1) × 100

A few terms are worth knowing before you plug in numbers:

A worked example

Say a loaf of bread cost $1.00 in 1980, and by some later year it cost $2.00 — a 40-year span.

Total inflation rate:

(($2.00 − $1.00) ÷ $1.00) × 100 = 100%

The price of bread doubled over that period — a 100% total increase.

Average annual inflation rate, step by step:

  1. Divide the target value by the base value: $2.00 ÷ $1.00 = 2
  2. Divide 1 by the number of years: 1 ÷ 40 = 0.025
  3. Raise the result of step 1 to the power of the result of step 2: 2^0.025 ≈ 1.0175
  4. Subtract 1: 1.0175 − 1 = 0.0175
  5. Multiply by 100 to express as a percentage: 0.0175 × 100 ≈ 1.75%

So even though prices doubled over 40 years, that works out to a modest-sounding average of roughly 1.75% per year. That’s the core lesson of inflation: a small annual rate compounds into a large change over long periods, which is why it’s easy to underestimate.

U.S. inflation rate, 1960–2020

Calculating your own personal inflation rate

The official inflation rate reflects a broad basket of goods and services, but your own cost of living might rise faster or slower than that average, depending on what you actually spend money on. You can apply the same formula to your own numbers: pick a category you track closely — rent, groceries, insurance premiums — note what you paid in a past year (your base year) and what you pay now (your target year), and run it through the total or average annual formula above.

This is a useful exercise if a budget that used to feel comfortable suddenly feels tight. Rather than assuming something has gone wrong with your spending habits, calculating your personal inflation rate in a specific category can show you whether prices in that category have simply outpaced the broader average — which is common in categories like housing, healthcare, and insurance.

Why inflation happens

Economists generally group the causes of inflation into two categories.

Cost-push inflation happens when the cost of producing goods rises — for example, when raw materials like petroleum, precious metals, or agricultural commodities become more expensive to source. Manufacturers pass those higher costs on to consumers. Generally speaking, no one really “benefits” from cost-push inflation — suppliers are covering higher costs, and retailers often see their profit margins shrink in the process.

Demand-pull inflation happens when demand for a good or service outpaces supply, even though the underlying cost to produce it hasn’t changed. Rising home prices during a period of low inventory and high buyer demand are a familiar example. Unlike cost-push inflation, demand-pull inflation can benefit the seller — their costs stay flat while the price they can charge goes up.

Either way, the effect on your wallet is the same: your money buys less than it used to.

How inflation affects your retirement plan

Inflation matters most in retirement because the dynamic reverses. During your working years, you’re contributing to savings and can adjust your contributions as prices rise. In retirement, you’re typically withdrawing from a fixed pool of savings to cover living expenses instead. If inflation runs higher than expected, or your investment returns don’t keep pace with it, you end up drawing down your principal faster than planned — which can mean your savings run out sooner than you expected.

This is one of the reasons a durable retirement plan needs to account for inflation explicitly, rather than assuming today’s cost of living will hold steady for the next few decades. A target that looks comfortable in today’s dollars can fall meaningfully short by the time you actually need it, simply because of how compounding price increases work over a long retirement.

Nominal vs. real returns

Once you understand how to calculate inflation, it’s worth applying the same idea to your investment returns. Your nominal return is the raw percentage your investments gained before accounting for inflation. Your real return is that same gain adjusted for inflation — in other words, how much your purchasing power actually grew.

If your investments grew by a healthy-sounding percentage in a given year, but inflation ran nearly as high over that same period, your real return — the part that actually improved your buying power — may be much smaller than the headline number suggests. This is why long-term financial goals, including retirement targets, are more useful when expressed in terms of real, inflation-adjusted growth rather than nominal dollar figures alone. A number that sounds impressive in nominal terms can still leave you falling behind if inflation is eating into it faster than you realize.

The bottom line

You don’t need to track inflation data to build a sound retirement plan, but understanding how the rate is calculated — and how a small annual percentage compounds into a much larger change over decades — helps explain why your retirement target should be expressed in future purchasing power, not just today’s dollar amount. Building that assumption into your plan from the start is one of the simplest ways to avoid an unpleasant surprise later.