What is a gas fee and why do transactions sometimes cost so much?
Every time you make a transaction on the blockchain, you pay a fee to the validators who process it. That fee can sometimes exceed the amount you're sending, and it's no accident. There's a whole economy behind it.
Table of contents:
What is a gas fee?
A gas fee is a type of transaction fee that appears on blockchain networks that use smart contracts. Ethereum introduced them first, and today many other networks charge them too.
Every time you send cryptocurrency or use a DeFi service on the blockchain, your transaction needs to be verified and permanently recorded on a public ledger. This doesn't happen automatically, it's done by validators, real people who use their computers and pay for electricity to do this work.
A gas fee is what you pay them for that effort. Without it, no one would have a reason to process your transactions, and the network would simply stop working.
It's important to know that gas fees are always paid in the native cryptocurrency of that network.
On Ethereum that means ETH, on Solana it's SOL, and so on. You'll see an estimated amount before confirming any transaction in your wallet.
But gas fees serve another purpose too. When every transaction has a cost, spam is automatically prevented. Without that cost, someone could send millions of pointless transactions and completely overwhelm the network, blocking everyone else.
A gas fee is therefore not just a reward for validators, it's a mechanism that keeps the network functional and fair.
The math behind the fee
The total fee is calculated simply, you multiply the gas units used by the price per gas unit. But behind these two components lies some interesting economics.
The number of gas units used depends on what you're doing on the network. Sending ETH always costs exactly 21,000 gas units, that never changes.
Interacting with a DeFi protocol is a more complex operation and can cost anywhere between 150,000 and 500,000 gas units. The more complex the operation, the more gas it consumes.
The price per gas unit is measured in billionths of ETH, known as Gwei, and it's entirely dynamic. The market determines it in real time. When the network is quiet, the price drops. When everyone wants to transact at the same time, the price goes up.
To put it in concrete terms, one Gwei equals 0.000000001 ETH. If the current gas price is 50 Gwei, sending ETH costs 21,000 multiplied by 50, which gives 1,050,000 Gwei, or 0.00105 ETH. At an ETH price of $3,000, that's roughly $3.15 for a single transaction.
Why does the price vary so much?
It all comes down to one thing: supply and demand for block space.
Every block on the Ethereum network has an upper limit on the gas units it can contain.
When the demand for transactions exceeds the available block space, users start competing by offering higher fees.
EIP-1559: The upgrade that changed everything
Before August 2021, Ethereum's gas fee model was a simple auction, whoever offered more, went first. This created chaos and unpredictability. The upgrade known as EIP-1559 introduced a new model.
After EIP-1559, fees are no longer calculated the same way. They now consist of two components, a base fee and a priority fee, which are multiplied together with the number of gas units used.
The base fee is a fixed charge determined by the protocol itself, and it's automatically destroyed, that money doesn't go to anyone, it's permanently removed from circulation.
The priority fee is a voluntary tip that the user adds to have their transaction processed faster, and it goes directly to the validator.
The result is that fees have become more predictable than before. And since the base fee is destroyed, during periods of high network activity more ETH is removed from circulation than is created, making ETH scarcer and potentially more valuable.
A high gas fee is therefore not a flaw in the system. It's simply a sign that at that moment, a lot of people are trying to do something on the network at the same time, and block space is limited.
Not all blockchains are the same
High Ethereum fees have driven the development of alternative networks and Layer 2 solutions. Every blockchain takes a different approach to processing transactions, and that approach directly affects the cost of fees.
Layer 1 networks like Ethereum and Bitcoin process all transactions directly on the main chain, making them the most secure, but also the most expensive during periods of high activity.
Layer 2 networks work differently. They process transactions off the main chain and only write a summary back to it, splitting the cost among all users.
Sidechains are entirely separate chains that share only some technical standards with the main chain.
The result is that fees can range from a fraction of a cent on some networks to tens of dollars during periods of high activity.
How to reduce fees?
It's not always possible, but there are some tried and tested ways to do it.
Pick the right time
Early mornings and nights (UTC) on weekends tend to be quieter. Keep an eye on a gas tracker through one of the free online network monitoring platforms.
Use Layer 2
For DeFi and NFT activity, Arbitrum, Optimism, and Base offer the same security at a fraction of the cost.
Set your priority fee manually
Wallets often let you set your own tip. If your transaction isn't urgent, keep it at a minimum.
Batch your transactions
Instead of five separate transactions, look for protocols that offer batch operations, you pay gas once.
Gas fees are the price of decentralization
A gas fee might be the smallest number you see when you open your wallet, but it tells you more about the state of the network than any other figure.
It tells you how many people are active, how healthy the network is, and how much your transaction is worth to someone processing it at that moment.
Next time you pause at a confirmation screen and see a fee that surprises you, don't just accept it or reject it. Read it. It's telling you something.
