This is discussed in more detail in these posts:
OUTstanding money: The inflation monster
Cash Club: Compounding vs inflation
Wealthy Maths: Calculate inflation
Wealthy Maths: Nominal vs effective interest
Podcast: Capital gains and inflation
OUTstanding money: The inflation monster
Cash Club: Compounding vs inflation
Wealthy Maths: Calculate inflation
Wealthy Maths: Nominal vs effective interest
Podcast: Capital gains and inflation