Skip to main content

What Is the Difference between ‘Gas Limit’ and ‘Gas Used’?

The Gas Limit is the maximum amount of computational effort (Gas) a user is willing to pay for a transaction. It is set by the sender to prevent an infinite loop in a smart contract from draining their funds.

Gas Used is the actual amount of Gas consumed by the network to execute the transaction. If Gas Used exceeds the Gas Limit, the transaction fails, but the fee up to the limit is still consumed.

What Is the Difference between a Stop-Loss Order and a Stop-Limit Order in Crypto Trading?
Define the Term ‘Bid-Ask Spread’ and Its Relevance to Stop-Limit Placement
Define the ‘Limit Price’ Component of a Stop-Limit Order
What Is the Difference between a Transaction’s Size and Its Gas Limit?