Understanding the crypto gas fee calculator — concept and principle
Every transaction on Ethereum and on networks built the same way costs a network fee called gas. Wallets show the price in gwei, which is hard to picture in dollars. This calculator converts gas used and gas price into the fee in ETH and in your own currency, shows the fee as a share of the amount you send, and shows what the recipient would get if the fee came out of that amount.
How it is calculated
- Fee in ETH = gas used × gas price (gwei) × 10⁻⁹
- Fee in your currency = fee in ETH × ETH price
- Fee as % of amount = fee ÷ amount sent × 100
- Recipient receives = amount sent − fee
Gas used is a count of computation units, not money. Gas price is what you pay per unit, quoted in gwei, where 1 gwei = 10⁻⁹ ETH exactly (one billionth of an ether).
The principle
Each operation the network executes has a fixed gas cost set by the protocol, so the work a transaction needs is measured in gas regardless of the ETH price. A plain ETH transfer between ordinary accounts always uses 21,000 gas, the base cost of any transaction. Token transfers and swaps run contract code and use more, often over 100,000 gas for a swap. Since the London upgrade in August 2021 (EIP-1559), the gas price is made of a base fee, which the protocol sets per block according to demand and which is burned, plus a priority tip paid to the validator. You set a maximum, and you pay only for gas actually used.
Worked example
- Gas used 21,000 (simple transfer), gas price 12 gwei, ETH at $3,000, sending $500.
- Fee in ETH = 21,000 × 12 × 10⁻⁹ = 0.000252 ETH.
- Fee in dollars = 0.000252 × 3,000 = $0.756, shown as $0.76.
- Share of amount = 0.756 ÷ 500 × 100 ≈ 0.151%.
- If the fee is deducted, the recipient gets 500 − 0.756 ≈ $499.24.
How to read the result
The same transfer costs very different amounts depending on network congestion: the gwei price can jump many times over during busy periods and fall back within hours. The ETH price matters too, since the fee is paid in ETH. For small payments the percentage is the useful figure.
Common mistakes
- Using the gas limit from the wallet instead of gas actually used; unused gas is not charged.
- Assuming a token transfer costs the same as an ETH transfer.
- Confusing gwei with ETH (a factor of one billion).
- Forgetting that on Ethereum the fee is normally paid on top of the amount, not taken out of it; exchanges, however, often deduct their own withdrawal fee.
Frequently asked questions
How much does it cost to send ETH?
A simple transfer uses 21,000 gas; at 12 gwei and ETH at $3,000 that is about $0.76.
Why did my swap cost so much more?
Swaps run contract code and commonly use five to ten times the gas of a plain transfer.
What happens if a transaction fails?
The gas used up to the point of failure is still paid, because the network did the work.
Sources: ethereum.org, "Gas and fees" developer documentation · EIP-1559, "Fee market change for ETH 1.0 chain" (Buterin et al.) · G. Wood, Ethereum Yellow Paper (gas costs of transactions)