Learn
What Are Gas Fees? Why Crypto Transactions Cost Money
Gas fees pay for computation on blockchain networks. Here's why Ethereum fees spike, how Layer 2s reduce costs, and how to avoid overpaying.
Start with the core idea
This guide is built for first-pass understanding. Start with the key terms, then use the framework in your own money workflow.
You tried to swap $50 of ETH on Uniswap and the fee was $47. Welcome to gas fees; the toll you pay to use a decentralized network. Here's why they exist, why they spike, and how to stop overpaying.
What Are Gas Fees in Simple Terms?
Gas fees are the transaction costs you pay to use a blockchain network, compensating validators or miners for the computational work needed to process and record your transaction. On Ethereum, gas is measured in gwei (one-billionth of an ETH) and varies based on network congestion. Simple transfers cost less gas than complex smart contract interactions. Layer 2 networks like Base and Arbitrum reduce gas fees by 90-99% compared to Ethereum mainnet.
Why Transactions Cost Money
On a traditional network like Visa, the company runs the servers, processes your transaction, and charges the merchant a fee. Simple. On a blockchain, there's no company. Instead, thousands of independent validators (or miners) run the network. They donate computing power, electricity, and capital, and they need to get paid.
Gas fees are that payment. Every transaction you submit; sending ETH, swapping tokens, minting an NFT, interacting with a smart contract; requires computational work. Gas is the unit that measures how much work your transaction needs. More complex operations (like a DeFi swap through multiple liquidity pools) cost more gas than a simple transfer.
Think of it like shipping. Sending a letter costs less than shipping a couch. The network charges based on how much "space" and computation your transaction requires.
Gas on Ethereum: Gwei, Base Fee, and Priority Fee
Ethereum gas is measured in gwei, which is one-billionth of an ETH (0.000000001 ETH). A typical transaction might cost 21,000 gas units. The actual dollar cost depends on two things: how many gas units your transaction uses, and the current price per gas unit.
Since EIP-1559 (August 2021), Ethereum gas has two components:
- Base fee: Set by the network based on demand. When blocks are more than 50% full, the base fee goes up. When they're less than 50% full, it goes down. This part of the fee is burned; destroyed forever, making ETH slightly deflationary.
- Priority fee (tip): An optional tip you add to incentivize validators to include your transaction sooner. During normal times, a small tip works fine. During congestion, you need a bigger tip to cut the line.
Your total fee = (base fee + priority fee) x gas units used. Most wallets calculate this automatically and give you slow/medium/fast options.
EIP-1559 Explained Simply
Before EIP-1559, Ethereum gas was a blind auction. You guessed what fee to pay, and if you guessed too low, your transaction sat in the mempool for hours or failed. If you guessed too high, you overpaid. It was terrible UX.
EIP-1559 made fees predictable. The base fee adjusts algorithmically; you always know roughly what the next block will cost. The priority fee lets you pay extra for speed, but you're no longer guessing in the dark.
The burn mechanism was equally important. Before EIP-1559, all fees went to miners. Now the base fee is burned, which means high-usage periods actually reduce ETH supply. During peak activity, more ETH is burned than is issued to validators, making ETH net deflationary.
Why Gas Fees Spike
Gas fees are a supply-and-demand market. Ethereum produces a new block roughly every 12 seconds, and each block has limited space. When more people want transactions than a block can fit, fees spike. Common causes:
- NFT mints: A hyped collection drops and 50,000 people try to mint in the same minute. Gas can hit $200+ for a single transaction.
- Market crashes: Everyone rushes to sell or move funds at the same time. Ironically, the moment you need to act fastest is when it costs the most.
- Airdrop claims: A popular protocol distributes tokens and millions of wallets try to claim simultaneously.
- DeFi liquidations: When collateral values drop, bots race to liquidate positions, flooding the network with high-priority transactions.
- Memecoin frenzies: A new token goes viral on social media and thousands of wallets pile into Uniswap within minutes.
During the 2021 NFT boom, average gas fees routinely exceeded $50 per transaction. A simple ERC-20 token swap could cost over $100. Many users with smaller portfolios were priced out of Ethereum entirely.
Gas on Other Chains
Ethereum isn't the only game in town, and gas fees vary wildly across blockchains:
| Network | Typical Transfer Fee | Typical Swap Fee | Speed |
|---|---|---|---|
| Ethereum L1 | $1-5 (calm), $20-50+ (busy) | $5-200+ | ~12 seconds |
| Base (L2) | <$0.01 | $0.01-0.05 | ~2 seconds |
| Arbitrum (L2) | $0.01-0.10 | $0.05-0.30 | ~0.3 seconds |
| Solana | <$0.01 | <$0.01 | ~0.4 seconds |
| Bitcoin | $1-5 (calm), $50+ (busy) | N/A (no native swaps) | ~10 minutes |
The trend is clear: most everyday activity is moving to L2s and alternative chains. You use Ethereum mainnet for large, high-security transactions and L2s for everything else.
How to Save on Gas
You don't need to overpay. Here are practical ways to reduce your gas costs:
- Time your transactions: Gas prices follow predictable patterns. Weekends and late nights (US time) are typically cheapest. Weekday mornings during US/European overlap are the most expensive.
- Use Layer 2s: If you're swapping tokens or using DeFi, do it on Base, Arbitrum, or Optimism. Same protocols, 99% less gas. Bridge your funds once and operate on L2.
- Batch transactions: Some protocols let you bundle multiple operations into one transaction. One gas fee instead of five.
- Set a max fee: Most wallets let you set a maximum gas price. Your transaction will wait until fees drop below your limit, then execute automatically.
- Avoid peak events: Don't try to mint an NFT in the first 30 seconds of a drop. Wait 10 minutes for the initial frenzy to pass. Fees often drop 80% within minutes.
- Use gas estimation tools: Sites like Etherscan's gas tracker show real-time gas prices and historical patterns. Check before you transact.
MEV and Its Effect on Your Fees
MEV (Maximal Extractable Value) is the dirty secret of blockchain transactions. Validators can see your pending transaction before it's confirmed, and they can reorder transactions within a block to extract profit.
The most common example is a sandwich attack. You submit a swap on Uniswap. A bot sees your transaction in the mempool, buys the token before your swap executes (pushing the price up), lets your swap go through at the higher price, then sells immediately after (pocketing the difference). You get a worse price and don't even know why.
MEV bots also compete with each other by bidding up gas prices, which raises fees for everyone. Solutions are evolving; Flashbots and MEV-protected RPCs can route your transactions privately so bots can't see them. If you're doing large swaps, using an MEV-protected route can save you real money.
The Future: Cheaper Gas for Everyone
Ethereum's roadmap is laser-focused on reducing gas fees. The key developments:
- Proto-danksharding (EIP-4844): Already live since March 2024. Created "blob" transactions; a cheaper data format specifically for L2 rollups. This slashed L2 fees by 90%+ overnight. A transaction on Base went from ~$0.50 to under $0.01.
- Full danksharding: The next step. Will increase blob capacity dramatically, pushing L2 fees down even further. Still a few years away.
- L2 maturity: As more activity moves to rollups, Ethereum mainnet becomes a settlement layer; used primarily by L2s posting proofs, not individual users. Your DeFi swap happens on Base for $0.005, and Base settles with Ethereum in bulk.
The endgame: gas fees for everyday users should be essentially zero on L2s, with Ethereum mainnet reserved for high-value settlement. We're already most of the way there.
Gas Fees as a Cost Basis Problem
Here's something most people miss: gas fees affect your taxes. When you pay gas to buy a token, that fee is part of your cost basis. When you pay gas to sell, it reduces your proceeds. If you're not tracking gas fees, you're likely overpaying on taxes.
Across dozens of transactions per month, gas fees can add up to hundreds of dollars. That's real money you can deduct — but only if you're tracking it. A portfolio tracker like Clarity automatically includes gas fees in cost basis calculations, so you get accurate tax numbers without manually checking every transaction on Etherscan.
Tracking Gas Spending Across Chains
If you're active across multiple chains, Ethereum, Solana, Base, Arbitrum, your gas spending is scattered across different block explorers and wallets. You might be spending $50/month on gas and not realize it because each individual fee feels small.
Connecting your wallets to Clarity gives you a consolidated view of all transaction fees across every chain. You can see your total gas spend over time, identify which chains are costing you the most, and make smarter decisions about where to transact.
What to Do Next
If you're still doing everything on Ethereum mainnet, set up a wallet on Base or Arbitrum and bridge some funds over. You'll immediately notice the difference — transactions that cost $15 on mainnet cost a penny on L2. For most DeFi activity, there's no reason to pay mainnet gas anymore.
And if you're already using multiple chains, start tracking your gas costs. It's probably more than you think, and every dollar of gas is a dollar you can include in your cost basis at tax time. Connect your wallets to Clarity and see the full picture.
Cryptocurrency investments are volatile and carry significant risk. This article is educational and does not constitute financial advice. Do your own research before investing.
Core Clarity paths
If this page solved part of the problem, these are the main category pages that connect the rest of the product and knowledge system.
Money tracking
Start here if the reader needs one place for spending, net worth, investing, and crypto.
For investors
Use this when the real job is portfolio visibility, tax workflow, and all-account context.
Track everything
Best fit when the pain is scattered accounts across banks, brokerages, exchanges, and wallets.
Net worth tracker
Route readers here when they care most about net worth, allocation, and portfolio visibility.
Spending tracker
Route readers here when they need transaction visibility, recurring charges, and cash-flow control.
Frequently Asked Questions
Why do crypto transactions cost money?
Blockchain transactions require computational work from thousands of nodes worldwide to validate and record. Gas fees compensate these nodes for their resources. It's the cost of using a decentralized network — there's no company absorbing the cost like a bank does with free checking.
Why are Ethereum gas fees so high?
Ethereum mainnet has limited block space, and fees rise when demand exceeds capacity — during NFT mints, market crashes, or popular token launches. EIP-1559 (2021) improved fee predictability but didn't lower them. Layer 2 networks like Base and Arbitrum process transactions for fractions of a cent by batching them before settling on Ethereum.
How can I save on gas fees?
Use Layer 2 networks (Base, Arbitrum, Optimism) instead of Ethereum mainnet. Time transactions during off-peak hours (weekends, early morning US time). Batch multiple operations when possible. For simple transfers, consider cheaper chains like Solana where fees are fractions of a cent.
Try this workflow
Use this with your real data
Apply this concept with live balances, transactions, and portfolio data — not a static spreadsheet.
Next best pages
Graph: 6 outgoing / 6 incoming
blog · explains · 84%
Crypto Tax Season Is a Mess. Here's How We Track Cost Basis Across 50+ Exchanges.
Every crypto sale, swap, and airdrop is taxable. Clarity connects to 50+ exchanges and on-chain data to compute cost basis using FIFO, HIFO, or specific identification — automatically.
blog · explains · 84%
Staking Yields Are Falling. Here's What Real APYs Look Like in 2026.
Ethereum staking yields dropped from 5-6% to under 3.2%. Institutional adoption and liquid staking growth are compressing returns across all proof-of-stake networks.
blog · explains · 84%
Voice Input for AI Financial Chat: Ask AI Out Loud
How Clarity's voice input works in AI chat, why speech lowers friction for financial questions, and how audio is handled securely.
learn · related-concept · 76%
Hot Wallets vs Cold Wallets: Crypto Security Trade-Offs
Hot wallets are convenient but vulnerable. Cold wallets are secure but less accessible. Here's how each works and how to decide what to keep where.
learn · related-concept · 76%
What Are Layer 2 Solutions? Scaling Blockchains Explained
Layer 2 networks process transactions off the main chain for lower fees and faster speeds. Here's how rollups work, major L2s compared, and how to use them.
learn · related-concept · 76%
What Are NFTs? Digital Ownership Beyond the Hype
NFTs are unique digital tokens that prove ownership of digital assets. Here's how they work, what happened to the market, and legitimate use cases beyond.