Skip to content

The investing glossary

The Modified Dietz method weights each cash flow by time.

The Modified Dietz method estimates a money-weighted return for one period. It divides the gain by the average capital invested. Each deposit or withdrawal counts for the share of the period left after it.

Unlike an IRR, it needs no trial and error. Interactive Brokers uses it for the money-weighted return in PortfolioAnalyst. New to the idea? Start with the money-weighted return definition.

The formula

The Modified Dietz formula, in words and symbols

Modified Dietz looks at one period, such as a month or a year. It needs the value at the start, the value at the end, and the date and amount of every external cash flow. An external cash flow is money that enters or leaves the portfolio, such as a deposit, a withdrawal or a transfer of shares. Buying a stock with cash already in the portfolio is not one.

  1. Gain = end value − start value − net cash flows
  2. Weight of a flow = days left in the period after the flow ÷ days in the period
  3. Average capital = start value + each flow × its weight
  4. Modified Dietz return = gain ÷ average capital

RMD = (VE − VB − Σ CFi) ÷ (VB + Σ wi × CFi)

wi = (D − Di) ÷ D

VB, VE
Value at the start and at the end of the period
CFi
External cash flow i. A deposit is positive, a withdrawal negative.
D
Calendar days in the period
Di
Calendar days from the start of the period to flow i
wi
Weight of flow i, from 0 to 1

The GIPS Handbook gives this weight for flows counted at the end of their day. IBKR counts account cash flows at the end of the day too. A flow counted from the start of its day gets one more day: (D − Di + 1) ÷ D.

Synthetic example · USD · not market history

A worked example, step by step

A portfolio is worth $10,000 at the end of 31 December 2024. A deposit of $20,000 arrives on 30 June 2025. The portfolio is worth $36,000 at the end of 31 December 2025. The figures are invented and chosen so that the gap with an IRR is easy to see.

The whole example. The period lasts 365 days, with no other flows.
DateEntryUSD
Start value10,000
Deposit+20,000
End value36,000

Start value · $10,000365 of 365 days · weight 1

Deposit on 30 June · $20,000184 of 365 days · weight 0.5041

Fig. 1Each amount counts for the share of the period it was invested. The deposit was in for 184 of the 365 days.
  1. Gain. $36,000 − $10,000 − $20,000 = $6,000. The deposit is your own money, not a gain, so it comes off.
  2. Weight of the deposit. It counts from the end of 30 June, day 181 of 365. That leaves 184 days, so its weight is 184 ÷ 365 = 0.5041.
  3. Average capital. $10,000 + $20,000 × 184 ÷ 365 = $20,082.19.
  4. Modified Dietz return. $6,000 ÷ $20,082.19 = 29.88%.

Same flows, two methods

Modified Dietz vs a dated IRR on the same flows

A dated IRR is the method behind Excel’s XIRR. It looks for the one yearly rate that turns the same flows into the same end value. Both methods give the deposit the same 184 days. They differ in how money grows inside the period.

Modified Dietz · simple growth

10,000 × (1 + R) + 20,000 × (1 + R × 184/365) = 36,000

This is the formula above, written another way. One division gives R = 29.88%.

Dated IRR · compound growth

10,000 × (1 + r) + 20,000 × (1 + r)184/365 = 36,000

No formula gives r directly. Trial and error finds r = 30.91%.

Modified Dietz
29.88%Return for the period
Dated IRR
30.91%Yearly rate, actual days ÷ 365
Difference
1.0Percentage point

The dated IRR counts actual days and divides by 365, like Excel’s XIRR. This period lasts exactly 365 days, so the yearly IRR is also the return for the period. We computed it with the same IRR calculation as PerfectPerf’s audit and checked it with an independent solver.

How each method reaches the same $36,000
Amount and time investedModified DietzDated IRR
Start value $10,000, 365 days$12,987.72+29.88%$13,091.25+30.91%
Deposit $20,000, 184 days$23,012.28+15.06% simple$22,908.75+14.54% compound
End value$36,000.00$36,000.00

Why the gap appears

