Skip to content
Hands-on Mentor
ENTR
Back to blog

What is inflation? How rising prices shrink your money

Inflation is a general rise in prices over time. See how it is measured, how it compounds, and how it lowers what your savings can buy.

4 min read

Inflation is a general rise in the prices of goods and services over time. One item getting more expensive is not inflation. Inflation means the average price of many things people buy regularly goes up. When it happens, the same amount of money buys less, which is called a loss of purchasing power. (All rates in this article are example numbers chosen to show the math, not real data for any country.)

How is inflation measured?

A national statistics office builds a basket of things a typical household buys: food, rent, transport, clothing, education, health care and more. Each item gets a weight based on its share of spending. The office prices the basket every month and turns it into a price index, often called a consumer price index (CPI).

You will hear two rates in the news:

  • Monthly inflation: the change in the index since the previous month.
  • Annual inflation: the change in the index since the same month last year.

The formula is always the same: (new value - old value) / old value.

What does a student's basket look like?

Here is a small monthly basket for a student, in two different years:

ItemLast yearThis year
Rent$600$630
Food$300$321
Transit$60$63
Total$960$1,014
last_year = 960
this_year = 1014

inflation = (this_year - last_year) / last_year
print(f"Basket inflation: {inflation * 100:.2f}%")
OutputBasket inflation: 5.62%

This student's personal inflation is about 5.6%. The items did not rise at the same speed: rent rose 5%, food 7% and transit 5%. Food rose fastest, but rent is the biggest item, so it pulls the total toward 5%. That is what a weight does in an index. The official rate describes an average household. If you spend your money differently, your own rate can be higher or lower.

How does inflation affect savings?

Inflation lowers what your savings can buy. Say prices rise 4% a year and you keep $1,000 in cash. After one year the cash is still $1,000, but it buys what about $961.54 bought before (1,000 / 1.04). After ten years it buys what $675.56 buys today.

rate = 0.04
print(round(1000 / (1 + rate), 2))
print(round(1000 / (1 + rate) ** 10, 2))
Output961.54
675.56

Economists use two words for this:

  • Nominal value: the number written on the money.
  • Real value: what that money can buy after inflation.

If your pay rises 3% while prices rise 4%, you earn more dollars but you can buy slightly less.

How does inflation compound over the years?

Each year's price rise is added on top of last year's prices. So 4% a year for five years is more than 20% in total:

YearPrice of a basket that started at $100
0$100.00
1$104.00
2$108.16
3$112.49
4$116.99
5$121.67

This is the same math as compound interest. Do not add the yearly percentages: five years at 4% is 21.7%, not 20%.

What is the difference between inflation and deflation?

Inflation means prices rise. Deflation means the general price level falls. Between them is disinflation, where prices still rise but more slowly. If inflation drops from 4% to 2%, prices keep rising, just at half the speed.

SituationYearly rateA $100 basket after one year
Inflation4%$104.00
Disinflation (rate fell)2%$102.00
Deflation-2%$98.00

What causes inflation?

Economists debate this, and several causes can act together:

  • Demand: total spending grows faster than the economy can produce.
  • Costs: energy, raw materials or imported goods get more expensive, so producers raise prices.
  • Expectations: if people expect higher prices, they ask for higher pay and firms set higher prices in advance.
  • Money supply: if the amount of money grows faster than output, prices can rise.

Central banks try to keep inflation steady, mostly by changing interest rates.

Common mistakes

  • Adding yearly percentages: compounding makes the total larger than the sum.
  • Calling one price rise inflation: a single item rising does not show the general price level.
  • Reading a nominal raise as a gain: a raise smaller than inflation is a real loss.
  • Thinking lower inflation means lower prices: prices only rise more slowly.
  • Mixing monthly and yearly rates: compare rates over the same period.

What to read next

  • Practice the idea in the lesson [Purchasing power](/learn/economics-finance/purchasing-power), or see the whole [Economics and Finance Basics course](/courses/economics-finance).
  • See how inflation changes returns in [Real vs nominal return](/blog/real-vs-nominal-return).
  • Practice percent change in Python in the lesson [Numbers and math](/learn/python/numbers-math).

*This article is not investment advice.*

  • #economics
  • #inflation
  • #price index
  • #purchasing power
All posts