Gas fee

Learn how gas fees work, why they exist, how they are calculated, and what users should know about network congestion and transaction speed.

A gas fee is the transaction cost users pay to execute operations on a blockchain network, such as sending crypto, interacting with a smart contract, or approving a token transfer.
The fee compensates validators or miners for the computational resources required to process and secure the transaction. Gas fees are typically paid in the network’s native cryptocurrency (for example, ETH on Ethereum, POL on Polygon) and vary with network demand and transaction complexity.

Why gas fees exist

Blockchains are decentralized networks of computers that must agree on the state of the ledger. Processing transactions requires computation, storage, and bandwidth.

Gas fees serve several purposes:

  • Compensating validators or miners
    Fees reward the participants who validate transactions, produce blocks, and secure the network.
  • Preventing spam and abuse
    By attaching a cost to every operation, gas fees discourage users from flooding the network with meaningless or malicious transactions.
  • Prioritising transactions
    When the network is busy, users can pay higher fees to have their transactions processed sooner. Lower‑fee transactions may wait longer.
  • Reflecting computational work
    More complex operations (for example, interacting with a smart contract) consume more resources and therefore cost more in gas than simple transfers.

Without gas fees, it would be economically trivial to overload the network, and there would be no direct incentive for validators to prioritise one transaction over another.

How gas fees work

The mechanics differ slightly between blockchains, but the core ideas are similar.

Gas as a unit of work

On networks like Ethereum, “gas” is a unit that measures the computational effort required to perform an operation.

Examples:

  • A simple token transfer uses a certain amount of gas.
  • A complex DeFi interaction (for example, swapping tokens, providing liquidity, or borrowing) uses more gas because it involves more computation and storage changes.

Each type of operation has a predefined gas cost in terms of gas units.

Gas price

The gas price is the amount of native cryptocurrency the user is willing to pay per unit of gas.

On Ethereum, gas prices are commonly quoted in gwei, where:

A higher gas price means:

  • Validators earn more per unit of work.
  • The transaction is more attractive to include quickly.

A lower gas price means:

  • The transaction costs less.
  • It may take longer to be included, especially during congestion.

Gas limit

The gas limit is the maximum amount of gas the user is willing to consume for a transaction.

  • Simple transfers have a relatively low gas limit.
  • Complex smart‑contract interactions require a higher gas limit to ensure the transaction does not run out of gas mid‑execution.

If a transaction runs out of gas before completion, it fails, but the gas already consumed is still paid to the network.

Total gas fee formula

On many EVM‑compatible chains, the total gas fee can be expressed as:

  • Gas used — the actual amount of gas consumed by the transaction.
  • Base fee — a network‑determined fee per gas unit, which may be burned (removed from circulation) on some chains like Ethereum after certain upgrades.
  • Priority fee (tip) — an optional extra paid to validators to prioritise the transaction.

The exact formula and terminology can differ on other chains, but the principle remains: fee equals work times price.

What affects gas fees

Gas fees are not fixed; they fluctuate based on several factors.

Network congestion

When many users are sending transactions at once (for example, during a popular NFT mint, a major DeFi event, or high market volatility), demand for block space increases.

  • Higher demand → higher gas prices.
  • Lower demand → lower gas prices.

Users often see gas fees rise during peak activity and fall during quieter periods.

Transaction complexity

More complex operations require more gas units.

Examples of higher‑gas activities:

  • Deploying a smart contract.
  • Interacting with multiple contracts in one transaction.
  • Performing swaps, lending, or yield‑farming actions in DeFi.

Simple transfers generally cost less in gas than multi‑step smart‑contract interactions.

Chain design and capacity

Different blockchains have different:

  • Block sizes and throughput.
  • Consensus mechanisms (proof‑of‑work, proof‑of‑stake, etc.).
  • Fee markets and upgrade histories (for example, EIP‑1559 on Ethereum).

As a result, average gas fees on one chain may be much lower or higher than on another.

User‑selected priority

Many wallets allow users to choose between:

  • Slower, cheaper transactions (lower gas price).
  • Faster, more expensive transactions (higher gas price).

By adjusting the gas price or priority fee, users can influence how quickly their transaction is likely to be included.

Gas fee vs transaction fee

The terms are related but not always identical.

  • Transaction fee is a general term for any fee charged for processing a transaction.
  • Gas fee is a specific type of transaction fee used on smart‑contract blockchains (especially Ethereum and EVM‑compatible chains) where fees are calculated based on gas units and gas price.

On some chains, people use “gas fee” and “network fee” interchangeably. On others, “network fee” may refer to the total cost shown to the user, while “gas” refers specifically to the underlying computation model.

In practice, when a wallet shows “network fee” or “transaction fee” for an on‑chain action, it is usually the gas fee required by that blockchain.

Gas fees in wallets and apps

When users interact with wallets, DEXs, or DeFi apps, they typically see:

  • An estimated gas fee before confirming a transaction.
  • Options to adjust speed or priority, which change the gas price.
  • A breakdown showing the native token amount required for gas (for example, 0.002 ETH).

Important points for users:

  • Gas fees are paid in the chain’s native token, not necessarily in the token being transferred.
    • For example, to send USDC on Ethereum, you need ETH for gas.
    • To send tokens on Polygon, you need POL for gas.
  • If you do not have enough native token to cover gas, the transaction will fail.
  • Estimated fees are just that — estimates. The final fee can differ slightly depending on network conditions and actual gas used.

Gas fees and card or custodial products

In custodial wallets, exchanges, or crypto card products, gas fees may be handled in different ways.

User pays gas directly

In non‑custodial wallets and many DeFi interactions:

  • The user sees and pays the gas fee explicitly.
  • The fee is deducted from their wallet balance in the native token.

Platform absorbs or bundles gas

In some custodial or card products:

  • The platform may bundle gas fees into a broader service fee.
  • The user may see a single “network fee” or “withdrawal fee” instead of a detailed gas breakdown.
  • The platform may subsidise gas for certain actions (for example, internal transfers) as part of its pricing model.

Users should check:

  • Whether gas fees are shown separately or included in other fees.
  • Which actions trigger on‑chain transactions (and therefore gas costs).
  • Whether they need to hold the native token for gas or whether the platform handles it internally.

Managing gas fees

Users cannot control the network’s base fee, but they can manage their own behaviour.

Timing transactions

  • Executing transactions during quieter periods can reduce gas costs.
  • Avoiding peak times (major launches, extreme volatility) can help if the transaction is not urgent.

Choosing appropriate speed

  • For non‑urgent transfers, selecting a slower, cheaper option can save money.
  • For time‑sensitive actions (for example, reacting to a market move), paying a higher fee may be worthwhile.

Batching actions

  • Some protocols allow multiple actions to be combined into a single transaction, which can be more gas‑efficient than executing them separately.

Using lower‑fee chains or layers

  • Users may choose to operate on chains or layer‑2 networks with lower average fees for certain activities, while accepting the associated trade‑offs in liquidity, security model, or ecosystem.
Spend your
crypto.
Don’t sell it
Join the members who figured it out.