How to calculate investment return with monthly deposits
Enter each deposit on the date it reached the account and each withdrawal on the date it left. If you already owned the investments at the start of the period, enter the opening account value as the first deposit. Enter the account’s remaining value separately at the end.
Use the account as the boundary. A dividend left in the account is reflected in the ending value or later transactions. A dividend paid out of the account is a withdrawal. Avoid counting the same cash twice.
A worked example with a partial withdrawal
Deposit $10,000 on January 1, 2024, and $2,000 on July 1. Withdraw $1,000 on October 1 and record a $12,000 balance at December 31. Your money gain is $1,000. The dates of the cash flows give a money-weighted annual return of about 9.31%.
How XIRR handles dates
XIRR finds the annual rate at which discounted deposits, withdrawals, and the ending value sum to zero. The tool treats deposits as money out of your pocket and withdrawals or the ending value as money returned. It nets entries made on the same date and uses actual days divided by 365.
Some cash-flow patterns have multiple valid rates or no rate. The tool checks for rates from −99.9999% to 100,000% and reports the possibilities it finds. Microsoft documents Excel’s XIRR date convention.
XIRR vs. CAGR
Use XIRR when you want to account for the timing of your own deposits and withdrawals. If you have only an opening and closing value with no intervening cash flows, the CAGR calculator can annualize that change.
Frequently asked questions
Can I enter cash flows out of order?
Yes. The calculator sorts entries by date and combines entries on the same day before solving for a rate.
What if my whole account went to zero?
Enter zero as the ending value. The money loss still appears. When no money ever came back out of the account, the dated flows have no XIRR within the modeled range.
Should I count transfers between investments in the same account?
For an account-level return, include money entering or leaving the account. Internal trades and reinvestments are already reflected in the ending account value.
Published by investor.wtf. Read the formulas, assumptions, and how these pages are made.