Gas

Units & gas

gas cost calculator

Work out what a transaction costs: gas used × gas price, in the native token and USD. Pulls the live gas price from Ethereum, Base, Arbitrum, Optimism or Polygon.

runs in your browser

cost in ETH

–

cost in usd

–

what common txs cost on Ethereum right now
txgasETHusd
ETH transfer21,000––
ERC-20 transfer≈52,000––
ERC-20 approve≈46,000––
NFT mint≈110,000––
DEX swap≈150,000––
contract deploy≈1,500,000––

≈ typical figures. a first-time storage write costs more than updating one.

good to know

how is the fee calculated?

fee = gas used × effective gas price. after eip-1559 the effective price is the base fee plus your priority tip, capped by maxFeePerGas.

why are l2 estimates low?

on optimism, base and other rollups you also pay an l1 data fee for posting your tx to ethereum, which this does not include. it is usually the bigger part on op-stack chains.