The calculator
Real return3.88%
Naive subtraction4.00%
(1 + 7.0%) ÷ (1 + 3.0%) − 1 = 3.88%. Subtracting would have said 4.00%.
Why not subtract
A 50% nominal gain with 50% inflation is not a 0% real gain — it is a 0% real return only under the Fisher identity, and a −25% real loss if you think in prices of a $100 basket that became $150. At 3% the two methods almost agree. At 1970s inflation they do not. The safe withdrawal rate calculator works in real terms for that reason.
Assumptions
One period. No compounding layer beyond the identity. No taxes.