How do you calculate the real cost of a swap after it completes
The real cost of a swap is the difference between the amount of crypto you would have received at the mid-market rate at the moment of confirmation and the amount that actually arrived in your wallet. This number includes spread, network fees, and any slippage caused by the route the swap took.
Swap crypto
Live rates · no accountSend exactly to:
This asset needs a memo / tag. Send it with or the exchanger cannot credit your deposit.
You receive about at . Exchange reference .
Status: waiting for your deposit
You send from your own wallet straight to the exchanger — nothing to connect, no account, and you stay on this page throughout. Rates are indicative until a swap is opened.
The swap is carried out by an independent exchanger and the deposit address above is theirs. whoisebert.xyz never holds, receives or controls your funds, has no key to that address, and earns a referral commission. Opening a swap sends your receiving address, IP, browser and timezone to the exchanger for their compliance checks; we store none of it. Check their terms, fees and country restrictions before sending anything.
To calculate it, you need three pieces of data: the mid-market rate at the moment your swap was confirmed, the amount you sent, and the amount you received. The mid-market rate is the average of the highest bid and lowest ask on a major exchange at that instant. It is not the rate any platform shows you. It is a reference point. You can find it from a trusted price aggregator, but you must note the exact time of confirmation, not the time you clicked "swap".
Suppose you swapped 1 ETH for USDC. At the moment of confirmation, the mid-market rate is 3,500 USDC per ETH. You receive 3,430 USDC. The difference is 70 USDC. That is your real cost. It is 2% of the notional value of the swap.
That 70 USDC is not a single fee. It is a composite. Part of it is the spread the platform builds into the quoted rate. Part is the network fee, which the platform deducts from your send amount or adds to the receive amount. Part is slippage - the difference between the rate you saw on the preview screen and the rate at which the swap actually executed. Part may be loss from routing through intermediate tokens, if the platform did not swap directly from ETH to USDC.
You can break it down further. The network fee is usually visible on the blockchain explorer. For a swap on Ethereum mainnet, it shows as a transaction fee in ETH. Subtract that from the 70 USDC, using the same mid-market rate to convert the ETH fee to USDC. What remains is the platform's gross revenue from spread and routing. That is not pure profit - the platform pays liquidity providers and the exchange it routes through.
The difference between the quoted rate you saw before confirming and the actual rate at execution is a separate cost. It is not always visible. If you screenshot the preview screen, you can compare the quoted receive amount to the actual receive amount. The gap is slippage. It can be positive or negative, but in practice it is almost always negative on a volatile market. On a quiet day, it might be a fraction of a percent. On a busy day, it can be larger than the spread.
The easiest way to calculate the real cost after the fact is to use a swap tracker that records the mid-market rate at the block time of your transaction. Many block explorers now show this. If you do not have that, you can approximate by looking at the price on a major exchange at the block timestamp. But approximation introduces error. The honest method is to record the mid-market rate yourself at the moment you confirm, then compare it to what you received.
This number is the only cost that matters. The platform's advertised fee, the network fee listed on the preview, and the spread percentage are all abstractions. They tell you where the money went, but not how much you lost relative to the best possible outcome. The real cost is the gap between the ideal and the actual.
For a fuller explanation of each component, see the hub page "What a crypto swap actually costs". It walks through spread, network fees, and the difference between quoted and received in more detail.
Not financial advice. whoisebert.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.
Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.