The paperExchangeCrypto WikiWikiAcademycrypto.notitiaplatform.com
Sign in
● LIVE
CAC 408 080,7▼ 0.81%S&P 5007 254,6▼ 0.94%EURO STOXX6 113,9▼ 0.66%BTC/USD62 734▲ 0.55%ETH/USD1 765,7▲ 1.55%EUR/USD1.10▲ 0.05%BRENT90.38▲ 1.36%GOLD3 690,6▼ 1.37%OAT 10Y5.09%▲ 0.39%VIX24.59▲ 0.12%CAC 408 080,7▼ 0.81%S&P 5007 254,6▼ 0.94%EURO STOXX6 113,9▼ 0.66%BTC/USD62 734▲ 0.55%ETH/USD1 765,7▲ 1.55%EUR/USD1.10▲ 0.05%BRENT90.38▲ 1.36%GOLD3 690,6▼ 1.37%OAT 10Y5.09%▲ 0.39%VIX24.59▲ 0.12%
 
Europe edition
NotitiaCrypto Wiki
Back
Basics

Gas & fees

The cost of an on-chain transaction.

‘Gas’ measures the computational work a transaction asks of the network. The more complex it is (a swap vs a simple transfer), the more gas it uses - and the higher the fee, paid in the native token (ETH, etc.).

Gas price moves with congestion: it spikes when the network is busy. Layer 2s cut these fees dramatically.

Key takeaways
  • Fee = computational work
  • Rises with congestion
  • Reduced by Layer 2s
Cost of an operation at 20 gwei (ETH at $3,000)
1.26 $Transfer6.00 $Mint NFT9.00 $Swap0.18 $Swap on L2
Worked example

What an Ethereum transaction costs

Fees = gas units used × gas price. Compare a plain transfer, a swap and an NFT mint.

Assumption · Gas price 20 gwei (base + tip), ETH at $3,000; 21,000 / 150,000 / 100,000 units (typical orders of magnitude)
  1. 01ETH transfer21 000 × 20 gwei$1.26
  2. 02DEX swap150 000 × 20 gwei$9.00
  3. 03NFT mint100 000 × 20 gwei$6.00
  4. 04The same swap at 60 gwei (peak)$27.00
The professional’s reflex

Cost depends on complexity and network congestion. On a $100 swap, $9 of fees is 9%: a pro batches operations, picks the time or uses a layer 2.

To watchSelected by the newsroom · loads only when you press play
Ethereum gas in depth
Finematics · in English
Gas and Ethereum transaction fees
Ben BK · in French

Questions and answers

Why do fees vary so much?

Space in each block is limited: when many users want in at once, the gas price rises.

When should I transact to pay less?

At off-peak times, often weekends, or on a layer 2 where fees are much lower.

Go further in the Wiki
Gas feesEthereum
✦ Learn by doing

Test your understanding with a quick interactive quiz.

For your career · partnerKairosKairos finds the roles that fit you every day, scores your CV against each out of 100 and prepares your application.Find my role on Kairos · trykairos.eu ↗Go further on the technical side · partnerQuantPadTo go from theory to code: auto-graded exercises in Python, SQL and quantitative finance, backtests and mock interviews for quant, data and M&A roles.Train on QuantPad · quantpad.app ↗
Related concepts
What is a blockchain?BasicsDecentralisationBasicsConsensus: PoW vs PoSIntermediateKeys & walletsBasics