Execution cost is the cash and price impact paid to turn an order decision into a position.
That figure is not a single, stable charge. It changes with the instrument, order size, venue, time of day and order type.
A zero-commission order can cost more than a commission-bearing one if it crosses a wide spread or moves the market. For an agent operating without supervision, the estimate must include costs that are visible on the account statement and costs that appear only in the fill price.
Why the quoted price is not the cost
A quote usually shows a bid and an ask. A marketable buy pays near the ask; a marketable sell receives near the bid.
The gap is the spread. A midpoint is useful for comparing decisions, but an agent cannot normally trade at it on demand.
The table gives indicative typical ranges for liquid instruments during normal trading hours. They are broad market ranges, not promises.
Venue, account tier, contract size and volatility can put actual costs outside them. Slippage can also be favourable, so a positive average should not be assumed.
| Instrument | Spread, typical range | Commission, typical range | Slippage, typical range |
|---|---|---|---|
| EUR/USD, retail FX | 0.1 to 1.2 pips | $3 to $7 per side per standard lot | 0 to 0.5 pips per fill |
| Liquid US shares | $0.01 to $0.05 per share | $0 to $0.005 per share | $0.01 to $0.05 per share |
| US equity index futures | 1 tick, often $1.25 to $12.50 per contract | $0.50 to $2.50 per side per contract | 0 to 1 tick per fill |
| BTC/USD, liquid crypto venue | 1 to 10 basis points | 2 to 10 basis points per side | 1 to 20 basis points per fill |
These ranges are not directly comparable without normalising for quantity and contract value. One pip on a standard EUR/USD lot is typically worth about $10.
A tick in an equity index future can have a very different cash value. Convert each component into the account currency and report it per order, per unit and as a percentage of traded notional.
Choose a benchmark before adding components. If the benchmark is the midpoint at the decision time, the difference between that price and the fill already includes spread, movement during routing and execution effects. Adding a separate full spread and a slippage figure measured against the same midpoint would count some cost twice.
Spread is the first charge
For a small market order in a liquid market, spread is often the most predictable implicit cost. If EUR/USD is quoted 1.08420 bid and 1.08430 ask, the spread is one pip. A 100,000-unit buy made at the ask is about half a pip, or $5, worse than the midpoint. Selling later at the bid adds another half-pip. The round-trip spread cost is about $10, before commission or other effects.
The displayed spread is only a snapshot. An agent should use the quote available when it is about to submit, check its age and reject execution estimates based on stale data. A quote from a few seconds earlier may be unusable in a fast market. For FX, check the broker's symbol specifications and account pricing; FX market material can help clarify the terminology, but live account quotes are the input for an execution estimate.
Spread also depends on how the order interacts with the book. A marketable limit order can cap the worst acceptable price, but it may only partially fill or not fill at all. A passive limit order may avoid crossing the spread, yet it can wait behind other orders and be filled just before the market moves against it. Measure fill probability and missed-trade cost alongside the apparent spread saving.
Commission and venue fees are explicit
Commission is usually charged per share, contract, lot or order. Confirm whether the schedule applies per side or round trip, and whether a minimum ticket charge makes small orders disproportionately expensive.
Exchanges, clearing firms and regulators may add separate fees. Some products also have financing, borrow or overnight charges, which belong in a holding-cost model rather than being mistaken for execution slippage.
For example, a standard-lot EUR/USD round trip at $3.50 per side adds $7 in commission. Combine it with the example spread cost of roughly $10 and the direct cost is already around $17. If each fill then has 0.2 pips of adverse slippage, that adds about $4, bringing the estimate to roughly $21. These are illustrative calculations using typical ranges, not a broker quote.
Price schedules can change with volume or account type. Load fees from configuration or a maintained instrument table, and record which schedule version was used for each estimate.
Reconcile calculated charges against statements. A model that assumes zero fees because an API response omits them will quietly overstate performance.
Slippage depends on order behaviour
Slippage is the difference between an expected reference price and the actual fill. Its meaning depends on the reference. Record the decision price, the arrival price when the order reaches the venue and each execution price.
For a buy, a fill above the reference is adverse; for a sell, a fill below it is adverse. Keep the sign convention consistent so favourable fills do not disappear from reports.
Slippage can reflect quote movement while the request is travelling, insufficient displayed liquidity, partial fills, market impact or venue-specific routing. Larger orders generally face higher impact. A useful first approximation is to compare order size with recent traded volume or available depth, then reduce participation when expected impact exceeds the strategy's edge. A fixed slippage allowance is not a substitute for this check.
Market orders prioritise execution, not price. Limit orders constrain price, not completion. A common operator trade-off is to make urgent orders marketable up to a price cap, then cancel or reprice if the remaining quantity is no longer worthwhile. Repeatedly submitting a fresh order after a timeout can create duplicate exposure if the first request actually reached the broker. Use client order identifiers, query order state and make retries idempotent.
Measure both fill quality and opportunity cost. A limit order that saves two basis points on filled quantity may still perform poorly if it misses a move or leaves the agent under-allocated. Compare fills with decision and arrival benchmarks, and separate unfilled quantity from executed quantity in reports.
Build a cost model the agent can enforce
Estimate cost before submission, then compare the estimate with realised fills. One practical measure is implementation shortfall: for each fill, multiply the signed difference between fill price and decision-time midpoint by quantity, then add commission and fees. Keep delay movement and execution impact as separate diagnostics where timestamps allow. The combined measure tells whether the decision was expensive to implement; the components help locate why.
For every order, persist the instrument, side, quantity, order type, decision quote and timestamp, arrival quote, submission and acknowledgement times, fills, cancellations, fee estimate and final charges. Capture partial fills as separate events. Without this record, a daily average can hide a single bad retry, a stale-price execution or a venue change.
Set controls against the strategy's expected edge, not a universal number of pips or basis points. An agent can estimate spread and fees, add a volatility- and size-sensitive slippage allowance, and block or reduce an order when expected cost exceeds its budget.
Thresholds should account for normal variation and tighten for strategies with small expected returns. Alert on repeated estimate-to-fill gaps, not just a large daily average.
- Recalculate the quote and cost estimate immediately before each submission.
- Cap order size or participation when depth is thin or volatility rises.
- Track rejects, partial fills, retries and cancellations as execution outcomes.
- Reconcile estimated commissions and fees with account records regularly.
Stop doing these things:
- Stop treating zero commission as zero execution cost.
- Stop adding spread and slippage figures that use overlapping benchmarks.
- Stop retrying uncertain orders without checking their broker-side state.
Frequently Asked Questions
How do I calculate trading execution costs?
Estimate spread, commission and venue fees, then measure slippage against a defined reference price. Convert each component into the account currency and avoid adding figures that already include the same price movement.
Does a market order always have more slippage than a limit order?
No. A market order can have adverse price impact, while a limit order can miss a move or receive an unfavourable fill after waiting in the queue. Compare fill quality and non-fill opportunity cost for the strategy and market conditions.
What is a reasonable slippage allowance for an automated trading agent?
There is no universal allowance. Typical slippage varies by instrument, order size, venue, volatility and time of day, so estimate it from live or paper fills and make the allowance responsive to those conditions.