Time-Weighted Return & Modified Dietz Calculator
Enter opening and closing account values, dated cash flows, and balances immediately before transfers when available. Calculate a geometrically linked return, compare the end-of-day Modified Dietz estimate, and separate changes in value from outside cash flows.
Audit time-weighted return across cash flows
Link returns between deposits and withdrawals, compare the Modified Dietz estimate, and reconcile the account value.
Edit dates, balances and external flows
One row per date between the start and end. Enter date, signed external flow, and value immediately before the flow. Leave the last field empty if you lack that valuation. Use one currency throughout.
Time-weighted return
16.16%
3 linked periods over 40 days.
Modified Dietz estimate
12.8%
Day-weighted capital base 13,250.
Linked minus estimated +3.36 pp.
Investment gain or loss
1,696.00
Deposits 5,000.00 · withdrawals 2,000.00.
Time-weighted growth index
Starts at 100. Each point reflects the return through that valuation. Colored triangles mark external flows.
▲ Deposit · ▼ Withdrawal
Account value bridge
Opening value plus net external flow and investment gain equals the ending value.
Start 10,000.00 · net flow 3,000.00 · gain 1,696.00 · end 14,696.00
Review subperiods and export exact CSV
| Date | Before flow | Net flow | After flow | Dietz weight | Period return | Linked index |
|---|---|---|---|---|---|---|
| 2026-01-11 | 11,000.00 | 5,000.00 | 16,000.00 | 75% | 10% | 110 |
| 2026-01-31 | 15,360.00 | -2,000.00 | 13,360.00 | 25% | -4% | 105.6 |
| 2026-02-10 | 14,696.00 | Closing valuation | 10% | 116.16 | ||
Results describe the entered period. Keep income earned inside the account in its valuations.
How to use this calculator
- Enter the reporting dates and account values in the same currency.
- Paste date, signed external flow, and value immediately before the transfer. Use positive deposits and negative withdrawals.
- Compare the compounded time-weighted return and Modified Dietz estimate, then inspect the index and account value bridge.
- Open the valuation ledger and download exact returns, weights and flows as CSV.
The Formula
The mathematical logic powering this calculation is:
For complete pre-flow valuations, end each subperiod immediately before an external flow. Divide its ending value by its positive opening value. The next opening value is that pre-flow valuation plus the signed deposit or withdrawal. Include one final subperiod through the closing valuation. Multiply the subperiod factors, then subtract 1 for the cumulative time-weighted return. Multiplying the factors by 100 gives the index. A subperiod with zero ending value contributes a factor of zero. A missing pre-flow valuation leaves the linked return and chart unavailable.
Investment gain or loss equals ending value minus opening value minus net external flows. For Modified Dietz, divide that gain or loss by opening value plus the sum of time-weighted external flows. Under the end-of-day convention, a flow on elapsed day d receives the weight (D − d)/D, where D is the number of elapsed calendar days from start to end. A nonpositive weighted base leaves the Modified Dietz estimate unavailable. It estimates the same period with fewer valuation inputs and can diverge from the linked result.
Use a single currency and consistent valuation methods. Transfers into or out of the account are external flows. Keep reinvested income and other activity inside the account in its valuations. Submit at most 24 rows strictly between the opening and closing dates. Enter one net flow per date, with an optional blank pre-flow value. If netting transfers, use a valuation just before them and only combine transfers with no value change between them. Dates use valid ISO dates from 1900-01-01 through 2100-12-31. Amounts have up to two decimal places and magnitudes through one billion. Opening and post-flow values are positive, with a nonnegative closing value. All fractions use exact arithmetic through linking and day weighting. Outputs describe the entered period without annualizing.Worked Example
If you input:
- Reporting period: January 1 through February 10, 2026
- Opening / closing values: 10,000 and 14,696
- January 11: 5,000 deposit immediately after the value reaches 11,000
- January 31: 2,000 withdrawal immediately after the value reaches 15,360
Result:
The linked subperiod factors are 1.10, 0.96 and 1.10. Time-weighted return is 16.16%, Modified Dietz is 12.8%, and investment gain is 1,696 after accounting for 3,000 in net deposits.
Frequently Asked Questions
How does time-weighted return handle deposits and withdrawals?
It starts a fresh subperiod after every external flow. The flow changes the next opening value. Only the returns earned within subperiods are linked.
When can I calculate only Modified Dietz?
If a before-flow valuation is missing, enter the date and signed amount and leave the last field empty. Modified Dietz uses opening and closing values and time weights for the transfers.
Why does Modified Dietz differ from the linked return?
Modified Dietz weights flows by the fraction of the period they are held. The linked result uses actual valuations and geometric compounding, so uneven returns across the period can produce a difference.
Should dividends or investment earnings be entered as transfers?
Keep money earned and retained inside the portfolio in the account valuations. Record a cash movement when value enters or leaves the account boundary you chose.
Why does my index stay at zero after a deposit?
An entered subperiod ended at zero. Its return is −100%, so its growth factor is zero. Later positive growth factors multiply that zero. A new account or separate reporting period starts its own index.
Similar Calculators
CAGR Calculator
Calculate Compound Annual Growth Rate — the rate at which an investment grows over multiple years.
ROI Calculator
Calculate Return on Investment (ROI) to measure the profitability of any investment.
Stock Correlation & Portfolio Volatility Calculator
Compare historical stock return correlation and two-asset portfolio standard deviation. Inspect rolling correlations and the lowest observed volatility by weight.
