Skip to content
Menu

Stock Trade Cost Calculator

By Chad Smith · Updated

On this page
  1. How to use it
  2. The formula
  3. Worked example
  4. What the result means
  5. Costs for different investors
  6. Common mistakes
  7. Related lessons and tools

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

Fills commission, minimum and FX fee where the broker's fee is a single published figure.

USD
%
USD
USD

Leave at 0 to use the rate.

%
USD
USD
%

e.g. 0.5 for UK stamp duty.

Round-trip cost
USD 64.00
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

  1. Enter the share price, the number of shares and the currency the share trades in.
  2. Choose your account currency.
  3. Choose a broker to load its published commission and conversion fee, or enter them yourself.
  4. Add any transaction tax that applies, such as stamp duty on UK shares.
  5. 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.

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.