Skip to main content

Search...

Popular searches

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.

Transaction
Updated: Mar 19, 2026
Also known as: transaction gas limit computation limit

What Is a Gas Limit?

A Gas Limit is the maximum amount of computational work, measured in gas units, that a blockchain transaction can consume. Gas represents the effort required to execute operations on networks like Ethereum. Users set this limit to cap resource usage.

Users specify the gas limit when creating a transaction. The network executes the transaction until it completes or reaches the limit. If it finishes early, validators refund unused gas. If it hits the limit before completion, the transaction fails, but the user still pays for consumed gas. For example, a simple ETH transfer needs about 21,000 gas units, while a smart contract call might require 100,000 or more.

This mechanism matters for security and efficiency. It prevents malicious transactions, like infinite loops, from overwhelming the network. Without limits, attackers could launch denial-of-service attacks. Proper estimation avoids failed transactions that waste fees or leave funds stuck.

Key characteristics include the transaction gas limit, set per transaction, and the block gas limit, the total for all transactions in a block. Ethereum increased its block gas limit over time to handle more activity. Tools like wallets estimate optimal limits based on network conditions.

BlockchainEthereum

Ethereum is a decentralized blockchain platform that enables smart contracts and decentralized applications (dApps). Its native cryptocurrency is Ether (ETH).

Read full definition

Real-World Examples

Example 1: When setting up a Ledger wallet to send Ethereum, you are prompted to specify a Gas Limit for your transaction. If you are just sending ETH to another address, a typical gas limit of 21,000 gas units is sufficient. However, if you are interacting with a smart contract, such as purchasing an NFT, you might need to set a higher gas limit, like 100,000 gas units.

Example 2: During a DeFi protocol transaction, you notice that the gas limit has been automatically adjusted by the wallet's gas estimation tool. The wallet suggests a gas limit of 150,000 gas units to ensure that your complex transaction, which involves multiple smart contract interactions, will execute properly.

Example 3: You are attempting to execute a token swap on a decentralized exchange. If your gas limit is too low, the transaction will fail, even though the exchange is able to calculate the necessary gas for the trade. A failed transaction means you still lose the gas fees, so it is important to set an appropriate gas limit.

Example 4: When gas prices spike due to network congestion, you might need to increase your Gas Limit slightly to ensure your transaction is processed within a reasonable time frame, even though the actual gas required remains the same.

HardwareLedger

Ledger is a brand of hardware wallets that securely store cryptocurrency private keys offline, such as the Ledger Nano series.

Read full definition
BlockchainEthereum

Ethereum is a decentralized blockchain platform that enables smart contracts and decentralized applications (dApps). Its native cryptocurrency is Ether (ETH).

Read full definition
BlockchainNFT

An NFT (Non-Fungible Token) is a unique digital asset stored on a blockchain, representing ownership of a specific item, such as artwork, music, or virtual goods.

Read full definition
DefiDeFi

DeFi (Decentralized Finance) refers to a set of financial services, such as lending and trading, built on blockchain technology without traditional intermediaries like banks.

Read full definition
DefiSwap

In cryptocurrency, a swap is the direct exchange of one token for another on a blockchain, often via decentralized exchanges (DEXs) without intermediaries.

Read full definition

Ready to Choose a Secure Wallet?

Use our tools to find the right hardware wallet for your needs.