StableX Academy

Learn crypto the right way.

114 plain-English lessons Β· 15 modules

Gas & Gas Limit

Gas measures the computational work a transaction requires; the gas limit is the maximum you are willing to spend on it.

In depth

Every operation the EVM performs has a gas cost, and you pay gas Γ— gas price in ETH. A simple transfer uses about 21,000 gas; a complex DeFi trade may use hundreds of thousands. Setting the limit too low makes the transaction fail (and you still pay for the work done).

Fuel gauge labelled "gas limit" with a car (the transaction) driving until either it arrives or the tank runs dry.

Why it matters

Gas explains why Ethereum fees vary so much and why failed transactions still cost money.