Home โ€บ Guides โ€บ Ethereum Gas Fees Explained (and How to Pay Less)
โ›ฝ ERC-20 Token Guide

Ethereum Gas Fees Explained (and How to Pay Less)

Gas fees are the part of Ethereum that confuses newcomers the most โ€” and the part that quietly determines how much your transactions actually cost. Whether you're sending a token, swapping on a DEX, or deploying your own ERC-20, you pay gas in ETH. This guide explains what gas is, how the fee is calculated, why it swings so much, and the practical things you can do to pay less.

What gas actually is

Every action on Ethereum โ€” a transfer, a swap, deploying a contract โ€” requires computation by the network. Gas is the unit that measures that computational work. A simple ETH transfer uses a small, fixed amount of gas; a complex DeFi interaction uses much more. Think of gas as the "how much work" number. You then pay for that work in ETH, at a price set by the market.

Gas units versus gas price

Two separate numbers combine to make your fee:

Your fee is essentially gas used ร— gas price. The gas used is mostly fixed by what you're doing; the gas price is what fluctuates.

The EIP-1559 fee model: base fee plus tip

Since the EIP-1559 upgrade, the gas price is split into two parts:

Your wallet usually estimates both for you and lets you choose a speed (slow/normal/fast), which mostly adjusts the tip. The total you pay per gas is base fee + tip.

TermMeaning
Gas usedWork your transaction requires (set by the action).
Base feeAuto-adjusting network price per gas, burned.
Priority feeOptional tip to validators for faster inclusion.
Gas limitThe maximum gas you allow the transaction to use.
gweiThe unit gas price is quoted in (a billionth of an ETH).

Why gas fees fluctuate so much

Ethereum blocks have a limited amount of space. When demand is high โ€” a popular NFT mint, a market crash, a hyped token launch โ€” everyone competes for that space and the base fee climbs. When activity is quiet, the base fee falls, sometimes dramatically. This is why the same swap can cost a few dollars at one hour and dozens at another. Gas is a live auction for limited block space.

What common actions cost

Because gas used is fairly predictable per action, you can estimate costs once you know the current gas price:

Multiply the gas used by the gas price (in ETH) to get your fee. At 20 gwei, deploying a 1.4M-gas token costs about 0.028 ETH; at 10 gwei it's about 0.014 ETH โ€” the same action, half the cost, purely because of timing.

Why deploying a token costs more

Creating a token is more expensive than sending one because contract deployment writes new code and data to the blockchain permanently. The network charges for every byte of contract code stored and every storage slot initialised (name, symbol, balances, ownership, feature flags). That's why a one-time token deployment uses over a million gas while a simple transfer uses tens of thousands. If you're launching a token, this is the single biggest cost, so timing it well matters a lot โ€” see how to create an ERC-20 token.

Gas limit and "out of gas"

When you send a transaction you also set a gas limit โ€” the maximum gas you'll allow it to consume. Wallets estimate this automatically. If you set it too low and the transaction needs more, it runs "out of gas," reverts, and โ€” importantly โ€” you still pay for the gas it used up to the failure. This is why you should trust your wallet's estimate (or add a small buffer) rather than manually lowballing the limit.

Failed transactions still cost gas

This surprises people: a transaction that reverts (for example, a swap that fails due to slippage, or a token creation that runs out of balance for the fee) still consumes the gas spent doing the work before it failed. The action doesn't complete, but the computation happened, so the gas isn't refunded. The lesson: make sure your inputs are valid and your wallet has enough ETH for fee plus gas before confirming.

How to pay less gas

You can't change how much gas an action needs, but you can control the price you pay for it:

Layer-2s: the bigger lever

If low fees are a priority, Ethereum Layer-2 networks (rollups) offer the same tokens and tools at a fraction of mainnet gas โ€” often cents instead of dollars. The trade-off is that mainnet has the deepest liquidity and the strongest brand trust. Many projects launch on mainnet for credibility and use L2s for high-frequency activity. It's worth knowing the option exists when gas is your main concern.

Reading gas on Etherscan

On any transaction page, Etherscan shows the gas used, the gas price paid, and the total transaction fee in ETH and USD. Reviewing your past transactions there is a great way to learn what actions really cost and to spot when you overpaid. The Gas Tracker page also shows live base fee and estimated costs for common actions.

Tips specifically for token creators

If you're deploying a token, the deployment is your biggest gas expense and it only happens once, so it pays to be patient:

Conclusion

Gas is simply the price of using Ethereum's shared computer: a measure of work (gas used) multiplied by a market price (gas price in gwei), split into a burned base fee and an optional validator tip. Fees swing because block space is auctioned in real time. You can't reduce the work an action needs, but you can choose when to do it โ€” and good timing, modest tips, and an awareness of Layer-2 alternatives are the practical keys to paying less.

๐Ÿš€ Ready to launch your token?

Create a verified ERC-20 token on Ethereum in under 60 seconds โ€” no coding required.

Create Your ERC-20 Token โ†’

Frequently Asked Questions

What is gas on Ethereum?

Gas is the unit that measures the computational work a transaction requires. You pay for gas in ETH. More complex actions use more gas, and a busier network means a higher price per unit of gas.

Why are gas fees sometimes so high?

Block space is limited. When many people transact at once, they bid higher fees to get included faster, pushing the base fee up. Fees drop again when demand falls โ€” often at night and on weekends (UTC).

Do failed transactions still cost gas?

Yes. If a transaction runs out of gas or reverts, the work done up to that point still consumed resources, so the gas is spent even though the action did not complete. Always leave a buffer.

How much does it cost to deploy a token?

Deploying an ERC-20 contract typically uses roughly 1.2โ€“1.6 million gas. The ETH cost depends on the gas price at the time, so deploying when the network is quiet can save a lot.