Estimate a portfolio's return over a chosen period when one contribution and one withdrawal occur between the two valuations. Enter the dates and values at the beginning and end, plus the amounts and dates for the external cash flows. The calculator uses the Modified Dietz method and shows the period return, investment change after removing flows, and weighted capital base.
Use valuations for the same portfolio, on a consistent basis. A deposit is cash added from outside the portfolio. A withdrawal removes money from it. A sale followed by holding cash inside the same measured portfolio is generally an internal transaction for this calculation. Do not enter that trade as an external withdrawal if the proceeds remain inside the value you are measuring.
Remove external money from the value change
Start by subtracting the opening value from the closing value. Subtract contributions from that difference and add back withdrawals. This gives the change net of the external cash flows. It separates gains or losses in the measured value from the movements of money that you entered.
The denominator begins with the starting portfolio value. Add the contribution multiplied by the fraction of the period remaining after its date. Subtract the withdrawal multiplied by its own remaining-period fraction. This weights the two amounts according to how long they were present or absent under the end-of-day flow convention.
Divide the net investment change by that weighted capital base and express it as a percentage. The result is a return for the dates supplied. It is not automatically restated as a yearly return, and it is an estimate rather than an exact revaluation at every flow date.
Worked example with a deposit and withdrawal in the quarter
Start with $35,000 on January 1, 2026 and an ending value of $41,800 on April 1. Enter a deposit of $4,800 on February 6 and a withdrawal of $950 on March 9. The two valuation dates are 90 days apart.
The value rose by $6,800 before adjusting for flows. Subtract the $4,800 deposit and add back the $950 withdrawal to get $2,950 of investment change. The deposit has 54 days remaining until the ending valuation, so its weight is 54 divided by 90. The withdrawal has 23 days remaining, giving a separate weight of 23 divided by 90.
The denominator starts at $35,000, adds $2,880 for the weighted deposit and subtracts approximately $242.78 for the weighted withdrawal. That yields about $37,637.22 in weighted capital. Divide $2,950 by that amount to get a modeled period return of approximately 7.84%.
Use the appropriate valuation and timing convention
The end-of-day convention counts a cash flow relative to the days remaining after its observed date. A flow on the final valuation date receives no denominator weight but is still removed from the change in value. A beginning-of-day convention can differ. Use the same timing convention throughout a comparison.
If the deposit or withdrawal amount is zero, its date does not affect the arithmetic. Any nonzero flow must be in the valuation range. Keep the opening and ending values on their intended side of the cash flows so that a contribution is not double counted or left out. Statements may give available dates and posting dates separately.
The method estimates a return using a weighted average capital approximation. A large cash flow near a period of sharp price movements can make a return based on detailed interim valuations differ materially. GIPS materials describe this limitation and the value of revaluing when large external cash flows occur.
This calculator accepts one deposit and one withdrawal. A period containing additional flows needs an expanded record of each amount and its timing. Combining flows that occurred on different dates into one single amount can change the weighted denominator, even when the net flow is correct.
Keep performance fees and taxes consistent in the valuations. Whether a payout should be a withdrawal or remains reflected in portfolio value depends on the measurement perimeter. The output does not decide which performance measure a particular report requires.
Frequently asked questions
Why not divide the ending gain by the starting value alone?
The opening balance excludes later cash movements. Modified Dietz adjusts the denominator for how long external cash was invested or removed.
Can the period return be negative?
Yes, if value after accounting for the entered flows falls relative to the weighted capital base. The denominator must remain positive for this comparison.
What if the portfolio has no external flows?
Enter zero for both amounts. The method reduces to the change in value divided by the beginning market value.
Is this the same as an internal rate of return?
It uses weighted cash flows to approximate a period return. An internal rate calculation solves a different equation with dated cash flows and an ending value.