Back to Glossary

Gas in Crypto

Gas (in Crypto) Definition: Gas is the unit that measures the computational work required to execute a specific operation on the Ethereum blockchain — sending ETH, calling a smart contract function, or minting an NFT. Every transaction on Ethereum requires gas, and users pay for that gas in ETH. The total transaction fee equals the gas used multiplied by the gas price the user sets. Gas serves a dual purpose: it compensates validators for the computational resources they expend processing transactions, and it prevents spam by making frivolous computation economically costly.

What Is Gas in Crypto?

Gas is Ethereum’s pricing mechanism for computation. Different operations consume different amounts of gas based on their computational complexity: a simple ETH transfer costs 21,000 gas; a token swap on Uniswap might cost 100,000–200,000 gas; deploying a new smart contract can cost several million gas. The gas cost of each operation is fixed by Ethereum’s protocol — what changes is the gas price, which floats with network demand.

Think of gas as the fuel your transaction needs to run, and the gas price as the price per unit of fuel. When Ethereum is quiet, fuel is cheap — you can execute a simple transfer for less than $0.10. When Ethereum is congested — during an NFT mint rush, a DeFi liquidation cascade, or a token airdrop claim — demand for block space spikes and gas prices can reach hundreds of dollars for a single transaction. The same computational work costs vastly different amounts depending purely on network demand at the moment you transact.

EIP-1559, activated in August 2021, reformed Ethereum’s gas mechanism. It introduced a base fee — a protocol-set minimum gas price that adjusts automatically based on how full recent blocks were — and a priority fee (tip) that users can add to incentivize validators to include their transaction faster. The base fee is burned (removed from circulation), creating deflationary pressure on ETH supply when network usage is high.

How Does Gas Work?

When you submit a transaction, you specify a maximum gas limit (the most gas you’re willing to let the transaction consume) and a max fee per gas (the most you’re willing to pay per unit). The actual fee charged is: gas used × (base fee + priority fee), capped at your max fee setting. If the transaction uses less gas than the limit, unused gas is refunded. If it runs out of gas before completing, the transaction fails — and you still pay for the gas consumed up to the failure point.

This asymmetry — paying for failed transactions — is one of Ethereum’s most important user experience pitfalls. A user who sets a gas limit too low, or who sends a transaction to a smart contract with a bug, can lose the gas cost without achieving the intended outcome. Setting the gas limit too high wastes nothing (unused gas is refunded), so erring on the high side is the safer approach.

Block space is the underlying scarce resource. Each Ethereum block has a target size of 15 million gas and a maximum of 30 million gas. When blocks are consistently hitting the maximum, the base fee increases — making transactions more expensive and naturally reducing demand until blocks return to target size. This feedback mechanism is EIP-1559’s core contribution: predictable fee dynamics rather than the pure auction model that preceded it.

Gas in Crypto Example

During the Otherside NFT mint in May 2022, Yuga Labs sold 55,000 virtual land plots simultaneously. The rush to mint drove Ethereum base fees above 8,000 gwei — approximately $200–$500 per transaction at ETH’s then-price. Many users failed to set high enough gas limits or max fees and had transactions fail, losing gas costs without receiving NFTs. Total gas fees paid during the mint period exceeded $150 million in a single evening — more than many protocols earn in a year — all burned by EIP-1559’s base fee mechanism.

Why Is Gas Important for Traders?

Gas costs are a direct trading cost on Ethereum that most traders underestimate relative to exchange fees. A Uniswap swap during peak congestion costing $50 in gas on a $500 position represents a 10% round-trip cost before any slippage — making the transaction economically irrational compared to a centralised exchange with 0.1% fees. Gas costs are one of the primary reasons activity migrated from Ethereum mainnet to Layer 2 networks (Arbitrum, Optimism, Base) and alternative chains (Solana, BNB Chain) that offer sub-cent transaction costs.

Gas price monitoring is a practical skill for DeFi traders. Tools like ETH Gas Station, Blocknative, and Etherscan’s gas tracker show current base fees and priority fee recommendations. Scheduling non-urgent transactions during low-traffic periods (typically weekday early mornings UTC) can reduce costs by 80–90% compared to peak congestion. For time-sensitive arbitrage or liquidation transactions, paying a high priority fee ensures validator prioritisation — but at a cost that must be factored into the trade’s profitability calculation.

