This trading profit calculator works out the real result of a trade after fees: choose long or short, enter the entry and exit prices, the quantity, the leverage and the commission per side, and you will see the net profit or loss, the return on margin, the gross result, the fees paid, the position value and the margin required.
Below we explain how each figure is calculated, how leverage multiplies both gains and losses, why fees matter so much when you trade often and how to use the calculator before and after each trade.
What the calculator shows
The gross result is the price difference multiplied by the quantity. The net result subtracts the commissions paid when opening and closing the trade. The return on margin compares that net result with the capital you actually put up, which is what changes when you use leverage.
With the default values, buying 10 units at 100 and selling at 110 earns 97.90 net. Without leverage that is 9.79% on the 1,000 invested; with 10× leverage you only put up 100 of margin, so the return becomes 97.9%.
Leverage works both ways: a 10% move against you with 10× leverage costs 101.90, more than the entire margin. That is why leveraged positions are liquidated long before the price reaches zero.
How the result is calculated
Gross = (Exit − Entry) × Quantity × Direction
Fees = (Entry × Quantity + Exit × Quantity) × Fee %
Net = Gross − Fees
Margin = Entry × Quantity / Leverage
Return on margin = Net / Margin - Direction: +1 for long (buy), −1 for short (sell)
- Fee %: commission per side as a percentage of the traded value (0.1% = 0.001)
Example with the default values (long, entry 100, exit 110, 10 units, no leverage, 0.1% fee):
- Position value: 100 × 10 = 1,000.
- Gross result: (110 − 100) × 10 = 100.
- Fees: (1,000 + 1,100) × 0.1% = 2.10.
- Net result: 100 − 2.10 = 97.90, a 9.79% return on the 1,000 margin.
A short trade works the same way with the direction reversed: selling 10 units at 100 and buying back at 90 earns 100 gross, 1.90 in fees and 98.10 net. Because of fees, a long trade at 100 only breaks even if the price reaches about 100.20.
The hidden cost of trading often
Each round trip of a 1,000 position costs about 2 in fees. Trading once a month that is 24 a year; trading every working day it reaches 500, half of the capital.
Frequent traders must beat the market by a wide margin just to cover costs, and spreads, slippage and financing charges add even more.
Common uses of the calculator
- Planning a trade. Before entering, check the net result at your target and at your stop; size the position with the position size calculator.
- Reviewing closed trades. Enter the real prices and fees to keep an honest trading journal.
- Crypto and futures with leverage. See how much margin you need and how fast a move against you consumes it.
- Comparing brokers. Change the fee to see how commissions affect your results over many trades.
- Measuring performance. Combine the results of many trades and evaluate them with the ROI calculator or the CAGR calculator.
Tips to keep more of your profits
- Always count fees. Include commissions on both sides, spreads and, for leveraged positions held overnight, financing costs.
- Use leverage sparingly. It does not improve a strategy; it only magnifies the result, good or bad.
- Define the exit before entering. Know your target and stop, and the net result of each.
- Trade less, better. Fewer, well-planned trades usually pay less in fees and suffer less from emotions.
- Compare with a passive alternative. Check what the same capital would earn invested regularly with the DCA calculator or the compound interest calculator.
Frequently asked questions
Does leverage change the profit in money?
No. For the same quantity, the profit or loss in money is the same; leverage only reduces the margin you put up, so the percentage return on that margin is larger.
How are fees calculated?
As a percentage of the traded value on entry and on exit. If your broker charges a fixed fee per order, convert it to a percentage of the trade value.
Are financing costs or spreads included?
No. Overnight financing (swap or funding) and the bid-ask spread are not included; add them to the fee if they are significant.
Can I lose more than my margin?
In theory, yes: a gap can close the position beyond your stop. Many brokers liquidate earlier to prevent it, but the risk exists with high leverage.
Are taxes included?
No. Results are before taxes, which depend on your country and the type of product traded.