ROI in Trading: A Complete Guide
On this page
What ROI means
Return on investment, or ROI, measures how much you gained or lost relative to the amount you put in. It is expressed as a percentage so that results from different position sizes and different accounts can be compared on the same scale. A $50 profit is impressive on a $200 investment and trivial on a $20,000 one; ROI makes that difference visible.
ROI is the most widely quoted performance figure in trading, which is also why it is the most widely misread. On its own it ignores how long the money was tied up, how much risk was taken and what the trade cost. This guide covers the formula, the annualised version, how ROI behaves with leverage, and the situations in which the plain number misleads.
The ROI formula
Net Profit = Final Value − Initial InvestmentROI % = (Final Value − Initial Investment) ÷ Initial Investment × 100
- Initial investment is the capital you committed. For an unleveraged purchase it is the full purchase cost. For a leveraged trade it is usually the margin you put up (see below).
- Final value is what the position was worth when you closed it, or what it is worth now if still open. Include any income received along the way, such as dividends, and subtract costs.
- Net profit is the money gained (positive) or lost (negative).
Example 1: a simple gain. You invest $5,000 and the position is later worth $5,900.
- Net profit = $5,900 − $5,000 = $900
- ROI = $900 ÷ $5,000 × 100 = 18%
Example 2: a loss. You invest $5,000 and exit at $3,000. Net profit is −$2,000 and ROI is −40%. Notice the link to drawdown: a 40% loss needs a 66.67% gain to recover. The drawdown guide explains why.
Annualised ROI: adding time to the picture
Suppose one trade returned 8% in 100 days and another returned 18% in 200 days. Which was better? The raw ROI favours the second, but the money in the first was freed up sooner. Annualised ROI converts both to a common one-year basis.
Annualised ROI % = ((Final Value ÷ Initial Investment)365 ÷ Days − 1) × 100This is the formula in the ROI Calculator's optional holding-period field. It assumes the same percentage growth rate continues, compounding, for a full year.
- Trade A: $5,000 grows to $5,400 in 100 days. ROI = 8%. Annualised = (1.08)3.65 − 1 = 32.43%.
- Trade B: $5,000 grows to $5,900 in 200 days. ROI = 18%. Annualised = (1.18)1.825 − 1 = 35.26%.
On an annualised basis the two trades are much closer than the raw figures suggested, and B is slightly ahead.
The short-period trap
Annualising is only meaningful when you could realistically repeat the same result over the year. Over very short holding periods, it produces numbers that look spectacular and mean little.
- $1,000 grows to $1,050 in 10 days. ROI = 5%. Annualised ROI = (1.05)36.5 − 1 ≈ 493%.
- A 12% gain in 30 days annualises to roughly 297%.
Nobody should read those as "this trader makes 493% a year". They only say what would happen if an identical opportunity appeared every ten days for a full year with all gains reinvested, which is rarely possible. Treat annualised figures for holding periods of a few weeks or less as an arithmetic curiosity, not a forecast.
ROI on leveraged trades
With leverage, ROI depends heavily on what you count as the "initial investment". If you control a $20,000 position with $2,000 of your own margin (10x leverage), the sensible base is the $2,000 you actually committed.
- The price rises 3%, so the position gains $20,000 × 3% = $600.
- ROI on margin = $600 ÷ $2,000 × 100 = 30%.
The same 3% move in the other direction produces a 30% loss of margin. Leverage multiplies ROI in both directions, which is exactly why it magnifies risk. The leverage and margin guide covers how margin and leverage are calculated, and the Leverage Calculator can compute the leverage of a planned position.
Including costs
Costs belong in the calculation. Suppose that leveraged trade also incurred $12 in commission and $8 in overnight financing, a total of $20. The net profit is $600 − $20 = $580, so the final value is $2,580 and the ROI is $580 ÷ $2,000 = 29%. In the ROI Calculator, enter $2,000 as the initial investment and $2,580 as the final value.
A cost that looks small can take a large share of a small profit. A $20 cost on a $60 gain removes a third of it. Taxes can matter too, and they vary by country and account type, so this guide leaves them out; check the rules that apply to you.
When you add or withdraw money
The simple ROI formula assumes one amount goes in and one comes out. Real accounts get topped up and drawn down, and that breaks the formula.
Example. You start the year with $10,000, deposit another $5,000 midway, and finish with $17,000. Plugging the end value straight into the formula gives ($17,000 − $10,000) ÷ $10,000 = 70%, which is plainly wrong, because $5,000 of that growth was your own deposit. The real profit is $17,000 − $10,000 − $5,000 = $2,000. Measured against the $15,000 you put in altogether, the return is about 13.3%, and a more precise answer depends on when the deposit was made.
The cleaner approach for accounts with cash flows is to calculate returns for each period between deposits and withdrawals and combine them, an idea known as time-weighted return. For a single trade or a lump-sum investment, the basic formula works fine.
What ROI does not tell you
- How much risk was taken. Two strategies can both return 20%, with one having a worst drawdown of 8% and the other 35%. Read ROI together with drawdown.
- Whether the result was repeatable. A single lucky trade and a consistent process can show the same ROI.
- How big the sample was. A 60% ROI over three trades says almost nothing about what to expect next.
- The cost of capital and opportunity. A 4% ROI over a year may be worse than a risk-free alternative once you factor in the risk you carried.
- The effect of position sizing. A trader risking 5% per trade will usually show higher ROI during a winning run than one risking 0.5%, and a far deeper drawdown during a losing one. The ROI alone cannot tell you which was the better process. The trading risk percentage guide looks at this trade-off.
ROI and similar terms
Several measures sound alike but answer different questions.
- ROI compares total gain with the amount invested, over whatever period you choose.
- Annualised ROI restates it as a one-year compounding rate.
- Return on risk (R-multiple) compares the result of a trade with the amount risked. A trade that risks $200 and makes $500 is +2.5R, regardless of account size. This is the language of the risk/reward ratio.
- Compound growth describes how repeated returns build on previous ones. See the compound growth guide.
Common mistakes
- Using the wrong base. Dividing a leveraged profit by the full position value instead of the margin understates the ROI on your capital, while dividing an unleveraged profit by only part of the money invested overstates it.
- Ignoring costs. Spread, commission, financing and fees all reduce final value.
- Annualising a few days of results. The numbers are mathematically correct and practically meaningless.
- Comparing ROI across different time periods without adjusting. 15% in a month and 15% in three years are very different results.
- Forgetting deposits and withdrawals. They distort account-level ROI.
- Cherry-picking trades. ROI across all trades matters more than the ROI of the best one.
How to use the ROI Calculator
- Open the ROI Calculator.
- Enter the amount you invested in Initial investment (for a leveraged trade, your margin).
- Enter what the position was worth at exit, after costs, in Final value.
- Optionally enter the number of days held in Holding period to see Annualized ROI.
- Read Net profit, ROI and Annualized ROI.
The calculator uses only the numbers you give it. It does not add fees or tax on its own, so include them in the final value before you enter it.
Frequently asked questions
How do you calculate ROI in trading?
Subtract the initial investment from the final value, divide by the initial investment, and multiply by 100. If $5,000 becomes $5,900, the ROI is $900 divided by $5,000, or 18%.
What is a good ROI?
It depends on the time period, the market and the risk taken. An ROI means little without knowing how long it took and how large the drawdowns were along the way. Be sceptical of any very high figure presented without that context.
What is the difference between ROI and annualized ROI?
ROI is the total percentage return over the whole holding period. Annualized ROI restates that return as the yearly rate that would produce it, which allows trades of different lengths to be compared. It assumes the same growth rate could continue for a full year.
How do I calculate ROI on a leveraged trade?
Use the margin you committed as the initial investment and the margin plus net profit (after costs) as the final value. A $600 profit on $2,000 of margin is a 30% ROI, even though the price only moved 3%.
Can ROI be negative?
Yes. A negative ROI means you lost money. A final value of $3,000 from a $5,000 investment gives an ROI of −40%. The calculator shows losses as negative numbers.
Why is my account ROI different from my broker's figure?
Brokers and platforms often use different bases and methods, for example time-weighted returns that adjust for deposits and withdrawals, or figures that include or exclude fees and open positions. Small differences are normal, and larger ones usually come from cash flows or from which costs are counted.
Related guides and tools
- Run your own numbers in the ROI calculator.
- Check how deep losses can get in the trading drawdown guide.
- See how returns build on each other in the compound growth guide.
- Understand how leverage changes return on capital in the leverage and margin guide.
- Compare reward with risk using the risk/reward ratio guide.
- Browse every topic in the guides library.
About the author
SOFTYTOOLS Editorial Team writes and maintains the calculators and guides on this site, focusing on clear, formula-based explanations of trading and investing concepts rather than opinion or speculation.