Portfolio XIRR workbench
Fill a small Excel file with your transactions and current values, and get the yearly return of each holding and of the whole portfolio, in a workbook with live formulas.
Fill a file, get your rates
Download the template, fill it with your transactions and current values, upload it, then download the worked copy. Everything runs in this browser; nothing is sent anywhere.
Reads .xlsx, .xlsm and .xls files up to 5 MB, with at most 5,000 transaction rows.
How the XIRR workbench works
XIRR is the yearly return of dated money flows: money goes into a holding on some days, comes out on others, and today the holding is worth something. XIRR is the one yearly rate that makes the present value of all those flows add up to zero, so each flow counts for as long as it stayed in the holding.
A simple return divides the gain by the money put in and ignores dates, so 20% over one year and 20% over ten years read the same. XIRR weighs every flow by how long it sat in the holding. So a portfolio with one old large deposit and one recent small deposit can show a small XIRR beside a large simple return.
The file has two sheets to fill. Transactions holds one row per deal: a date, the holding's name, a type and an amount. The type is Buy, Sell, Dividend, Interest or Fee, and the amount is always a positive number — the page sets the sign, so a buy counts as money out and a dividend as money in. Values holds one row per holding: its name, its current value and the value date. Dates read as date cells, 2024-01-31 text, or Excel serial numbers.
Try the example fills the page with a three-holding workbook: holding A buys 10,000 and 5,000 and is worth 18,000 two years on, holding B buys in three times with one dividend, and holding C sells part way through. Their rates come to 10.44%, 5.01% and 4.24%, and the whole portfolio, all ten flows together, comes to 7.75%. The worked download carries the same figures as live Excel formulas, so the working shows.
Questions about the XIRR workbench
What is XIRR?
XIRR is the yearly return of dated money flows. It is the one yearly rate that makes the present value of every flow add up to zero, so each flow counts for as long as it stayed invested. Excel has a function of the same name that uses the same day count.
Why does XIRR differ from a simple return?
A simple return divides the gain by the money put in and ignores dates, so 20% over one year and 20% over ten years read the same. XIRR weighs each flow by how long it sat in the holding. A portfolio with one old large deposit and one recent small deposit can show a small XIRR beside a large simple return.
What does the file need to look like?
A Transactions sheet with the headers Date, Holding, Type and Amount, and a Values sheet with Holding, Current value and Value date. The type is Buy, Sell, Dividend, Interest or Fee, and the amount is always typed as a positive number — the page sets the sign. Extra columns are left alone, and dates read as date cells, 2024-01-31 text, or Excel serial numbers.
Can I check the figures?
Yes. In the worked download every holding's rate is a live XIRR formula over its block of the Flows sheet, the whole portfolio's over the All flows sheet, every money total is a SUMIF over the same block, and the value now points at its flow. Change a number in the workbook and Excel recomputes the rates.
Where does my data go?
Nowhere. The file is read in this browser, the sums run in this browser, and the worked copy is built in this browser. The only network request the page makes is the small Excel code module, fetched the first time a file button is clicked, and nothing in your workbook travels with it.
This tool shows math, not advice.