Start freeSign in
Research/Glossary/Transaction costs

Transaction costs

Reference

Transaction costs are the costs of getting from a trading decision to an executed fill.

Transaction costs are the costs of getting from a trading decision to an executed fill. Relative to the mid price, they are commonly discussed as four components: spread, fees, market impact, and adverse timing. Together they describe how an execution can differ from a reference price even before any position outcome is considered.

The mid price is the average of the best bid and best ask at a point in time. A fill that occurs away from that midpoint incurs a spread cost. For a buy order, paying the ask instead of the mid creates a cost equal to fill price minus mid. For a sell order, receiving the bid instead of the mid creates a cost equal to mid minus fill price. This makes spread cost a direct measure of how much of the quoted bid ask spread the execution has crossed.

Fees are separate from the spread. They include venue specific trading fees and any other explicit charges attached to execution. In execution analysis, fees are usually added to spread cost rather than inferred from prices, because they are charged according to the venue and the order type used. A complete transaction cost calculation therefore needs the execution venue and fee schedule for each fill.

Market impact is the price movement caused by the order interacting with available liquidity. The usual mechanism is that larger orders consume more depth and therefore execute across multiple price levels or induce repricing by other market participants. In practical terms, impact is assessed by comparing prices before and after execution while controlling for the reference point used. This component depends on order size relative to displayed and available liquidity, and it can vary substantially across venues.

Adverse timing captures the effect of delay between the decision to trade and the moment of execution. If the market moves unfavorably during that interval, the fill can be worse than the original decision price even if the order itself did not materially move the market. The basic measurement compares the price at signal or decision time with the eventual fill, separating this drift from the spread paid at execution. For a buy, upward drift before the fill is an adverse timing cost. For a sell, downward drift before the fill is an adverse timing cost.

These components are easiest to estimate when data are aligned across venues and timestamps are precise. Cross venue analysis depends on consistent price and liquidity observations, because fragmented data can change the measured mid price, displayed spread, and apparent depth available to the order. Sonar describes cross venue data as a way to aggregate and harmonize market information from multiple venues for research and execution analysis, which is directly relevant when estimating execution costs that depend on where liquidity was available at a given time.

In a compact accounting identity, total transaction cost beyond the mid price can be expressed as the sum of spread cost, explicit fees, market impact, and adverse timing. The exact implementation depends on the reference timestamps and venue data used, but the purpose is the same: to explain why the fill differs from the contemporaneous or decision time midpoint.

Covered in depth in the Cross-venue market data & signals pillar hub.

Apply this and the related checks to your own results with the Backtest Overfitting Audit.Open the audit
ShareXLinkedInFacebookEmail