investor.wtf
INDEPENDENT THINKING.
COMPOUNDING QUESTIONS.

FREE INVESTING CALCULATOR

Investment Return Calculator with Deposits and Withdrawals

Enter when you added or withdrew money and your balance at the end of the period. See your money-weighted annual return (XIRR) and your gain or loss.

01 / YOUR INPUTS

Enter the starting account value as a deposit on the first day if you’re measuring an existing account. Add up to 20 dated cash flows.

Cash flow 1
Cash flow 2
Cash flow 3
02 / YOUR RESULT
ANNUALIZED RETURN (XIRR)
9.3115%

Money-weighted annual return based on when you put money in and took it out.

Money gain or loss
$1,000.00
Deposits
$12,000.00
Withdrawals
$1,000.00
Ending investment value
$12,000.00

Uses actual dates with a 365-day year. Use the same currency throughout and include costs only as they appear in your cash flows or ending value. No exchange-rate or inflation adjustment.

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%.

Money gain = ending investment value + withdrawals − deposits

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.