What is gas in crypto?

In short

Gas is the unit that measures the computational work a transaction needs on Ethereum and on networks built the same way. The gas fee is the amount of gas used multiplied by a price per unit, and the fee is paid in the network's own coin, ETH on Ethereum, whatever asset the transaction moves.

Also called
Gas fee, Gas price, Gwei
Family
Crypto and trading
Facts checked

How a gas fee is calculated

Every operation has a gas cost. A standard ETH transfer needs 21,000 units, and a token transfer or another smart contract call needs more, because it runs code.

Since the fee market change known as EIP-1559, the price per unit has two parts. The base fee is set by the protocol, moves by at most 12.5% from one block to the next depending on how full blocks are, and is burned. The priority fee is a tip to the validator that includes the transaction.

The total is the units of gas used multiplied by the sum of the base fee and the priority fee. Prices are quoted in gwei, one-billionth of an ETH.

What gas means for a wallet or payment product

Gas makes costs vary with demand: the same withdrawal can cost several times more in a busy hour. A product decides who bears that, by charging a fixed withdrawal fee, passing on the live cost or absorbing it.

An address needs ETH to move tokens. Platforms that give each customer a deposit address either fund those addresses before sweeping them, or use contract designs that let another account pay.

A transaction that fails still pays for the gas it used, and one priced too low can wait unconfirmed until it is replaced.

Gas, network fee or withdrawal fee?

Network fee
The general term for what any blockchain charges to process a transaction. Gas is how Ethereum-style networks measure and price it.
Bitcoin fee
Priced by the transaction's size in bytes, not by computation, and paid to miners.
Withdrawal fee
What a platform charges its customer. It may be more or less than the gas the platform pays.

Where Gas shows up in a platform

Modules that do the work

Platforms that need it

Where it is written

The laws and standards this page's facts come from.

General information, not legal advice: what applies to you depends on your services and your market.

Every term

Start your project

Tell us the idea. We'll show you the platform.

One call is enough to map your product to the modules that already exist.

  • Response in under one business day
  • NDA on request
  • No obligation
How can we help?