How to measure your MT5 return when you deposit and withdraw money
Why the balance formula breaks, how to separate cash from trading results, and a chained return that stays fair.
Add up the profit in your MetaTrader 5 history and you get a number in money. Ask how well the account did and you want a percentage, and that is where deposits and withdrawals quietly spoil the answer. A trader who starts with 1,000, deposits another 4,000 in the last month and finishes with 5,400 has not made 440 percent. This page explains how deposits and withdrawals distort the obvious calculations, and gives two honest ways to measure the return on an account that money has moved in and out of.
Why the simple formula breaks
The obvious formula is (ending balance minus starting balance) divided by starting balance. It works only if nothing was added or taken out. Every deposit raises the ending balance without being a result of trading, and every withdrawal lowers it. Both appear in the history as balance rows, not trades; see balance and deposit rows. They must be separated from trading results before any percentage means anything.
Step one: separate trading result from money movements
- Export or copy the history for the whole period you want to measure, including balance rows; see how to export your MT5 trade history.
- Total the closed-trade results: profit plus commission plus swap. This is your net trading result.
- Total the deposits and, separately, the withdrawals, with their dates.
- Check the arithmetic: starting balance plus net trading result plus deposits minus withdrawals should equal the ending balance. If it does not, find the missing row first; credits and corrections are common culprits, see credit and bonus rows.
Method 1: net trading result over a base
The simplest fair measure divides the net trading result by a sensible base: the starting balance if no money moved, otherwise the average balance during the period, or the starting balance plus deposits weighted by how long they were in the account. It is crude but easy to explain and easy to repeat. Write down the base you chose, because changing it changes the percentage.
Method 2: chain the periods between money movements
A cleaner method splits the history at each deposit or withdrawal. For each sub-period, compute the return as the net trading result divided by the balance at the start of that sub-period. Then multiply the growth factors, one for each sub-period, to get the return for the whole span. This is a time-weighted return: it measures the trading and ignores the size or timing of the cash you added or removed, which is why it is the usual way to compare a strategy with another account of different size. It needs a balance at each cash movement, which the balance rows give you.
A worked example (hypothetical)
An account starts the month with 1,000. In the first half the trading result is +100, taking the balance to 1,100. Then a deposit of 4,000 brings it to 5,100. In the second half the trading result is -102, ending at 4,998. All numbers are invented.
| Step | Calculation | Result |
|---|---|---|
| Naive return | (4,998 - 1,000) / 1,000 | +399.8 percent (wrong) |
| Net trading result | +100 - 102 | -2 |
| Sub-period 1 | 100 / 1,000 | +10.0 percent |
| Sub-period 2 | -102 / 5,100 | -2.0 percent |
| Chained return | 1.10 x 0.98 - 1 | +7.8 percent |
The naive figure is absurd because it counts the deposit as skill. The chained figure says the first half did well on a small base, and the second half lost a little on a much bigger one, for a modest gain overall. Note too that the trader lost money in absolute terms in the larger period: the larger base magnified the loss in money while the percentage looked small. Both views are useful, and they answer different questions.
What about withdrawals
A withdrawal lowers the balance without being a loss. If you ignore it, a trader who takes profit out each month appears to be flat or losing. Treat a withdrawal the same way as a deposit: it ends one sub-period and starts the next at the lower balance. The trading result inside each sub-period is unaffected. Drawdown works similarly: a withdrawal makes equity fall without a losing trade, so measure drawdown on a series adjusted for cash movements; see equity vs balance drawdown and an equity curve from history.
Common mistakes
- Counting a deposit as profit, or a withdrawal as a loss.
- Using the ending balance as the base for a percentage when the account grew by deposits.
- Comparing percentages between two accounts of very different size without saying so.
- Forgetting that a bonus or credit may be removed later, which can appear as a negative balance row.
- Mixing currencies when an account was converted; keep every figure in the account currency.
Tracking the trading result on its own
AI Trading Journal is a Windows app for MetaTrader 5 only. It reads closed trades from the terminal on your PC and adds new ones every 5 minutes, and the journal is a file in your Documents folder. It records one entry per closed position, so the totals on its dashboard, with Daily, Weekly, Monthly and All time views, reflect trading results rather than cash movements. The Progress page shows a growth curve and a months table and lets you store a monthly profit target and loss limit. Whether those figures should be read as a percentage of a changing balance is something you decide with the methods above; the app does not compute a time-weighted return for you. It is read-only and never places or closes a trade. Related reading: MT5 trading statistics and the compounding calculator.
Limits and cautions
- A return figure is a record of the past, not a prediction or an advertisement; do not publish one without the method behind it.
- A short period or a small sample can give a dramatic percentage that means little.
- This page is not tax, accounting or investment advice, and the example numbers are hypothetical.
Frequently asked questions
How do I calculate my return if I deposited money?
Is a deposit counted as profit in MT5?
What is a time-weighted return?
Do withdrawals count as losses?
Does the journal app calculate my return percentage?
Related guides
- A local trading journal for MT5
- P&L calendar for MT5
- Trade notes, ratings and screenshots
- Trading progress and goals
- Back up your journal and move it to a new PC
- An offline trading journal for Windows
- How to set monthly trading goals
- Import your whole MT5 history
- How to tag trades
- Trade screenshots for your journal
- All trading journal comparisons
Track trading results separately from cash: free for 7 days
Free for 7 days, no card required. After that, a one-time $19.99 purchase. No subscription. Also on the Microsoft Store.
One-time $19.99, no monthly fee · your MT5 login never leaves your PC · trades go into your own journal on your PC, not through our servers.
Start free 7-day trial