Finance and Budgeting

Modified Dietz Return Calculator

Enter the start and end values and each deposit or withdrawal to get a return that adjusts for when the money came in.

Your numbers

Deposits and withdrawals
Cash flow 1

Cash flow 2

Result

Modified Dietz return

18.83%

364 days. Gain $10,000.00 on an average of $53,098.90 invested.

Gain after removing deposits and withdrawals
$10,000.00
Average capital invested (weighted)
$53,098.90
Net deposits (withdrawals negative)
$3,000.00
Annualized, compounded
18.89%
End value divided by start value, minus 1
26%

How each flow is weighted

Days after startAmountWeightWeighted amount
90$5,000.0075.27%$3,763.74
243($2,000.00)33.24%($664.84)
How this was calculated
  1. Gain = end value - start value - net cash flows = $63,000.00 - $50,000.00 - $3,000.00 = $10,000.00.
  2. Each flow is weighted by the share of the period it was invested: (end date - flow date) / total days.
  3. Return = gain / (start value + weighted flows) = $10,000.00 / $53,098.90 = 18.8328%.
  4. The annualized figure compounds the period return to 365 days. Over short periods it magnifies small differences, so read it with care.
  • Modified Dietz approximates a money-weighted return by treating each flow as earning a constant rate. It is close to the true return when flows are small or the markets are steady, and less so with large flows during sharp moves.

Calculated using SumPanda.com · https://sumpanda.com/modified-dietz-return-calculator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the modified dietz return calculator

  1. Enter the start date, the value on the start date, the end date and the value on the end date.
  2. Add each deposit as a positive amount and each withdrawal as a negative amount, with its date.
  3. Read the Modified Dietz return for the whole period, and the annualized figure.
  4. Open the weights table to see how much of the period each cash flow was invested.

Formula

gain = end value - start value - net cash flows

weight of a flow = (end date - flow date) / days in the period

return = gain / (start value + sum of flow x weight)

The denominator is the average capital invested over the period. The annualized figure is (1 + return)^(365 / days) - 1.

A year with a deposit and a withdrawal

A portfolio starts 2026 at $50,000 and ends the year at $63,000. It receives a $5,000 deposit on April 1 and pays out $2,000 on September 1. Net cash flows are $3,000, so the gain is $63,000 - $50,000 - $3,000 = $10,000.00.

The deposit was invested for 75.27% of the 364 day period, so it counts as $3,763.74. The withdrawal weighs 33.24%, so it counts as ($664.84). The average capital invested is $50,000 + $3,763.74 - $664.84 = $53,098.90, and the return is $10,000 / $53,098.90 = 18.83%. Compounded to 365 days, that is 18.89%. Dividing the end value by the start value gives 26%, which wrongly counts the new deposit as profit.

What Modified Dietz measures

A simple change in value mixes returns with deposits. Modified Dietz removes the deposits and withdrawals from the gain and divides by the money that was actually at work, giving each flow a weight for how long it was invested. It is a money-weighted measure, so it reflects the effect of when you added or removed money.

It is an approximation of the exact money-weighted return, because it assumes each flow earns a constant rate over the period. It is close when flows are small compared with the portfolio or the market is calm, and less so with large flows during sharp moves.

Other ways to measure a return

If you want to judge the investments themselves, apart from your timing, use the Time-Weighted Return Calculator, which links the returns between flows. For an exact money-weighted rate from dated cash flows, use the XIRR Calculator. The Investment Return Comparison Calculator compares two plans, and the ROI Calculator gives a simple gain on cost.

Assumptions and limits

  • Cash flows happen at the dates you give, and each flow is invested until the end date.
  • The start value is the value on the start date before any flow that day. A flow on the start date counts for the whole period.
  • The average capital invested must be above zero. Fees, taxes and income paid out are not modeled separately.
  • The result is information, not a forecast. Annualized returns over short periods can be misleading.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

What is the difference between Modified Dietz and time-weighted return?

Time-weighted return removes the effect of the size and timing of cash flows, so it judges investment skill. Modified Dietz includes that effect, so it reflects what you earned on the money you actually had invested.

Should deposits be positive?

Yes. Enter money added to the portfolio as positive and money taken out as negative. The sign decides whether the flow raises or lowers the average capital invested.

Why is the annualized figure different from the period return?

The period here is 364 days, so compounding to 365 days changes it slightly. For a six month period, annualizing roughly doubles the rate and can exaggerate a short result.

What if the end value is lower than the start value?

The return is then negative. The page shows it with a minus sign, and the annualized figure follows the same math, as long as the average capital invested is positive.