Both methods look for one constant rate. Modified Dietz lets money grow by simple interest inside the period. The deposit gets 29.88% × 184 ÷ 365 = 15.06%. The IRR compounds. The deposit gets 1.3091 to the power 184 ÷ 365, minus 1, which is 14.54%.

Over part of a year, simple interest gives more than compounding at the same rate. At 30.91%, simple interest would give the deposit 15.58% instead of 14.54%. So Modified Dietz credits the deposit with more growth, and it reaches $36,000 at a lower rate.

Neither method knows how prices moved between the two valuations. The whole gap comes from simple versus compound growth.

Same dates, other amounts

When the gap is small and when it grows

Start value $10,000 at the end of 31 December 2024. Deposit, if any, on 30 June 2025. End value at the end of 31 December 2025.
Deposit and end valueModified DietzDated IRR
$20,000 deposit, $36,000 end (the example)29.88%30.91%
$20,000 deposit, $31,600 end7.97%8.04%
$20,000 deposit, $24,000 end−29.88%−28.67%
$1,000 deposit, $11,880 end8.38%8.39%
No deposit, $13,000 end30.00%30.00%
  • With no flow, both methods give (end value − start value) ÷ start value. A single flow on the start date or the end date gives one result with both methods too.
  • The gap grows when flows are large compared with the portfolio and when the return is far from zero, up or down. In the table, a $1,000 deposit leaves a gap of about 0.01 points.
  • With deposits only, Modified Dietz comes out at or below the dated IRR for the same period. A withdrawal can push it above.

A second use

Modified Dietz and time-weighted return

Over one period, Modified Dietz is a money-weighted return, like an IRR. The GIPS Handbook also describes a second use. A firm computes it for short periods, such as months, and links the results to approximate a time-weighted return. Valuing the portfolio at each large flow makes that estimate more accurate.

In your broker’s report

Where Interactive Brokers uses Modified Dietz

Interactive Brokers uses the Modified Dietz method for the money-weighted return (MWR) in PortfolioAnalyst. Its report notes say the method values the portfolio only at the start and end of the period and weights the cash flows. They add that its accuracy can diminish when large flows occur.

IBKR’s PortfolioAnalyst whitepaper gives the formula and a one-month example. It counts account cash flows, such as deposits, withdrawals and position transfers, at the end of the day. It also says that, unlike an IRR, Modified Dietz needs no trial and error.

So a PortfolioAnalyst MWR and an XIRR on the same flows can differ, as in the example above. Check the method before you compare two figures. Our TWR vs MWR guide shows where to choose MWR in a PortfolioAnalyst report.

A method you can reuse

Check a reported figure yourself

  1. Take the start value, the end value and every deposit, withdrawal or transfer in the period, with its date. Use one report, one account and one currency.
  2. For each flow, count the days left in the period after it. Divide by the days in the period to get its weight.
  3. Divide the gain by the average capital, as in the steps above.
  4. For a dated IRR, enter the start value and each deposit as negative amounts. Enter each withdrawal and the end value as positive amounts. Then use XIRR with their dates.
  5. If the period does not last 365 days, turn the XIRR into a return for the period before you compare: (1 + XIRR) to the power (days ÷ 365), minus 1.

In a spreadsheet, put the start and end values in B1 and B2, and the start and end dates in C1 and C2. List the flows in B4:B20 with their dates in C4:C20, deposits positive. This formula gives the Modified Dietz return:

=(B2-B1-SUM(B4:B20))/(B1+SUMPRODUCT(B4:B20,(C2-C4:C20)/(C2-C1)))

If your figure and the report’s still differ, look for a missing flow, a flow on another date or a different valuation.

Assumptions and sources

Synthetic example in USD. The values, dates and returns are invented. They describe no security, market history or forecast. No fees, taxes, dividends or currency effects. Each flow counts at the end of its day. Figures are rounded for reading. The calculations use unrounded values.

This is a glossary lesson, not an audit result, an investment recommendation or a claim of GIPS compliance. Sources checked 20 November 2026.