How-to · Research and portfolio
Money-Weighted Return With Cash Flow Dates, Worked Through
A money-weighted return depends on when each dollar arrived or left, down to the day. Get the dates and the signs right and the sum is short; get either wrong and the rate is meaningless.
The short version · about 25 minutes
- Write down the start date, end date and the account value on each
- List every deposit and withdrawal with its exact date, deposits positive and withdrawals negative
- Weight each flow by the share of the period it stayed in the account
- Divide the dollar gain by the starting value plus the weighted flows for the Modified Dietz estimate
- Confirm with a date-based IRR function in a spreadsheet
Take the closing balance, add back what you took out, and subtract both what you put in and what you started with. That gives you dollars. The money-weighted return turns those dollars into a rate. To do it honestly it needs one more thing per cash flow, the date, because a $10,000 deposit made in the first week of January was invested and exposed to the market for the whole year. The same deposit in December barely worked at all, and any rate that treats the two alike will flatter or punish you for a coincidence of the calendar.
What the dates change
The money-weighted return answers one question. What rate did your money earn, given when it went in and came out? That question is why the same figure also goes by dollar-weighted return or, in spreadsheet terms, the internal rate of return on the account, and all three names describe one calculation.
The portfolio return guide shows the idea with one deposit at mid-year. Real accounts are messier. Contributions land on payday. Withdrawals happen when a bill is due. Each one needs its own weight.
The weight is simple. Count the days. Divide by the days in the period, so that money deposited on day 1 of a 365-day year gets a weight close to 1 and money that sat in the account for only a few weeks gets a weight close to zero. Money in on day 300 gets about 0.18.
A year with four cash flows
Take a hypothetical account. It starts the year at $20,000 and ends at $27,000.
| Date | Flow | Days left in year | Weight |
|---|---|---|---|
| Feb 1 | Deposit $3,000 | 334 | 0.915 |
| May 1 | Deposit $3,000 | 245 | 0.671 |
| Aug 1 | Withdrawal $2,000 | 153 | 0.419 |
| Nov 1 | Deposit $3,000 | 61 | 0.167 |
Days left runs from the flow date to the close of December 31, out of 365. Weights are rounded to three places.
A zero. The account looks bigger, yet every extra dollar came from you. See it before any rate. The portfolio profit page covers the dollar sum in more depth, and for the rest of the example one number changes: say the year ended at $28,500 instead, which leaves a gain of $1,500 to turn into a rate.
The Modified Dietz shortcut
Modified Dietz divides the dollar gain by the average capital at work. Average capital is the starting value plus each flow times its weight. Withdrawals go in as negatives.
It’s a close estimate. It assumes the gain built up evenly over the year, so in a year with a sharp move right after a big deposit it drifts from the exact answer.
The exact rate with a date-based IRR
The exact money-weighted return is the rate r that grows every amount to the end date and lands on the ending value. In symbols, each flow is multiplied by (1 + r) raised to its weight. No formula isolates r, so you solve by trial or let software do it.
Most spreadsheets have a function, usually named XIRR, that takes a column of amounts and a column of dates and returns an annual rate. Signs trip people up. Treat the account as an outside investment: money you put in is negative, money you take out is positive.
The starting value goes in as a deposit on the first date. The ending value goes in as a withdrawal on the last date, as if you’d closed the account and taken it all. Leave either out and the function returns an error or a nonsense rate.
Periods shorter or longer than a year
Date-based IRR functions report an annual rate. Run one over three months and the answer is annualized, so a 2% gain in a quarter shows up as something above 8%, which is correct arithmetic and a poor way to describe three months to anyone who wants to know how the account actually did. Use it with care. For a short period, the Modified Dietz figure, which is not annualized, is the better number to quote.
Over several years the annual rate is what you want. Compare it with a benchmark’s annualized total return over the same dates, and remember that a fund’s published figure is time-weighted, so the gap between the two is partly your timing and partly the holdings.
Where people go wrong
- Using the month instead of the day. Rounding every flow to month end can move the rate noticeably when deposits are large compared with the account.
- Counting dividends and interest as deposits. If they were paid into the account and stayed there, they’re part of the return. Only money that crossed the account’s boundary counts as a flow.
- Flipping the signs halfway down the column, which makes withdrawals look like contributions and drags the rate toward zero or past it.
- Forgetting fees charged from outside the account. Pay an advisory fee by separate check and the account’s return ignores it. Your real result is lower.
- Reading a high money-weighted return as proof of skill in picking stocks. It also rewards adding money just before a rally, which might be luck.
Keep a dated list of every transfer as it happens, in a spreadsheet or a trading journal, and the whole calculation takes five minutes at year end. More research tasks set out step by step are in the how-to guides.
Related questions
Is money-weighted return the same as dollar-weighted return?
Yes. Money-weighted, dollar-weighted and the internal rate of return on an account all describe the same calculation: the single rate that links the starting value, each dated cash flow and the ending value.
Can the money-weighted return be negative when the account made a profit?
Over a full period with ordinary deposits, no. If the dollar profit is positive, the rate that explains it is positive too. It can sit far from the time-weighted figure, though, and it can look extreme over very short periods once annualized.
Why does my broker's figure differ from my own?
Brokers differ in method. Some show time-weighted return, some money-weighted, some a simple figure, and they may treat dividends, fees or transfers of securities differently. The account's performance page usually names the method in a footnote.