How-to · Research and portfolio
Investment Portfolio Profit With Deposits and Withdrawals
A bigger balance proves nothing when some of it came from your paycheck. One line of arithmetic separates what the investments earned from what you put in.
The short version · about 10 minutes
- Note the account value at the start and the end of the period
- Total every deposit and every withdrawal over the same dates
- Add withdrawals to the ending value, then subtract deposits and the starting value
- Check that dividends, fees and transfers of shares were treated the right way
- Turn the dollar profit into a rate with a time-weighted or money-weighted method
Ending value plus withdrawals, minus deposits, minus starting value. That’s the whole formula. Withdrawals are added back because the money left the account only after earning whatever it earned, and leaving it out would charge the holdings for a transfer to your checking account as though it were a trading loss. Deposits are taken out because they’re your own cash, and counting them as gains would make a savings habit look like stock-picking talent.
Why the balance alone misleads
An account that went from $50,000 to $62,000 looks like it made $12,000. If $10,000 of that was deposited during the year, it made $2,000. Run it the other way. An account that fell from $50,000 to $45,000 looks like it lost $5,000, yet if $8,000 was withdrawn to pay for a car, the holdings actually earned $3,000, and someone reading only the balance would sell perfectly good positions to fix a problem that never existed.
That’s the trap. The balance mixes two things: what the market did and what you did.
The formula, worked through
Take a hypothetical brokerage account over one calendar year.
The balance rose by $9,500. Only $3,500 of that was earned. The other $6,000 was net contribution.
That’s deposits of $10,000 less the $4,000 taken out. Written another way, profit equals the change in value minus net contribution, $9,500 − $6,000 = $3,500, and since some statements print net contribution for you, this version saves adding up every transfer by hand. Same answer.
What counts as a deposit or withdrawal
A cash flow is money or securities crossing the account’s boundary. Inside the boundary, it’s all return.
Count these as flows:
- Transfers in from a bank or another broker.
- Transfers out to a bank, a check, or a card linked to the account.
- Shares moved in or out from another account. Value them at the market price on the transfer date.
- Required or elective distributions from a retirement account, and any tax withheld from them, since the withheld part left the account too.
Leave these inside the profit:
- Dividends and interest paid into the account.
- Trading commissions and fees charged to the account. They reduce profit, which is correct.
- Buying and selling within the account. A sale turns shares into cash, and the cash is still there.
Fees paid from outside the account are the awkward case. An advisory fee billed to your bank never touches the account. So the formula overstates what you kept. Subtract it yourself.
Checking it against a statement
Most brokerage statements have an activity summary or a change in account value section. It lists the beginning value, deposits, withdrawals, income and the change in market value, then the ending value. Those lines should tie to your sum. If they don’t, look for a transfer of shares that the statement shows at a different value, or a period that starts or ends on a different date.
Annual statements are the easiest to reconcile. Quarterly ones work too, as long as you add up all four quarters and compare the total with a full-year calculation run over exactly the same dates, since a single missing day at either end can move a deposit outside the period.
From dollars to a rate
Profit in dollars doesn’t tell you how good the year was. $3,500 on a $40,000 account is decent. On $400,000 it’s poor. A benchmark comparison needs a percentage. Deposits complicate it.
Divide by the starting value and you ignore the extra $6,000 that was invested for part of the year, while dividing by the ending value treats the whole year’s deposits as if they had been sitting in the account since January, so one method understates the capital at work and the other overstates it. Two methods handle this properly. The time-weighted return measures how the holdings did, regardless of when money arrived. The money-weighted return measures how your own dollars did, timing included; the money-weighted return walkthrough shows it with dated flows, and the portfolio return guide sets the two side by side.
A rough figure works for a quick check. Divide profit by the starting value plus half of net contribution. Here that’s $3,500 ÷ ($40,000 + $3,000), about 8.1%, which assumes the money arrived evenly through the year.
Profit since the account opened
The same formula stretches to any length of time. For an account you opened with a first deposit, the starting value is zero, so lifetime profit is today’s value plus everything you’ve ever withdrawn, minus everything you’ve ever deposited. Many brokers show lifetime deposits and withdrawals somewhere in the account history.
Yearly figures add up too. Profit for each calendar year, summed, equals profit over the whole span, provided each year starts on the value the previous year ended on. Skip a year and the total breaks. Keep the yearly figures and you can see which years carried the result, which matters more than the total once deposits have grown large compared with the gains.
Mistakes that change the answer
- Counting a transfer of shares from another broker as profit because the balance jumped on that day.
- Adding back a withdrawal twice.
- Picking a start date before a deposit cleared and an end date after a withdrawal posted, so one of them falls outside the period.
- Treating reinvested dividends as deposits. They are already in the ending value.
- Forgetting tax withheld on a retirement distribution, which makes the withdrawal look smaller than it was.
Logged as you go, the sum takes a minute. A spreadsheet with dates and amounts, or a trading journal that imports transfers, keeps the list complete. The full set of research walkthroughs is under how-to guides.
Related questions
Do dividends count as profit or as a deposit?
Profit, as long as they were paid into the account. Dividends and interest are earnings of the holdings. They only become a cash flow if you move them out, and then they are a withdrawal.
Is unrealized gain included?
Yes. The ending value is the market value of everything in the account, so gains on positions you still hold are part of the profit. Taxes treat realized and unrealized gains differently, but the investment result does not.
What is net contribution on a statement?
It is deposits minus withdrawals over the period. Many statements print it. Profit is then the change in value minus net contribution, which is the same sum written another way.