Skip to content
Blockchain Brief

Protocol, chain and market reporting

What Is a Gas Limit in a Crypto Transaction? Sign Safely

What is a gas limit in a crypto transaction? It caps the computation a transaction can use; on EVM chains, you pay for gas used, not the full limit.

The Blockchain Brief Desk4 min read

What Is a Gas Limit in a Crypto Transaction? Sign Safely

A gas limit is the maximum number of computation units an EVM transaction can use; it caps execution, while the fee is based on gas actually used and the gas price. The limit is a ceiling, not a charge for work the transaction never performs.

Think of it as setting how much work a job is allowed to do. A plain ETH transfer uses exactly 21,000 gas. A transaction that also swaps tokens and bridges them needs more work because it makes more contract calls. A lifi bridge route can combine those steps, making lifi bridge fees and transfer-time factors a concrete example of why route complexity matters: the aggregator finds a route that may include a swap as well as a bridge call.

What is a gas limit in an EVM transaction?

The gas limit counts work units, and the gas price sets the cost of each unit. The network charges for gas the transaction actually uses, up to its limit. Any gas below the limit is unused and is not charged.

With EIP-1559, the fee per gas unit is made up of the base fee and priority fee. The base fee is set by the network; the priority fee is the amount offered to the validator for including the transaction. The fee is gas used × (base fee + priority fee). The limit determines the maximum gas used, while the gas price determines what each used unit costs.

A wallet’s estimate helps set a limit high enough for the transaction’s work. It does not mean the transaction will use every unit in that estimate. A plain ETH transfer is predictable at 21,000 gas; a contract call can use more, depending on what the contract does and the state it encounters.

Related questions

What happens if the gas limit is too low?

The transaction runs out of gas, reverts its state changes, and still pays for the gas it burned. Reversion means the intended operation does not complete: a swap or bridge transfer does not succeed, but computation already performed still has a cost.

Take a wallet estimate for a swap-plus-bridge call. Cutting its gas limit to reduce the displayed maximum can leave too little room for the contract calls. The transaction then runs until it reaches that lower ceiling, reverts, and charges for the work it used. The common mistake is expecting a lower limit to make the same transfer cheaper; what actually happens is that the limit can interrupt execution. Unused gas is not charged, but gas already burned on a failed transaction is.

Leave the wallet’s estimate alone unless you know why it is wrong and can set a safe limit for that specific call. The limit caps computation; it is not a discount setting for the gas price.

Gas limit vs gas price: what is the difference?

The gas limit is the maximum number of work units the transaction may consume. The gas price is the cost per unit. A higher limit does not, by itself, make the transaction cost more: the fee depends on gas actually used and the applicable gas price. A higher gas price raises the cost of each unit used.

Wallets may show a higher maximum fee than the amount ultimately paid because the maximum reflects a ceiling, while the final fee reflects actual gas used and the fee per unit at inclusion. Unused gas under the limit is not charged.

More gas limit questions

Why did my wallet show a higher fee than I paid?

The wallet showed a possible maximum based on its estimate and fee settings. Your transaction used less gas, or the applicable fee per unit was lower than the maximum shown, so the final charge was lower.

Can I speed up a pending transaction?

On EVM chains, a wallet may let you replace a pending transaction with one offering a higher priority fee. That can improve its incentive for inclusion; it does not change the transaction’s gas limit or guarantee when it will be included.

Why does an approval cost gas?

An approval is a contract transaction that records permission for another address or contract to use tokens. That state change consumes gas, so it has a fee even though it does not itself swap or bridge the tokens.

Do non-EVM chains like Solana use gas limits?

They can use different transaction resource and fee models. The gas limit and EIP-1559 terms here describe EVM chains; do not assume they apply directly to Solana or other non-EVM networks.