Gas Fee Explained: How It Works, Formula & 7 Saving Tips

A gas fee is the cost you pay a blockchain network so your transaction is processed and confirmed by validators. It appears every time you make a transaction on a blockchain, and its size changes with network congestion. Gas fees are usually paid in the network's native coin, for example ETH on Ethereum.
Think of a blockchain as a toll road and each transaction as a vehicle. The gas fee is the toll you pay so your vehicle can pass. When the road is crowded, the toll goes up.
Key Takeaways
- A gas fee is what you pay a blockchain network to get a transaction processed.
- On Ethereum, the total fee equals the gas used times (base fee + priority fee). The base fee is set by the protocol and burned, while the priority fee (tip) goes to the validator.
- The gas limit is the maximum gas you are willing to use. Unused gas is refunded, but a failed transaction still costs money.
- On Solana, the base fee is 5,000 lamports per signature, plus an optional priority fee.
- Fees differ between networks and change over time, so always check the estimate before you confirm.
Why Do Gas Fees Matter?
A blockchain is not run by a single party. Transactions are processed by a network of validators that keeps it secure and records the data. The gas fee is the reward that keeps the network running, and it also makes spamming the network expensive.
On Ethereum, part of the fee (the base fee) is burned and part (the priority fee) is a tip for the validator. So a gas fee is not just an "admin fee". It is part of how the network works. To understand Ethereum better, read the introduction to Ethereum.
How Does a Gas Fee Work?
Every action on a blockchain requires computation. Gas is the unit that measures that computation. The more complex the action, the more gas it uses. A plain ETH transfer uses 21,000 gas, while interacting with a smart contract usually uses more.
The Gas Fee Formula and a Worked Example
On Ethereum, the formula is:
Total fee = gas used x (base fee + priority fee)
Gas prices are quoted in Gwei. One Gwei equals 0.000000001 ETH (10 to the power of minus 9 ETH).
Illustrative example: you send plain ETH (21,000 gas), and the base fee plus priority fee at that moment totals 50 Gwei.
- 21,000 x 50 Gwei = 1,050,000 Gwei
- 1,050,000 Gwei = 0.00105 ETH
The 50 Gwei figure is only for the calculation. Real gas prices change all the time. To understand the Gwei unit, read what Gwei is, and for a more detailed look at Ethereum costs, read the Ethereum gas fee article.
What Is a Gas Limit?
The gas limit is the maximum amount of gas you are willing to use for one transaction. If the gas used is less than the limit, the remainder is refunded. If gas runs out before the transaction finishes (out of gas), the transaction fails, and the gas already used is not refunded.
So a gas limit that is too low can cost you fees with nothing to show for it. Crypto wallets usually suggest a gas limit automatically, and you should not change it unless you understand it.
Solana vs Ethereum Gas Fees
Solana uses a different scheme. Its base fee is 5,000 lamports per signature (equal to 0.000005 SOL, since 1 SOL is 1 billion lamports). Half of the base fee is burned and half goes to the validator. There is also an optional priority fee, calculated from the compute unit price times the compute unit limit, and all of it goes to the validator. Fees are still charged even if the transaction fails.
For a sense of scale, Ethereum's average gas cost was about US$0.15 per transaction on 18 January 2026 (The Block), while Solana's average fee was about US$0.00025 in March 2026 (Sanctum, a secondary source). These are snapshots on those dates, not today's fees. Learn more in the Solana article.
What Affects the Size of a Gas Fee?
- Network congestion. When demand is high, users compete to get into a block and fees rise. When demand falls, fees fall too.
- Type of transaction. A simple transfer uses less gas than interacting with a complex smart contract.
- The network you use. Each blockchain has its own fee scheme, so fees on Ethereum, Solana, and Layer 2 networks differ.
- The priority fee you choose. The higher the tip, the better the chance your transaction is processed sooner when the network is busy.
7 Tips to Save on Gas Fees
- Check the fee estimate before you confirm. Look at the number on your wallet screen, or watch the Etherscan Gas Tracker for the Ethereum network.
- Choose a time when the network is quieter. Fees follow demand. Quiet hours are not predictable, so use the real-time estimate as your guide.
- Pick the network that fits your need. Networks with a low base fee, such as Solana, can be cheaper for small transactions. Make sure the asset and app you need are actually available on that network.
- Consider Layer 2. Networks like Arbitrum charge an L2 execution cost plus the cost of posting data to the parent chain. Check the fees and risks before using one.
- Do not lower the gas limit carelessly. A gas limit that is too low can make a transaction fail, and the gas used is not returned.
- Cut unnecessary transactions. Every transaction has its own cost. Sending once in the amount you planned is usually cheaper than sending many small amounts.
- Check the network and address before sending. A failed or wrong-network transaction can still use up fees. Send a small test amount first if you are unsure.
Gas Fees Compared Across Networks
| Network | Fee components | Where the fee goes |
|---|---|---|
| Ethereum (L1) | Gas used x (base fee + priority fee), measured in Gwei | Base fee is burned, priority fee goes to the validator |
| Solana | 5,000 lamports per signature, plus an optional priority fee | 50% of the base fee is burned and 50% goes to the validator, 100% of the priority fee goes to the validator |
| Arbitrum | L2 execution cost plus the cost of posting data to the parent chain | Follows Arbitrum's own scheme |
Actual fee amounts change with network conditions, so this table compares mechanisms, not today's numbers.
Conclusion
A gas fee is the cost of getting a transaction processed on a blockchain. On Ethereum, it is calculated from the gas used times the base fee plus the priority fee. On Solana, the base fee is 5,000 lamports per signature. You cannot remove gas fees, but you can manage them: check the estimate, choose a suitable network, and avoid failed transactions. Fees are always moving, so look at the latest figure before you confirm.
FAQ
What is a gas fee in crypto?
A gas fee is the cost a user pays a blockchain network so a transaction is processed and confirmed by validators. It is usually paid in the network's native coin, for example ETH on Ethereum.
Why can gas fees be expensive?
Gas fees rise when many users transact at the same time because they compete to get into a block. Complex transactions, such as interacting with a smart contract, also use more gas.
What is a gas limit?
The gas limit is the maximum gas you are willing to use for one transaction. Unused gas is refunded. If gas runs out before the transaction finishes, the transaction fails and the gas already used is not refunded.
How much is the gas fee on Solana?
Solana's base fee is 5,000 lamports per signature, or 0.000005 SOL. You can add an optional priority fee to get the transaction processed sooner. In rupiah or dollars, the value changes with the SOL price.
What do you pay the gas fee with when sending USDT?
USDT exists on many networks, and the gas fee is paid in the native coin of the network you use, for example ETH on Ethereum or SOL on Solana. So you need to confirm the network you send on and hold enough of that coin to cover the fee.
Is a gas fee the same as a trading fee on a platform?
No. A gas fee is paid to the blockchain network when you make an on-chain transaction. Trading fees or other charges set by a platform follow that platform's own terms.
Can gas fees be avoided completely?
On-chain transactions generally still cost a fee. You can reduce it by choosing a low-fee network and checking the estimate before you confirm, but fees cannot be guaranteed to stay cheap.
Start Learning Crypto on Mobee
Mobee is operated by PT CTXG Indonesia Berkarya, which is licensed and supervised by OJK. If you are just starting out, begin with the guide to creating an account and KYC on Mobee, then follow the crypto market in the Mobee App. Download the Mobee App to get started. Crypto assets are high risk, so learn first before you trade.
Disclaimer
This content is intended to provide additional information to readers. Always do your own research before investing. All crypto buying, selling, and investing activity is the sole responsibility of the reader.



