How it works
Everything you put in is added up: the price, the stamp duty and registration, the brokerage, and any capital improvements. Everything you got out is added up too: the sale value less selling costs, plus net rent. The compound annual growth rate between those two figures is the real return.
Alongside it, the headline appreciation — sale price over purchase price — is reported. That is the figure quoted in conversation and in most market commentary, and the difference between the two is the point of this calculator.
More detail
Transaction costs are paid once but drag on the return for as long as you hold. On a five-year hold, 10% of costs is a drag of nearly two percentage points a year; over twenty years the same costs cost about half a point. This is the strongest financial argument for holding property a long time, and it does not appear in any price index.
Rent is entered as a single net total rather than a dated series, which keeps the input simple at the cost of ignoring when it arrived. For a precise return on an irregular rent stream, an XIRR calculation would be needed.
To see what tax the sale attracts, use the capital gains calculator.
To weigh buying against renting and investing, see the rent versus buy calculator.
To compare against any other investment, try the CAGR calculator.