Stock Trade Cost Calculator
By Chad Smith · Updated
On this page
A stock trade cost calculator adds up everything you pay to buy and later sell a share: commission, the spread, any currency conversion and transaction taxes such as stamp duty. It shows the total in money and as a percentage of the trade, and lets you compare stock brokers on the same trade. Costs that look small in isolation often add up to the largest difference between brokers.
Stock trade cost calculator
- Trade value
- USD 5,000.00
- Commission per order
- USD 5.00
- Spread cost per side
- USD 2.00
- FX fee per side
- USD 25.00
- Transaction tax (buy)
- USD 0.00
- Cost as % of trade value
- 1.28%
How to use it
- Enter the share price, the number of shares and the currency the share trades in.
- Choose your account currency.
- Choose a broker to load its published commission and conversion fee, or enter them yourself.
- Add any transaction tax that applies, such as stamp duty on UK shares.
- Read the cost to buy, the cost to sell and the round-trip total.
The formula
Trade value = Shares × Price
Commission = max(Trade value × Rate %, Minimum)
or a fixed fee per order
Spread cost = Shares × (Ask − Bid) ÷ 2 (per side, estimate)
FX fee = Trade value × Conversion fee % (if currencies differ)
Transaction tax = Trade value × Tax rate (where it applies)
Round-trip cost = Buy costs + Sell costs
Cost % = Round-trip cost ÷ Trade value × 100
Worked example
This is an illustrative example with simple numbers, not any broker's real fees.
A GBP account buys 100 US shares at 40.00 USD, then sells them at the same price. Commission is 0.1% with a 1 USD minimum, the FX fee is 0.5% each way, and the spread is 0.04 USD.
Trade value = 100 × 40.00 = 4,000 USD
Per side:
Commission = max(4.00, 1.00) = 4.00 USD
Spread = 100 × 0.04 ÷ 2 = 2.00 USD
FX fee = 4,000 × 0.5% = 20.00 USD
Total = 26.00 USD
Round trip = 52.00 USD = 1.3% of the trade
The FX fee is by far the largest cost in this example.
What the result means
The round-trip cost is the return the share must deliver just to break even. For a long-term holding, 1.3% is small spread over years. For a trader buying and selling every few weeks, it becomes a heavy drag. The breakdown shows which cost to attack: a lower commission, a lower FX fee, or an account in the share's own currency.
Because broker fees change, the calculator loads them when you choose a broker.
Costs for different investors
The cost that matters most depends on how you invest. Regular savers buying small amounts each month are hit hardest by minimum commissions and fixed fees, so a broker with no minimum or with fractional shares often suits them. Investors in foreign shares are hit hardest by FX fees, so a multi-currency account can save more than any commission cut. Active traders care most about spreads and per-trade commission. Long-term holders should also check account and custody fees, which are charged whether you trade or not.
Common mistakes
- Comparing commissions only. FX fees and spreads can be larger, especially on foreign shares.
- Forgetting the sell side. Costs are paid again when you sell, except for taxes like UK stamp duty.
- Ignoring minimum fees. On small orders, the minimum can be a large share of the trade.
- Overlooking account fees. Platform, custody or inactivity fees add to the yearly cost.
- Assuming "commission-free" means free. The broker earns somewhere; find out where.
Related lessons and tools
- Lesson: Stock fees and FX conversion
- Lesson: Choosing a stock broker
- Lesson: Exchanges and trading hours
- Glossary: stamp duty, FX conversion fee, custody fee, spread, ETF
- Guide: How to choose a stock broker, Stock trading
- Tools: currency conversion fee calculator, share position size calculator, commission calculator, dividend calculator
Frequently asked questions
What costs are there when buying shares?
The main costs are the commission, the bid/ask spread, any currency conversion fee for foreign shares, and in some countries a transaction tax such as UK stamp duty. Some brokers also charge account or custody fees.
Are zero-commission brokers free?
Not entirely. They may earn from currency conversion, wider spreads, payment for order flow or other fees. Compare the total cost for the trades you actually make.
Why does trade size matter for costs?
Fixed fees, such as a minimum commission, weigh more heavily on small trades. Percentage fees, such as conversion, scale with the trade size.
Is stamp duty charged on all shares?
No. UK stamp duty applies to purchases of most UK shares and is not charged on sales or on most ETFs. Other countries have their own rules, so check where the share is listed.