Gas Limit
The gas limit is the maximum amount of computational work (gas) a blockchain transaction can consume. It ensures transactions don't overuse network resources.
What Is Gas Limit?
The gas limit is the maximum amount of gas a transaction is allowed to use on Ethereum and other EVM networks. Gas measures computational work: each operation a transaction performs has a set gas cost. The sender sets the limit, and the fee actually paid is the gas used multiplied by the price per unit.
A plain ETH transfer between ordinary accounts uses 21,000 gas. Smart contract calls such as token transfers or swaps need more, and the amount depends on what the contract does. Wallet apps estimate it by simulating the transaction and usually add a margin. If the transaction needs less, only the gas used is charged. If it runs out before finishing, it fails and all its changes are undone, but the gas consumed is still paid for.
The limit caps what a transaction can cost its sender and stops faulty or malicious code from running forever. Separately, every block has its own gas limit, which caps the total work of all transactions in it.
A hardware wallet usually shows the maximum fee, that is the gas limit times the maximum price: the worst case, not the expected cost. Lowering the limit below the estimate saves nothing, since unused gas is not charged, and risks a failed transaction.
Real-World Examples
Example 1: A user sends ETH with a Ledger Nano S Plus. The app sets a gas limit of 21,000, and the device shows the maximum fee before the user confirms.
Example 2: Someone lowers the suggested gas limit of a token swap by hand to “save on fees”. The transaction runs out of gas, the swap does not happen, and the fee for the gas used is lost.
Frequently Asked Questions
Can I save on fees by lowering the gas limit?
No. If a transaction needs less gas than its limit, only the gas used is charged, so a lower limit saves nothing. If the limit is set below what the transaction needs, it runs out of gas and fails: all its changes are undone, but the gas consumed is still paid for.
Why does my hardware wallet show a higher fee than I end up paying?
The device usually shows the maximum fee: the gas limit times the maximum price per unit. That is the worst case, not the expected cost. The fee actually paid is the gas used multiplied by the price, so a transaction that uses less gas than its limit costs less than the amount shown.
Why does a token swap need a higher gas limit than an ETH transfer?
A plain ETH transfer between ordinary accounts uses 21,000 gas. Smart contract calls such as token transfers or swaps perform more operations, each with a set gas cost, so they need more, depending on what the contract does. Wallet apps estimate the amount by simulating the transaction and usually add a margin.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.