Trading cost calculator: commission, spread and swap

Add up what a trade costs before it can pay you. Enter lots, commission, spread cost, swap and nights held to see the total and its share of your target.

-Commission
-Spread cost
-Swap
-Total cost per trade
-Share of gross target

Enter your lot size, your broker's commission, what the spread costs you and the swap for the nights you hold, and the calculator adds them into one cost per trade. Add the gross profit you aim for, and it shows what share of it the costs would eat. The example values are invented: 1 lot, 7 per lot round-turn commission, 10 of spread cost, a swap of -4 per lot per night over 2 nights, and a gross target of 150.

What counts as a cost of trading

Three costs sit between a price move and the money you keep, and only one of them is a line on a statement.

How the calculator works

Commission is lots times commission per lot. Spread cost is lots times spread cost per lot. Swap is lots times swap per lot per night times the number of nights, with the sign flipped so that a negative swap shows as a cost. The total is the sum. If you enter a gross target, the calculator divides the total cost by it and shows the share. With the example inputs: commission 7, spread 10, swap 8 for two nights, total 25, which is 16.7% of a 150 target.

ItemFormulaExample
Commissionlots x commission per lot1 x 7 = 7.00
Spread costlots x spread cost per lot1 x 10 = 10.00
Swap-(lots x swap per night x nights)-(1 x -4 x 2) = 8.00
Totalsum of the three25.00
Share of targettotal / gross target25 / 150 = 16.7%

Why cost per trade changes the picture

A fixed cost matters more the smaller the move you are chasing. If the same 25 of costs applies to a 150 target, it takes about a sixth. If the target is 40, the same costs take 62.5%, and a trade that wins its target nets 15. Scalpers and short-term traders feel this most, because they pay the same spread and commission on many small targets. Swing traders feel swap more, because they hold longer. A cost that looks small on one trade becomes large across a month of them, and it is the reason a strategy's backtest can look better than its live result.

It is also why 'gross' and 'net' should never be mixed in a journal. Your win rate, profit factor and expectancy should all be measured on net results, after commission and swap. The profit factor calculator and the expectancy calculator assume the numbers you give them are already net.

A worked comparison (hypothetical)

Two traders take 40 trades a month at 1 lot. The first aims for 150 per trade and holds two nights, so costs are 25 per trade, or 1,000 a month. The second aims for 40 per trade and closes within the hour, so there is no swap and costs are 17 per trade, or 680 a month. The second trader pays less in total, but 17 against a 40 target is 42.5%, far more than the first trader's 16.7%. A strategy needs its edge to be larger than its cost share, and the share is what this calculator shows.

Where to find your real numbers

Limits of this calculator

Frequently asked questions

How do I calculate the cost of a trade?
Add commission (lots x commission per lot, both sides), the spread cost (lots x spread cost per lot) and the swap for the nights held. The total is the cost the price must overcome before you profit.
Is the spread a separate charge in MT5?
No. It is built into the entry price. You pay it the moment you open, and it does not appear in the commission or swap columns.
Does commission apply to both opening and closing?
At many brokers it does, so a quoted per-side figure is doubled for a round turn. Check your broker's terms and your history.
Should my statistics include costs?
Yes. Use net results, after commission and swap, for win rate, profit factor and expectancy.
Does AI Trading Journal show net results?
Yes. Each closed position's result is profit plus commission plus swap, so costs are already included.

Related guides

See your net results with costs included: 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