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.
Learn
Gas fees pay for computation on blockchain networks. Here's why Ethereum fees spike, how Layer 2s reduce costs, and how to avoid overpaying.
This guide is designed for first-pass understanding. Start with core terms, then apply the framework in your own account 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.
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.
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.
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:
Your total fee = (base fee + priority fee) x gas units used. Most wallets calculate this automatically and give you slow/medium/fast options.
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.
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.
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.
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
Apply this concept with live balances, transactions, and portfolio data instead of static spreadsheets.
Graph: 6 outgoing / 6 incoming
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.
learn · related-concept · 76%
What Is a DEX? Decentralized Exchanges Explained
A DEX lets you swap crypto without a centralized intermediary. Here's how automated market makers work, DEX vs CEX trade-offs, and popular platforms like.
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.
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:
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.
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.
You don't need to overpay. Here are practical ways to reduce your gas costs:
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.
Ethereum's roadmap is laser-focused on reducing gas fees. The key developments:
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.
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.
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.
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.