Sub topic 3
Money-Weighted Return and the Effect of Cash Flows
This chapter assumes you can compute a holding period return, compound returns across periods, and discount a cash flow to present value. It also assumes you know the time-weighted return (TWR) from the previous chapter. Here you will learn what the money-weighted return (MWR) measures, how to compute it, and why it can differ sharply from the TWR on the same account.
What the money-weighted return measures
The money-weighted return is the internal rate of return (IRR) of the account's cash flows. It is the single discount rate at which the present value of all contributions and withdrawals equals the present value of the ending value.
Take the investor's point of view:
- A contribution is an outflow from the investor's pocket, so it gets a negative sign.
- A withdrawal is an inflow to the investor, so it gets a positive sign.
- The ending market value is treated as a final inflow, as if the investor liquidated the account.
- The beginning value is treated as an initial outflow, as if the investor bought the account.
The MWR rate r solves this equation:
0 = CF0 + CF1/(1+r) + CF2/(1+r)^2 + ... + CFn/(1+r)^n
The MWR weights each period by the amount of money invested during it. A good year with a large balance counts for more than a good year with a small balance. The TWR gives every period the same weight, whatever the balance.
Worked example: same manager, different timing
A client opens an account with 100. The manager earns +20% in year 1, so the account is worth 120. The client adds 80 at the end of year 1, and the balance becomes 200. The manager then loses 10% in year 2, leaving 180.
The cash flows from the client's side are:
| Time | Flow | Explanation |
|---|---|---|
| 0 | -100 | Initial funding |
| 1 | -80 | Added contribution |
| 2 | +180 | Ending value |
The TWR ignores the contribution:
- Two-year TWR = 1.20 × 0.90 − 1 = 8.00%.
- Annualized TWR = 1.08^0.5 − 1 ≈ 3.92%.
The MWR solves -100 − 80/(1+r) + 180/(1+r)^2 = 0. Let x = 1/(1+r). The equation becomes 9x² − 4x − 5 = 0, which gives x = 1, so r = 0%. The client put in 180 in total and has 180 at the end. The client's own dollar-weighted experience is break-even.
The TWR is positive and the MWR is zero because the client added most of the money just before the weak year. The manager did not cause that timing.
Now reverse the order of the returns. The manager earns -10% in year 1 and +20% in year 2, and the client adds 80 at the end of year 1:
- The account grows from 100 to 90, then to 170 after the contribution, then to 204.
- The TWR is the same 8.00% (3.92% annualized), because multiplication does not depend on order.
- The MWR solves -100 − 80/(1+r) + 204/(1+r)^2 = 0, which gives about 8.3%.
The MWR now exceeds the TWR, because the larger balance was invested during the better year.
Computing the IRR in code
An IRR has no closed form for more than two periods, so solvers search for the root. This bisection solver is complete and runs as written. It uses time measured in years and requires a sign change in the NPV across the search interval.
def npv(rate, flows):
return sum(cf / (1.0 + rate) ** t for t, cf in flows)
def irr(flows, lo=-0.99, hi=1.0, tol=1e-12):
f_lo, f_hi = npv(lo, flows), npv(hi, flows)
if f_lo * f_hi > 0:
raise ValueError("No sign change in bracket; widen it or check the flows")
while hi - lo > tol:
mid = (lo + hi) / 2.0
f_mid = npv(mid, flows)
if f_lo * f_mid <= 0:
hi = mid
else:
lo, f_lo = mid, f_mid
return (lo + hi) / 2.0
# (time in years, flow from the investor's side)
late_add = [(0, -100.0), (1, -80.0), (2, 180.0)]
early_add = [(0, -100.0), (1, -80.0), (2, 204.0)]
print(round(irr(late_add), 6) + 0.0) # 0.0
print(round(irr(early_add), 4)) # 0.0832
print(round(1.08 ** 0.5 - 1.0, 5)) # 0.03923 (annualized TWR, both cases)When each measure is appropriate
The right measure depends on who controls the cash flows.
| Situation | Better measure | Reason |
|---|---|---|
| Evaluating a manager whose clients add and withdraw money | TWR | The manager does not control flow timing, so it should not affect the manager's score. |
| Evaluating a manager who decides when capital is called and returned (private equity, venture capital, some real estate) | MWR | Timing of flows is part of the manager's decisions. |
| Measuring what the investor actually earned on the dollars invested | MWR | It reflects the investor's own timing and balance. |
| Comparing managers or comparing to a benchmark | TWR | Benchmarks are time-weighted, so the comparison is like for like. |
A large gap between MWR and TWR is a signal. If the MWR is much lower, the client or sponsor tended to add money before weak periods and withdraw it before strong ones. That is a decision about timing, and it is outside the manager's control.
Common errors and edge cases
- Wrong signs. The IRR needs the flows to be signed from one consistent viewpoint. If you enter the contribution and the ending value with the same sign, the solver finds no root or a meaningless one.
- Forgetting the ending value. The ending market value is the last cash flow. Leaving it out turns the problem into "what rate makes my deposits worthless."
- Mismatched period length. If flows are placed at quarterly intervals, the IRR is a quarterly rate. Annualize it with (1 + r_quarter)^4 − 1, not by multiplying by 4. Dividing the exponent by days, as in t = days/365, avoids rounding the timing to period ends.
- Annualizing a short-period return. An MWR over 3 months is a 3-month return unless you compound it. Do not present it as an annual figure without saying so.
- Multiple IRRs. The equation is a polynomial in 1/(1+r). When the flows change sign more than once, it can have more than one valid root. Flows of -100 at time 0, +230 at time 1, and -132 at time 2 produce both 10% and 20%, and each makes the NPV zero. A bisection with a bracket that straddles one root silently returns that one. If your flows change sign more than once, such as an account with a withdrawal followed by a later contribution, check for several roots before you report one.
- Comparing an MWR to a benchmark. A benchmark return is time-weighted, so setting the account's MWR against it mixes two different calculations.
A practical shortcut: the Modified Dietz idea
Exact IRR needs a solver and a full record of flow dates. When you only have the start value, end value, and a handful of flows, a common approximation weights each flow by the fraction of the period it was invested. The result tracks the IRR closely for small flows and short periods, but it does not replace the IRR when flows are large relative to the balance. Treat it as an estimate and know that the exact answer is the IRR.
Exercise
A client opens an account with 50. The manager returns +10% in year 1, so the balance is 55. The client then adds 45, making the balance 100. In year 2 the manager returns +30% and the ending value is 130. Compute the two-year TWR and the MWR. Which is higher, and why?
Show answer
TWR = 1.10 × 1.30 − 1 = 43.0% over two years, or 1.43^0.5 − 1 ≈ 19.6% annualized. For the MWR, the flows are -50 at time 0, -45 at time 1, and +130 at time 2. Set x = 1/(1+r): 130x² − 45x − 50 = 0, so x = (45 + sqrt(2025 + 26000))/260 = (45 + 167.41)/260 ≈ 0.8170, and r ≈ 22.4%. The MWR is higher than the annualized TWR because the client added a large amount before the stronger year (+30%), so more money earned the better return.