Sub topic 13
Why Exchange Withdrawal Fees Differ From On-Chain Fees
This chapter assumes you know what a blockchain transaction is, how to read a fee rate in satoshis per virtual byte or gas in gwei, and how to read short Python snippets. The earlier chapters on network fees and fee markets cover the on-chain side. Here the question is why the number on an exchange's withdrawal screen rarely matches what the network actually charges.
Two different prices
When you withdraw, two separate things happen.
- The exchange decides what to charge you. This is the withdrawal fee shown in its fee schedule or confirmation dialog. It is a business decision.
- The exchange broadcasts a transaction and pays the network fee to miners or validators. This is set by the fee market at that moment.
The first number is deducted from your balance. The second is paid out of the exchange's own wallet. The difference is the exchange's margin, or sometimes its loss.
Why exchanges use flat or tiered fees
Most exchanges publish a fixed fee per asset and network, such as 0.0002 BTC per Bitcoin withdrawal. There are several reasons.
- Predictability. A fixed fee lets you see the exact amount you will receive before you confirm.
- Latency. The exchange cannot wait for a quiet mempool. It usually sets a fee that gets the transaction confirmed within a reasonable time.
- Operations. Fee tables are updated by hand or on a schedule, not every block.
- Risk buffer. A fee set above the typical network cost covers spikes.
The fee table may be reviewed daily or weekly, while on-chain fee rates can change within minutes.
Worked example: Bitcoin
A typical 1-input, 2-output native SegWit transaction is about 141 virtual bytes (vB). The following code compares a flat 0.0002 BTC fee with the real network cost at three fee rates. The 60,000 USD price is illustrative.
SATS_PER_BTC = 100_000_000
def btc_network_fee_usd(vsize_vb, rate_sat_per_vb, btc_usd):
return vsize_vb * rate_sat_per_vb / SATS_PER_BTC * btc_usd
btc_usd = 60_000.0
flat_fee_btc = 0.0002
charged = flat_fee_btc * btc_usd # 12.00 USD
for rate in (2, 10, 100):
actual = btc_network_fee_usd(141, rate, btc_usd)
print(f"{rate:>3} sat/vB: network ${actual:.2f}, "
f"charged ${charged:.2f}, margin ${charged - actual:.2f}")The output is:
2 sat/vB: network $0.17, charged $12.00, margin $11.83
10 sat/vB: network $0.85, charged $12.00, margin $11.15
100 sat/vB: network $8.46, charged $12.00, margin $3.54In a quiet market the flat fee is far above cost. In a congested market it can come close to cost, and above that fee rate the exchange would absorb a loss on each withdrawal. A fee that is too low at peak times is how exchanges end up suspending withdrawals or raising fees.
Why the real cost can be lower than it looks: batching
Exchanges often combine many customer withdrawals into one transaction. A Bitcoin transaction has fixed overhead of roughly 10.5 vB, plus about 68 vB per native SegWit input and 31 vB per output. Adding a recipient costs only the 31 vB output, not a whole new transaction.
def btc_vsize_p2wpkh(inputs, outputs):
# Approximate size for native SegWit (P2WPKH) inputs and outputs.
return 10.5 + 68 * inputs + 31 * outputs
single = btc_vsize_p2wpkh(1, 2) # 140.5 vB: one payment plus change
batch = btc_vsize_p2wpkh(3, 51) # 1795.5 vB: 50 payments plus change
print(single, round(batch / 50, 1)) # 140.5 and 35.9 vB per withdrawalAt 10 sat/vB, a single withdrawal costs about 1,405 satoshis. In the batch, each customer's share is about 359 satoshis. The exchange may still charge you the flat fee, so batching widens its margin. Batching also means your withdrawal may wait for the next batch run, which is a real trade-off if you need speed.
Other reasons the numbers differ
| Reason | Effect on the fee you see |
|---|---|
| Fixed fee table | Stays the same while network cost moves |
| Batching | Network cost per user falls below a single-transaction cost |
| Consolidation and internal transfers | The exchange moves coins between its own wallets, so some withdrawals cost it nothing on-chain |
| Fee-rate estimator choice | The exchange may target fast confirmation and pay more than the minimum |
| Network choice | The same token on different chains has very different fees |
| Minimum withdrawal amount | Small withdrawals are blocked so the fee is not most of the value |
| Pricing in the token | A fee fixed in the asset moves in dollar terms as the price moves |
EVM chains and token withdrawals
On Ethereum, a plain ETH transfer uses 21,000 gas. A token transfer uses more, commonly 45,000 to 65,000 gas for an ERC-20 transfer, depending on the contract. Gas is paid in ETH, not in the token you are withdrawing. Exchanges therefore either charge the withdrawal fee in the token itself or convert it, and the conversion rate is another place where a margin can appear.
def evm_fee_usd(gas_used, base_gwei, priority_gwei, max_fee_gwei, eth_usd):
gas_price_gwei = min(max_fee_gwei, base_gwei + priority_gwei)
return gas_used * gas_price_gwei * 1e9 / 1e18 * eth_usd
# ERC-20 transfer, illustrative 20 gwei base, 2 gwei tip, ETH at 3,000 USD
print(round(evm_fee_usd(50_000, 20, 2, 50, 3_000), 2)) # 3.3With these numbers the real cost is 3.30 USD. If the exchange lists a flat 5 USD-equivalent token fee for that network, the margin is 1.70 USD. If base fee triples to 60 gwei during a rush, the cost rises to about 9.30 USD and the flat fee no longer covers it.
Edge cases and gotchas
- Choose the network carefully. The same stablecoin can be withdrawn on several chains with very different fees. The wrong choice can also lose funds if the receiving address does not support that chain.
- Dust and minimums. If the fee is a large fraction of the amount, the withdrawal may be rejected, or you may receive almost nothing.
- Fee deducted from the amount versus added on top. Some interfaces show "amount received" after the fee. Others show the fee in addition. Check which one applies before confirming.
- Internal transfers. Sending to another user of the same exchange is often free because it is only a ledger change, with no on-chain transaction.
- Stuck transactions. If the exchange underpays at peak times, your transaction can sit unconfirmed. You usually cannot raise the fee yourself because the exchange controls the transaction. You can only contact support.
- Fees are not refunded. Once the exchange accepts the withdrawal, the fee is charged even if confirmation is slow.
Estimating whether you are overpaying
A practical check is to compute the implied fee rate. Divide the fee you pay, converted to satoshis, by 141 vB for a typical Bitcoin withdrawal. If you pay 20,000 satoshis, that is about 142 sat/vB. Compare that with the fee rate currently needed for next-block confirmation. If the market rate is 10 sat/vB, you are paying about fourteen times the on-chain price. That is not necessarily wrong, since you are paying for convenience and risk absorption, but you should know it.
Exercise
An exchange charges a flat 0.0004 BTC to withdraw Bitcoin. A typical withdrawal is 141 vB, the market fee rate is 20 sat/vB, and BTC is 50,000 USD. What fee do you pay, what is the network cost, and how large is the exchange's margin in USD?
Show answer
The fee charged is 0.0004 × 50,000 = 20.00 USD. The network cost is 141 × 20 = 2,820 satoshis = 0.0000282 BTC, which is 1.41 USD. The margin is 20.00 − 1.41 = 18.59 USD, roughly 93% of the fee. Batching would reduce the real network cost further.
Exercise
Why can a flat withdrawal fee be a loss for the exchange at one moment and a large profit at another, even if the fee table never changes?
Show answer
The fee table is fixed, but the network fee is set by the fee market and changes with demand for block space. During congestion the real cost can approach or exceed the flat fee. In quiet periods it falls far below it, so the same fee yields a large margin.