The Fisher equation
A nominal return is growth in dollars; a real return is growth in what those dollars buy. Irving Fisher set out the link in The Theory of Interest (1930): (1 + nominal) = (1 + real) × (1 + inflation). Solving for the real rate gives the exact formula; subtracting inflation from the nominal rate is the familiar shortcut.
Real = (1 + nominal) ÷ (1 + inflation) − 1 ≈ nominal − inflation
The shortcut is close when rates are small and drifts as they grow: it is off by (nominal − inflation) × inflation ÷ (1 + inflation). Choose "CPI average" to use the compound average inflation between two years from the BLS CPI-U annual averages.
Example: 5% nominal with 3% inflation is a real return of 1.05 ÷ 1.03 − 1 = 1.942%, not 2%. Over 20 years $10,000 grows to $26,532.98, worth $14,690.67 in today's buying power.