Charged once on the buy and once on the sell; a rough estimate.
Buy cost (incl. fee)—
Sell proceeds (after fee)—
Total fees—
Net profit/loss—
Return—
How it's worked out: cost = buy price × quantity × (1 + fee rate); proceeds = sell price × quantity × (1 − fee rate); net profit/loss = proceeds − cost; return = net profit/loss ÷ cost. It excludes gas, slippage, the spread and taxes; you enter the prices and fee rate. This is for reviewing a trade only — it doesn't predict future prices and is not investment advice.
Count every cost
On-chain there's also gas (estimate it) and slippage (estimate it); for the full cost breakdown, see fees and slippage.
A fee discount saves you a little
Code