Crypto & Stablecoins

What are gas fees?

Gas fees are the payments a user makes to have a transaction processed on a blockchain network. Every action that changes the state of the chain, sending a token, swapping an asset, interacting with a smart contract, requires computation. Validators or miners carry out that computation and need to be paid for it. Gas is the unit that measures how much computational work a transaction requires.

The fee itself is the amount of gas a transaction uses, multiplied by the price per unit of gas at that moment. On Ethereum, that price is quoted in gwei, a denomination equal to one-billionth of an ETH.

How are gas fees calculated?

The basic formula is the same across most EVM-compatible chains: gas used, multiplied by gas price, equals the total fee.

A simple example: a basic ETH transfer uses 21,000 units of gas. If the gas price is 30 gwei, the fee is 21,000 times 30 gwei, or 630,000 gwei, which equals 0.00063 ETH.

Two related terms matter here. Gas limit is the maximum amount of gas a user is willing to pay for a transaction, a safety cap. Gas used is the actual amount consumed. A user only pays for gas used, not the full limit. If a transaction needs more gas than the limit allows, it fails and reverts, but the gas already consumed up to that point is still paid.

What changed with EIP-1559?

Before August 2021, Ethereum used a simple auction model. Every user submitted a single gas price bid, and miners picked the highest bids first. This created constant guesswork. Bid too low and a transaction could stall for blocks. Bid too high and money was wasted.

The London hard fork introduced EIP-1559, replacing that auction with a two-part fee structure:

  • Base fee: Set automatically by the protocol, not by the user. It adjusts based on how full recent blocks have been, rising when the network is busy and falling when it is quiet, by up to 12.5% per block. The base fee is burned, meaning it is permanently removed from circulation rather than paid to anyone.
  • Priority fee (tip): An optional amount the user adds on top of the base fee, paid directly to the validator. A higher tip moves a transaction up the queue during congestion.

The total fee is gas used, multiplied by base fee plus priority fee. Since EIP-1559 launched, Ethereum has burned over 4.52 million ETH through this mechanism, which has made ETH deflationary during periods of heavy network use.

Why do gas fees spike during high demand?

Block space is limited. When more transactions compete for inclusion than a block can hold, the base fee rises to ration that space. Historical spikes track directly with demand surges. During DeFi Summer in 2020, average gas prices reached roughly 480 gwei as users competed for trades and yield farming positions. Similar spikes followed the NFT boom in 2021.

The 12.5% per-block adjustment cap means fees cannot spike instantly. It takes several consecutive full blocks to drive a large increase, and fees decay at the same rate once demand falls back.

Why do gas fees vary so much across networks?

Not every blockchain uses "gas" as the term, and fee models differ significantly between networks.

Network Fee model Typical cost Native token needed
Ethereum mainnet EIP-1559 base fee + priority fee Cents to tens of dollars, depending on congestion ETH on Ethereum mainnet
Layer 2 (Arbitrum, Base, Optimism) Same base fee/priority fee logic, batched and posted to L1 Fractions of a cent ETH held on that specific L2
Solana Flat, near-zero transaction fee Fractions of a cent, regardless of congestion SOL

Every EVM-compatible chain requires the network's own native token to pay fees. ETH on Ethereum mainnet does not cover a transaction on Arbitrum; that requires ETH held on Arbitrum specifically.

Layer 2 networks exist largely to make fees cheaper. By batching many transactions and posting compressed data back to the underlying Layer 1, L2s bring typical fees down to fractions of a cent.

Non-EVM chains handle this differently again. Solana does not use the term "gas fees" at all. It charges flat fees regardless of network congestion, which is one reason it has become popular for high-frequency stablecoin transfers.

How does chain choice affect gas costs in stablecoin payments?

For platforms moving stablecoins across multiple chains, gas fees are a direct cost input, not a background detail. The same payment can cost very differently depending on the route:

  • Routed over Ethereum mainnet during a congestion spike: potentially dollars in gas
  • Routed over a Layer 2 or Solana: fractions of a cent, regardless of timing

Stablecoin orchestration platforms exist to make this routing decision automatically, selecting a network based on cost, speed, and liquidity rather than leaving it to manual monitoring. CCTP still requires gas on both ends of a transfer to execute the burn and mint, so chain selection matters even when moving native USDC.