EIP-1559’s base fee burn creates a feedback loop between Ethereum network usage and ETH supply. When usage is high (many transactions consuming many gas units), more ETH is burned than is issued to validators — making ETH net deflationary. This dynamic strengthens the investment thesis for ETH as a productive asset whose supply contracts with increased demand for its network. Monitoring ETH burn rates relative to issuance gives traders a real-time measure of whether ETH is deflationary or inflationary at current usage levels.

Gas vs. Transaction Fees on Other Chains

Ethereum (Gas) Solana / Layer 2s
Fee unit Gas (computational units) Lamports (SOL) / wei (L2)
Typical simple transfer cost $0.10–$50+ (demand-dependent) $0.00001–$0.01
Fee mechanism Base fee (burned) + priority tip Fixed base + optional priority
Failed tx cost Yes — gas consumed up to failure point Usually minimal or zero
Burn mechanism Yes — EIP-1559 burns base fee Partial (SOL burns 50% of base fee)

Key Takeaways

  • Gas measures computational work on Ethereum — a simple ETH transfer costs 21,000 gas while a Uniswap token swap costs 100,000–200,000 gas, with the total fee determined by gas used multiplied by current gas price (base fee plus priority tip).
  • EIP-1559’s base fee burn removed over 3 million ETH from circulation in the two years following its August 2021 activation, creating net deflationary periods when network usage was high — directly linking Ethereum’s monetary policy to its usage as a computing platform.
  • The Otherside NFT mint in May 2022 burned over $150 million in gas fees in a single evening as 55,000 simultaneous transactions drove base fees above 8,000 gwei — demonstrating how demand spikes create gas costs that exceed the value of the transaction for many participants.
  • Gas costs on Ethereum mainnet drove significant activity migration to Layer 2 networks (Arbitrum, Optimism, Base) where the same operations cost fractions of a cent — the economic pressure of gas fees has been the primary catalyst for Ethereum’s multi-layer scaling architecture.
  • Failed transactions still consume gas up to the point of failure — setting a gas limit too low or transacting with a buggy smart contract results in paying for computation that produced no result, one of Ethereum’s most consequential user experience risks.
FAQ section

Why does gas price change so much?

Gas price reflects demand for Ethereum block space. Each block has limited capacity; when many users want transactions included quickly, they bid up the gas price. EIP-1559 automated much of this with the base fee mechanism, but the priority tip still fluctuates based on urgency and competition.

What happens if I set the gas price too low?

Your transaction will be stuck in the mempool — waiting for a validator to include it. If you set a max fee below the current base fee, it will never be included until the base fee drops to your level. Most wallets allow you to "speed up" a pending transaction by resubmitting it with a higher fee.

Does gas apply to Bitcoin?

No — Bitcoin uses a different fee model where transaction fees are set per byte of transaction data, not per computational operation. The concept of "gas" is specific to Ethereum's EVM-compatible execution model. Bitcoin's scripting language is intentionally limited, so complex smart contract execution isn't applicable.

How do Layer 2 networks reduce gas costs?

Layer 2 networks (Arbitrum, Optimism) batch thousands of transactions off-chain and submit a compressed proof to Ethereum mainnet — spreading the mainnet gas cost across all transactions in the batch. Each individual user pays a tiny fraction of one mainnet transaction's gas cost rather than a full gas payment.

Forced Liquidation
Forced Liquidation Definition: Forced liquidation is the aut...
Isolated Margin
Isolated Margin Definition: Isolated margin is a position ma...
Checkable Deposits
Checkable Deposits Definition: Checkable deposits are bank a...
BSC (Binance Smart Chain)
BSC Definition: Binance Smart Chain (BSC), now officially re...

Live Chat

Contact our support team via live chat.

Help Center

Questions about our services?
Check out our Help Center.

Risk Warning:
Trading in leveraged products carries a high level of risk and may not be suitable for all investors.