Market Impact: How Larger Orders Worsen Average Execution Prices
A market buy may seem likely to fill at the displayed price, but the actual fill is higher. If quantity exceeds the first ask, the remainder fills at the next level, and then the next. The amount your own order pushes price upward is market impact. You can calculate it beforehand from order-book quantities rather than guessing.
A Fill Is a Weighted Average Across Levels
A market buy consumes asks from the lowest price upward. When one level has insufficient quantity, it moves to the next. The final execution price is the quantity-weighted average of the consumed levels.
$60,000.0 — 1.2 BTC
$60,000.5 — 0.8 BTC
$60,001.0 — 2.0 BTC
$60,002.0 — 3.0 BTC
$60,005.0 — 5.0 BTC
Market buy of 2.0 BTC
1.2 × 60,000.0 = 72,000.0
0.8 × 60,000.5 = 48,000.4
Total 120,000.4 ÷ 2.0 = $60,000.20
→ +0.00033% above the displayed price
At this size the cost is effectively negligible. Problems begin when the order cannot finish within the first two levels. See reading the order book for structure and depth, and limit versus market orders for order differences.
Six Times the Quantity Can Mean 21 Times the Cost
Increasing quantity in the same book shows the worsening unit price.
2.0 BTC → Average $60,000.20
Price disadvantage $0.20 · Total cost $0.40
7.0 BTC, consuming four levels
72,000.0 + 48,000.4 + 120,002.0 + 180,006.0
= 420,008.4 ÷ 7.0 = $60,001.20 average
Price disadvantage $1.20 · Total cost $8.40
12.0 BTC, consuming all five levels
720,033.4 ÷ 12.0 = $60,002.78 average
Price disadvantage $2.78 · Total cost $33.4
→ 6 times the quantity but about 21 times the total cost.
Costs do not scale linearly because two factors multiply: larger quantity reaches worse prices, and the worse unit price applies to more quantity. Doubling size can therefore bring costs nearer four times than twice. See why slippage increases and how to reduce it for situational causes.
The Same $20,000 Has Different Effects Across Coins
What matters is your order's share of that order book, not its absolute amount. $20,000 cannot consume even the first BTC ask above, but it crosses five levels in a thin altcoin.
$1.000 — 3,000 units
$1.002 — 2,500 units
$1.005 — 4,000 units
$1.010 — 6,000 units
$1.020 — 10,000 units
Market buy worth $20,000
3,000 @1.000 = $3,000, cumulative $3,000
2,500 @1.002 = $2,505, cumulative $5,505
4,000 @1.005 = $4,020, cumulative $9,525
6,000 @1.010 = $6,060, cumulative $15,585
Remaining $4,415 @1.020 → 4,328 units
Total 19,828 units / $20,000
Average fill $1.00865 → +0.87%
The same $20,000 in the BTC book above
0.33 BTC → Entirely within the first level
Average $60,000.0 → +0.00%
The same amount and market-order button cost 0% in one market and 0.87% in the other. The reason is explained by liquidity.
Leverage can obscure this gap. With $1,000 margin at 20×, the order hitting the book is $20,000, not $1,000. Small capital can still create a large order. See leverage for the relationship between the multiple and actual exposure.
You Pay on Entry and Again on Exit
Market impact does not end at entry. A market exit consumes bids downward.
Entry impact −0.87%
Exit impact −0.85%, assuming similar opposite-side depth
Round-trip fee, taker 0.05% × 2: −0.10%
─────────────
Total −1.82%
If the profit target was 2.0%:
Actual remainder = 2.0 − 1.82 = 0.18%
→ $36 on $20,000
Targeting 2% but retaining only 0.18% is a cost-structure problem, not a direction-prediction problem. See round-trip trading costs to combine fees, spread, slippage, and funding, and spread costs to isolate the bid-ask spread.
Urgent stops can be even more expensive. During fast movements, depth thins and an order normally slipping 0.2% can slip 1%. The moment you most want to leave can be the most expensive moment to do so.
How Much Can Splitting Save?
Instead of crossing five levels at once, four slices can avoid the higher levels as quotes replenish between orders.
First $5,000:
3,000 @1.000 = $3,000
Remaining $2,000 @1.002 → 1,996 units
Total 4,996 → $1.00080 average, +0.08%
If the order book fully replenishes between slices,
all four remain around +0.08%.
All at once: +0.87%
Split: +0.08%
Difference 0.79 percentage points = $158 on $20,000
This depends on replenishment. In a persistent directional move, price can rise while you split, leaving the remaining purchase at worse prices than the impact saved. The exit-side process is covered in scaling out.
A limit order reduces market impact to zero but accepts nonexecution risk. See limit-order queue priority for why other orders at the same price fill first, and unfilled limit orders for reasons an order may not execute at all.
One Number to Check Before Ordering
You do not need to multiply every level each time. Comparing your order with cumulative depth across the top five levels usually suffices.
Top-five altcoin depth above:
3,000 + 2,500 + 4,000 + 6,000 + 10,000
= 25,500 units ≈ $25,600
Limit each order to 20% of that
→ No more than $5,100 per slice
To place $20,000:
→ At least 4 slices, or a limit order
Rough guide
Order ÷ Top-five depth < 10% → Usually negligible
10–30% → Splitting suggested
> 30% → Avoid market orders
The 20% and 30% levels are starting points, not absolute rules. Measure several orders in your asset and trading hours, then adjust. Build a habit of checking the book before ordering. If your share is large, reduce size or use a limit. See position sizing for working backward from risk to order size.
Someone also earns these costs. Market makers place limits on both sides and absorb others' market orders. Costs paid by people entering urgently become their source of revenue.
Recap
② In the example, 2 units cost +0.00033%; 12 cost +0.0046%.
③ 6 times the quantity → about 21 times the cost, not linear scaling.
④ The same $20,000 costs 0.00% in BTC and +0.87% in a thin altcoin.
⑤ At 20×, $1,000 margin becomes a $20,000 order.
⑥ A round trip pays twice; the example totals −1.82%.
⑦ Thinner depth in sharp declines creates more slippage.
⑧ Four slices reduce +0.87% to +0.08%, provided depth recovers.
⑨ Limits have zero market impact but nonexecution risk.
⑩ Start with each order below 20% of top-five depth.
Without knowing your order's share of the book, you cannot know the entry price. For short-term trades targeting 1–2%, this calculation can determine the result before the win or loss itself.
NOONOO TRADING invites you to follow live trading in our free chat.
Start in the bot📈 OKX trading fee discount for new registrations
Register for the OKX Fee Discount →