Crypto · How blockchains work
Crypto transaction fees and gas: how they are set
How bitcoin fee rates and Ethereum gas work, with the base fee rule worked block by block and the same payment priced in dollars at several fee levels.
On this page
Every transaction on a public blockchain pays a fee to the party that adds it to a block. On Ethereum the fee is measured in gas. The fee is not a charge set by a company, and it has nothing to do with how much money is being moved. It is the price of a scarce thing: room in the next block.
That one idea explains the behavior people find baffling. Sending $50 can cost more than sending $5 million. The same transfer can cost a cent on Sunday morning and several dollars during a market panic. A transaction can sit unconfirmed for hours because the fee attached to it was set too low.
This lesson explains how fees are set on bitcoin and on Ethereum, which use two different designs, works Ethereum's base fee rule forward block by block, and prices the same transactions in dollars at a range of fee levels.
Why there is a fee at all
Blocks are kept small on purpose, so that ordinary computers can store and check the whole ledger (see How a blockchain works: blocks, hashes and nodes). Bitcoin's blocks are capped at 4 million weight units, roughly a few thousand transactions every ten minutes. Ethereum's blocks have a limit of 60 million gas every twelve seconds, with a target of half that.
When more transactions arrive than fit, something has to decide which go in. A fee does that job. It also serves two other purposes: it makes it expensive to flood the network with junk, and it pays the block producers who secure the chain, a role that grows on bitcoin as the block subsidy shrinks (see Bitcoin mining and the halving: rewards, difficulty and price).
Transactions that have been broadcast but not yet included wait in each node's mempool, short for memory pool. Block producers pick from it, and they pick what pays best per unit of space.
Bitcoin: an auction for bytes
A bitcoin transaction does not state a fee. It lists inputs (coins being spent) and outputs (who receives what). Whatever is left over, inputs minus outputs, goes to the miner. Wallets work this out for you.
What miners care about is fee per unit of block space, the fee rate, quoted in satoshis per virtual byte (sat/vB). A satoshi is a hundred-millionth of a bitcoin, and a virtual byte is a transaction's weight divided by four.
A simple payment from one modern address, with one output to the recipient and one back to the sender as change, is about 141 virtual bytes. A transaction that gathers many small earlier payments into one is larger, because each input adds bytes. So the fee depends on the shape of the transaction and the history of the coins being spent, and not at all on the value moved.
| Fee rate | Fee for 141 vB | In dollars at $64,188 |
|---|---|---|
| 1 sat/vB | 141 sats | $0.09 |
| 5 sat/vB | 705 sats | $0.45 |
| 20 sat/vB | 2,820 sats | $1.81 |
| 100 sat/vB | 14,100 sats | $9.05 |
| 500 sat/vB | 70,500 sats | $45.25 |
There is no official price. The fee market is a first-price auction: each sender bids, and miners fill the block from the highest fee rate down. Wallets estimate the rate needed for confirmation within a chosen number of blocks by looking at what is waiting.
When blocks are not full, almost any fee confirms in the next block. Since Bitcoin Core 30.0, released in October 2025, nodes by default relay transactions paying as little as 0.1 sat/vB. When demand surges, the rate needed can rise many times over within hours, and transactions that bid too little wait until the queue clears.
If a bitcoin transaction is stuck
Nothing is lost while a transaction waits: the coins have not moved. Two standard remedies exist. Replace-by-fee lets the sender broadcast a new version of the same transaction paying more. Child-pays-for-parent lets the recipient (or the sender, using the change) spend the unconfirmed output in a second transaction with a fee high enough to make mining both worthwhile. Wallets differ in which they support.
Ethereum: gas
Ethereum transactions do more than move coins. They can run programs (see Ethereum and smart contracts: how ether, gas and staking work), and programs differ enormously in how much work they demand of every node. So Ethereum meters computation.
Gas is the unit of work. Every operation has a fixed gas cost: a plain transfer of ether costs 21,000 gas; sending a token costs more, since it runs the token's contract; a swap on a decentralized exchange might use 150,000 or more. The gas a given action needs is roughly constant. What changes from minute to minute is the price of each unit of gas, quoted in gwei, a billionth of an ether.
A transfer at a base fee of 10 gwei with no tip: 21,000 × 10 = 210,000 gwei = 0.00021 ETH. At the ether price of $1,800.26 on November 18, 2026, that is $0.38.
How the base fee moves
Since the London upgrade of August 5, 2021, which introduced the change known by its proposal number, EIP-1559, the base fee is not bid by users. The protocol sets it for every block from one input: how full the previous block was compared with the target.
- A block exactly at the target leaves the base fee unchanged.
- A completely full block, twice the target, raises it by 12.5%.
- An empty block lowers it by 12.5%.
- Anything in between moves it proportionally.
Because the change compounds, sustained demand moves the price fast. Start at 10 gwei and run the rule forward:
| After | Base fee |
|---|---|
| Start | 10.00 gwei |
| 1 full block | 11.25 |
| 5 full blocks (one minute) | 18.02 |
| 10 full blocks (two minutes) | 32.47 |
| then 4 blocks at target | 32.47 |
| then 10 empty blocks (two minutes) | 8.54 |
Ten full blocks, two minutes of heavy demand, multiply the base fee by 3.25. Ten empty ones cut it to 26% of where it stood. The rise and fall are not symmetric in gwei, since each step is a percentage of the current level: ten rises followed by ten falls end at 8.54, below the starting 10.
This mechanism makes fees predictable from one block to the next, which lets wallets quote a fee that will almost certainly be accepted. It does not make them low. When demand stays above the target, the base fee keeps climbing until enough users drop out.
Senders set two limits in a wallet: a maximum fee per gas they are willing to pay and a priority fee. They are charged the actual base fee plus the tip, and the difference from their maximum is refunded. They also set a gas limit, the most gas the transaction may use.
Two Ethereum traps
A failed transaction still costs money. If a transaction runs out of gas or the contract rejects it partway, the changes are undone, but the validators did the work and the gas used up to that point is charged. In a frantic period, such as a popular token launch, a sender can pay a large fee for a transaction that accomplishes nothing.
Fees are paid in ether, always. Sending a stablecoin or any other token on Ethereum needs ether in the same wallet to pay the gas. A wallet holding $1,000 of a token and no ether cannot move it until some ether is sent in.
The same actions priced in dollars
| Action | Size | At a low rate | At a moderate rate | At a high rate |
|---|---|---|---|---|
| Bitcoin payment | 141 vB | $0.18 (2 sat/vB) | $1.81 (20 sat/vB) | $9.05 (100 sat/vB) |
| Ether transfer | 21,000 gas | $0.08 (2 gwei) | $0.38 (10 gwei) | $1.89 (50 gwei) |
| Token swap on Ethereum | 150,000 gas | $0.54 (2 gwei) | $2.70 (10 gwei) | $13.50 (50 gwei) |
The fee levels are examples chosen to span quiet and busy conditions; they are not readings of the network on any date. Two points come out of the table.
The dollar cost depends on the coin's price as well as the fee rate. The same 10 gwei costs twice as many dollars when ether's price doubles. Fees quoted in gwei or sat/vB are only half the picture.
Complex actions multiply the cost. A swap uses about seven times the gas of a transfer. A person making many small DeFi transactions on Ethereum's main chain can spend more on gas than they make, which is the practical reason Layer 2 networks: rollups, Lightning and how they scale exist.
Other designs in brief
- Rollups and layer 2 networks run transactions off Ethereum's main chain and post compressed data back to it. Since March 2024 that data has its own space in each block, called blobs, with a separate fee, so layer 2 costs no longer compete directly with ordinary transactions. Fees there are usually a small fraction of the main chain's.
- Solana charges a base fee of 5,000 lamports per signature (a lamport is a billionth of a SOL), plus an optional priority fee. Half of the base fee is burned.
- Exchange withdrawal fees are not network fees. An exchange charges its own flat amount to send coins out, which may be more or less than what the network costs it. Trades inside an exchange do not touch a blockchain and pay no network fee at all.
| Chain | Unit priced | How the price is set | Who receives it |
|---|---|---|---|
| Bitcoin | Virtual bytes | Senders bid; miners take the highest rates | The miner |
| Ethereum | Gas | Protocol sets a base fee; senders add a tip | Base fee burned; tip to validator |
| Ethereum layer 2 | Gas, plus a data share | Set by the network's operator and blob fees | The operator, then Ethereum |
| Solana | Signatures, plus priority | Fixed base fee; optional priority bid | Half of base burned; rest to validator |
Pitfalls
- Confusing the fee with a percentage. Network fees are flat for a given transaction shape. They are punishing for small transfers and negligible for large ones.
- Setting the gas limit too low. The transaction fails and the gas is still spent. Wallets estimate the limit; lowering it by hand rarely helps.
- Paying whatever the wallet suggests in a spike. Fee spikes usually pass within hours. A transfer that is not urgent can wait.
- Sending on the wrong network to save fees. A cheaper network is a different chain. Coins sent to an address on a network the recipient does not support can be lost.
- Ignoring fees when judging small positions. Buying $40 of a token and paying $8 in gas each way means the token must rise 40% to break even.
How Finabase does it
Finabase does not show network fees, gas prices or mempool conditions, and no transactions are sent through it. It shows the prices used here: BTC.X and ETH.X on their quote pages and on the crypto list. Current fee levels are published by block explorers and shown in wallets before you confirm a transaction.
The dollar figures on this page multiply the stated fee rate by the stated size and by the bitcoin price of $64,188.30 or ether price of $1,800.26 shown on Finabase on November 18, 2026. They will be different on any other day.
Frequently asked questions
Why are gas fees so high sometimes?
Gas fees rise when more transactions want into a block than the target allows. Ethereum's base fee then climbs by up to 12.5% a block until demand falls back. Anything that sends many users to the chain at once, such as a market panic or a popular token launch, has that effect.
What is gwei?
Gwei is a unit of ether equal to one billionth of an ETH, used for quoting gas prices. A gas price of 10 gwei means each unit of gas costs 0.00000001 ETH, so a 21,000-gas transfer costs 0.00021 ETH.
Does sending more money cost a higher fee?
No. The fee depends on the transaction's size in bytes on bitcoin or its gas use on Ethereum. Moving $10 and moving $10 million in the same kind of transaction cost the same.
What happens if I set the fee too low?
On bitcoin the transaction waits unconfirmed until fee rates fall to its level, and it can usually be replaced with a higher-fee version. On Ethereum a transaction whose maximum fee is below the base fee waits in the same way. In neither case are the coins lost.
Who gets the fee?
On bitcoin, the miner of the block. On Ethereum, the base fee is destroyed and only the priority fee goes to the validator. The burned base fee is removed from the supply of ether for good.
Summary
A blockchain fee is the price of limited block space, so it depends on how much space a transaction takes and how many others want in, and never on the amount sent. Bitcoin runs an auction in satoshis per virtual byte: a 141-vbyte payment costs about $1.81 at 20 sat/vB and $64,188 per coin. Ethereum meters work in gas and sets a base fee by formula, moving it up to 12.5% a block, so that ten full blocks more than triple it; a 21,000-gas transfer at 10 gwei costs about $0.38 at $1,800 per ether. Failed Ethereum transactions still pay for gas, fees must be paid in the chain's own coin, and for small sums the fee can outweigh any likely gain.
Check your understanding
5 questions on this lesson. Each answer comes with the reason, and nothing is scored.
Two people each send one ordinary bitcoin payment in the same block at the same fee rate. One sends $20, the other $2 million. How do their fees compare?
- The larger payment pays a far higher fee
- They pay about the same, because the fee depends on the transaction’s size in bytes
- The smaller payment pays more, as a penalty
Show the answer
B. They pay about the same, because the fee depends on the transaction’s size in bytes Fee = fee rate × virtual size. Two transactions of the same shape take the same block space whatever amount they move.
Ethereum’s base fee is 20 gwei. The next three blocks are completely full. What is the base fee afterward?
- 27.5 gwei
- 28.5 gwei
- 60 gwei
Show the answer
B. 28.5 gwei Each full block raises it 12.5%: 20 × 1.125 × 1.125 × 1.125 = 28.48 gwei. The increases compound.
A token swap needs 150,000 gas, the base fee is 12 gwei and the sender adds a 2 gwei tip. What is the fee in ether?
- 0.0021 ETH
- 0.0018 ETH
- 0.021 ETH
Show the answer
A. 0.0021 ETH 150,000 × (12 + 2) = 2,100,000 gwei, and a gwei is a billionth of an ether, so the fee is 0.0021 ETH.
An Ethereum transaction runs out of gas halfway through. What does the sender pay?
- Nothing, because it failed
- The gas used up to the failure
- Double the normal fee
Show the answer
B. The gas used up to the failure The state changes are undone, but validators did the computation, so the gas consumed is still charged.
A wallet holds 500 of a dollar stablecoin on Ethereum and no ether. What can it do?
- Send the stablecoin, paying the fee in the stablecoin
- Send the stablecoin for free
- Nothing on that chain, until it receives some ether to pay gas
Show the answer
C. Nothing on that chain, until it receives some ether to pay gas Gas on Ethereum is paid in ether only. A token transfer runs the token’s contract and needs ether in the sending wallet.
Sources and further reading
- Ethereum.org — Gas and fees (units of gas × (base fee + priority fee); 21,000 gas for a transfer; base fee changes by at most 12.5% a block)
- EIP-1559 — Fee market change for ETH 1.0 chain (base fee burned; change denominator 8; elasticity multiplier 2)
- Ethereum.org — Blocks (target of 30 million gas, limit of 60 million)
- EIP-4844 — Shard blob transactions (a separate fee market for rollup data)
- Ethereum.org — History of Ethereum (London, August 5, 2021; Dencun, March 13, 2024)
- BIP 141 — Segregated Witness (block weight limit of 4,000,000; virtual transaction size)
- Bitcoin developer guide — Transactions (the fee is the input value not paid to outputs)
- Bitcoin Core 30.0 release notes — default minimum relay feerate changed to 0.1 satoshis per vB (October 2025)
- BIP 125 — Opt-in full replace-by-fee signaling
- Solana documentation — Fee structure (base fee of 5,000 lamports per signature)
- Finabase crypto list — bitcoin and ether prices on November 18, 2026, used to convert fees to dollars; fee arithmetic by Finabase
