Gas used per transaction type
Measured from real Ethereum transactions, not from memory: the median gas used per type, each with transactions you can open on a block explorer, and what it costs at today's gas price.
Gas samples: no data yet. We show nothing rather than a guess.
Sampled from recent blocks
Gas used = the gasUsed field of each transaction’s receipt (eth_getTransactionReceipt), successful transactions only. 21,000: Yellow Paper. Cost now uses 0.115 gwei; see the gwei calculator.
Questions and answers
How much gas does an ERC-20 transfer use?
The figure appears once real transactions have been sampled.
Why does an ETH transfer use exactly 21,000 gas?
It is the fixed base cost of every transaction in the Ethereum protocol (G_transaction in the Yellow Paper). A plain transfer runs no contract code, so nothing is added.
How much gas does a swap use?
It depends on the route: a swap through one pool uses less than one through several. The figure here is the median of real swaps through the router, not a fixed number.