Due's stablecoin infrastructure handles this on the backend. A platform's end user sees a local currency amount go in and a local currency amount come out. Which chain the transaction routed through, and what it cost in gas, stays Due's operational concern rather than something the business has to manage.

Continue learning

Meta transaction

Category
Read more

Gas fees

Category
Read more

Batch payments

Category
Read more

Wallet-as-a-Service (WaaS)

Category
Read more

Wallet screening

Category
Read more

KYT (Know Your Transaction)

Category
Read more

KYB (Know Your Business)

Category
Read more

Settlement finality

Category
Read more

Stablecoin redemption

Category
Read more

E-Money Token (EMT)

Category
Read more

MiCA

Category
Read more

Travel Rule

Category
Read more

CCTP (Cross-Chain Transfer Protocol)

Category
Read more

Stablecoin depeg

Category
Read more

FX risk (currency risk)

Category
Read more

Banking-as-a-Service (BaaS)

Category
Read more

ISO 20022

Category
Read more

Nostro and vostro accounts

Category
Read more

UETR (Unique End-to-End Transaction Reference)

Category
Read more

Stablecoin settlement

Category
Read more

Automatic reconciliation

Category
Read more

Balance reconciliation

Category
Read more

Identity verification API

Category
Read more

Interbank settlement

Category
Read more

Open banking

Category
Read more

FedGlobal ACH

Category
Read more

Ledger API

Category
Read more

Subsidiary ledger

Category
Read more

Cross-chain bridges

Category
Read more

Ledger sharding

Category
Read more

Reconciliation API

Category
Read more

ACH debit

Category
Read more

Ledger database

Category
Read more

Stablecoin reserves

Category
Read more

Transaction reconciliation

Category
Read more

Closed loop payments

Category
Read more

Open loop payments

Category
Read more

Stablecoin sandwich

Category
Read more

ACH reversal

Category
Read more

Layer 2 blockchain

Category
Read more

Layer 1 blockchain

Category
Read more

FedNow API

Category
Read more

eCheck

Category
Read more

Payment controls

Category
Read more

Faster Payment System (FPS)

Category
Read more

Request for payment (RfP)

Category
Read more

Stablecoin orchestration

Category
Read more

ACH API

Category
Read more

BACS

Category
Read more

ACH payment returns

Category
Read more

Stablecoin yield

Category
Read more

Cash float

Category
Read more

BAI2

Category
Read more

Compliance risk management

Category
Read more

ACH transfer limit

Category
Read more

Deposit Account Control Agreement (DACA)

Category
Read more

Currency Transaction Report (CTR)

Category
Read more

Crypto faucet

Category
Read more

FBO account

Category
Read more

OTC trading

Category
Read more

Virtual IBAN

Category
Read more

Third-party payment

Category
Read more

Ledger balance

Category
Read more

Issuer Identification Number (IIN)

Category
Read more

CASPs (Crypto-Assets Service Providers)

Category
Read more

Section 314(b)

Category
Read more

OFAC (Office of Foreign Assets Control)

Category
Read more

Penny test

Category
Read more

Cash pooling

Category
Read more

Money transmission

Category
Read more

Core banking

Category
Read more

Sweep account

Category
Read more

Flow of funds

Category
Read more

Cash application

Category
Read more

Bank Reconciliation

Category
Read more

Clearing account

Category
Read more

Cash reconciliation

Category
Read more

Take rate

Category
Read more

CHAPS (Clearing House Automated Payment System)

Category
Read more

The Clearing House (TCH)

Category
Read more

A2A payments

Category
Read more

Bulk Electronic Clearing System (BECS)

Category
Read more

Real-time gross settlement (RTGS)

Category
Read more

Same-day ACH

Category
Read more

ACH return codes

Category
Read more

PYUSD (PayPal USD)

Category
Read more

Sort Code

Category
Read more

Atomic settlement

Category
Read more

Payment orchestration

Category
Read more

T2

Category
Read more

Financial Crimes Enforcement Network (FinCEN)

Category
Read more

Unified Payments Interface (UPI)

Category
Read more

Programmable money

Category
Read more

QR code payments

Category
Read more

CHIPS (Clearing House Interbank Payments System)

Category
Read more

Nacha

Category
Read more

FedACH

Category
Read more

XRP (Ripple)

Category
Read more

EURC (Euro Coin)

Category
Read more

USDC (USD Coin)

Category
Read more
Download Due & Move Money Without Borders