Lesson Objective
Why blockchains charge transaction fees
Public blockchains have limited capacity. Transactions compete for computation, storage, bandwidth and inclusion in blocks. Fees price that demand, compensate or reward network participants, discourage spam and help determine which transactions are processed first.
The word gas is most closely associated with Ethereum and compatible networks, but every blockchain has its own fee rules. Bitcoin commonly expresses fees in satoshis per virtual byte. Solana uses a base fee per signature plus an optional prioritization fee based on requested compute units. The economic purpose is similar even when the terminology differs.
Fee Is Not the Amount Sent
The native fee asset
A blockchain normally requires fees in its native asset. Holding a token on the network does not necessarily provide the asset needed to move it.
| Network | Typical fee asset | Beginner implication |
|---|---|---|
| Ethereum | ETH | Sending an ERC-20 token such as a stablecoin still requires ETH for gas. |
| Bitcoin | BTC | The fee is deducted from bitcoin inputs and reflects transaction size and fee rate. |
| Solana | SOL | Token transfers require SOL for the transaction fee and sometimes account-related costs. |
| Polygon PoS | POL | Tokens on Polygon require the network's native fee asset. |
| BNB Smart Chain | BNB | BEP-20 token activity requires BNB for fees. |
| Ethereum Layer 2 | Usually ETH | The ETH must be on that Layer 2; ETH on Ethereum mainnet is a separate balance. |
Ethereum gas: two separate quantities
Ethereum measures the computational work of a transaction in gas units. The amount paid depends on both the work performed and the price per unit of gas.
Core Relationship
Gas used: The units actually consumed by transaction execution. A simple ETH transfer generally uses less gas than a complex smart-contract interaction.
Gas limit: The maximum gas the sender authorizes the transaction to consume. It is a safety ceiling, not automatically the amount charged.
Base fee: A protocol-determined minimum price that adjusts with demand and is burned on Ethereum.
Priority fee: An optional tip intended to encourage a validator to include the transaction.
Maximum fee: A cap the sender is willing to pay per unit. Wallets generally estimate this and refund unused room under the cap.
A simple fee example
Suppose a transaction uses 50,000 gas and the effective gas price is 20 gwei. The fee is 1,000,000 gwei, which equals 0.001 ETH. Its value in dollars changes with the market price of ETH.
| Component | Example | Meaning |
|---|---|---|
| Gas used | 50,000 | Actual units of computational work. |
| Effective gas price | 20 gwei | Price paid for each unit. |
| Network fee | 0.001 ETH | 50,000 × 20 gwei, converted into ETH. |
| Dollar display | Variable | Wallet estimate based on the current ETH price; not the network's accounting unit. |
Why fees change
Network demand: More users competing for limited block space can increase fees.
Transaction complexity: Swaps, lending, NFT activity and contract approvals may use more computation and storage than a simple transfer.
Data size: Some systems charge according to the bytes or data posted, not the monetary amount transferred.
Priority settings: A higher tip or fee rate may improve the chance of faster inclusion.
Layer 1 conditions: A rollup may pass some parent-chain data costs to its users.
Wallet estimation: Different wallets and services may use different assumptions, buffers and fee displays.
Fee models differ by network
| Network model | Main fee driver | How priority is expressed |
|---|---|---|
| Ethereum | Gas used multiplied by an effective gas price. | Base fee plus an optional priority fee, within the user's maximum. |
| Bitcoin | Signed transaction size multiplied by a fee rate, commonly sat/vB. | Higher fee rate generally makes a transaction more attractive to miners. |
| Solana | Base fee per signature plus optional compute-based prioritization fee. | Compute-unit price and requested compute-unit limit. |
| Ethereum rollup | Layer 2 execution plus a share of data or settlement costs posted to Layer 1. | Depends on the rollup; Ethereum-style tips may not operate identically. |
Bitcoin fees are about transaction size
A Bitcoin transaction spends earlier outputs and creates new outputs. A transaction using many inputs can be larger in bytes and therefore cost more than a transaction moving a larger monetary amount from one input. Wallets estimate an appropriate fee rate based on demand for block space.
Some wallets support replace-by-fee, allowing an unconfirmed transaction to be replaced with a higher-fee version. Another technique, child-pays-for-parent, may allow a later transaction to help incentivize confirmation of an earlier one. Availability depends on wallet and transaction design.
Solana fees use signatures and compute
Solana charges a base fee for required signatures and can add an optional prioritization fee. The priority calculation depends on the compute-unit price and the compute-unit limit requested. Setting an unnecessarily high limit can increase the priority fee because the calculation can use requested rather than actual compute units.
Layer 2 does not mean fee-free
Layer 2 networks process transactions away from an underlying Layer 1 and then publish data or proofs back to it. Batching and compression can reduce per-transaction cost, but users may still pay for Layer 2 execution and a share of Layer 1 data or settlement expense.
Fees can rise when the parent chain becomes expensive.
Depositing to or withdrawing from the Layer 2 may require additional transactions.
A bridge or exchange may add service charges beyond the network fee.
The fee asset must be on the correct Layer 2 network.
Displayed Cost May Be Incomplete
Why failed transactions may still cost money
A transaction can be included in a block and execute unsuccessfully. Validators still performed work to process it, so the fee may be charged even though the intended swap, transfer or contract action did not complete.
The transaction ran out of gas because its limit was insufficient.
A smart-contract condition changed before execution — for example, the price moved outside a swap's permitted slippage.
The contract rejected the instruction because of permissions, balances, deadlines or paused functionality.
A token approval or prerequisite was missing.
Another transaction changed the relevant on-chain state first.
Failure Is Different from Rejection
Network fee, platform fee and spread
| Cost | Who determines it | What to look for |
|---|---|---|
| Network fee | Blockchain rules and current demand | Native fee asset, fee rate, gas estimate and priority settings. |
| Exchange withdrawal fee | Centralized platform | May be fixed or variable and need not equal the actual network fee. |
| Bridge fee | Bridge or interoperability provider | Service charge plus source- and destination-chain costs. |
| Protocol fee | Smart contract or application | Swap, lending, marketplace or liquidity-provider charges. |
| Spread / price impact | Market liquidity and execution | Difference between quoted and effective exchange value; not technically a gas fee. |
Estimating a transaction safely
Confirm the exact network and the native asset required for its fees.
Review the wallet's estimated network fee immediately before signing.
Inspect whether the action requires one transaction or several approvals and contract calls.
Check whether a withdrawal, bridge or application adds its own fee or spread.
Leave a small native-asset balance for a later transfer or emergency exit.
For a new route, use a small test transaction when practical.
Avoid manually changing advanced gas settings unless you understand the consequences.
Practical ways to manage fees
Use the appropriate network for the use case, but consider its security, liquidity and operational risks — not fees alone.
Transact during less congested periods when timing is flexible.
Batch organizational activity when the network and controls safely permit it.
Consolidate Bitcoin inputs during lower-fee periods, with privacy and control implications considered.
Use a reputable Layer 2 for compatible activity after evaluating bridge and withdrawal requirements.
Set realistic priority rather than automatically selecting the fastest option.
Compare total route cost, including conversion, bridging, withdrawal and application fees.
Common fee mistakes
Sending all of the native asset and leaving nothing for the next transaction.
Holding a token but no native asset to pay its transfer fee.
Assuming a low-value transfer must have a low network fee.
Confusing an exchange's withdrawal charge with the blockchain's actual fee.
Choosing the wrong network because it appears cheaper.
Approving repeated failed transactions without identifying the cause.
Treating a wallet's dollar estimate as a guaranteed final cost.
Ignoring Layer 1 data costs or the cost to bridge back later.
Fees in business and accounting
Record the transaction hash, network, fee asset, fee quantity and business purpose.
Separate network fees from exchange, bridge, protocol and advisory charges.
Translate fees into the reporting currency using a documented valuation source and time.
Define how fees are treated for accounting and tax purposes under the applicable framework.
Reconcile failed transactions and fees even when no asset transfer was completed.
Use approval limits and monitoring for unusually high fees or repeated failures.
Accounting Perspective
Key takeaways
Fees price limited network resources, compensate participants and discourage spam.
The fee is usually driven by transaction size or complexity and demand — not the amount transferred.
Every network has its own native fee asset and calculation method.
On Ethereum, gas used and gas price are different components.
A failed on-chain transaction may still consume resources and incur a fee.
Total cost can include network, platform, bridge, protocol and market-execution components.
Quick knowledge check
Why can a $20 token transfer cost the same network fee as a $20,000 transfer?
What is the difference between gas used and gas price?
Why might a stablecoin holder be unable to move the stablecoin?
Why can a failed transaction still incur a fee?
Which costs should be considered when bridging to a Layer 2?
Glossary
- Base fee
- A protocol-determined minimum price component for Ethereum gas that adjusts with network demand.
- Gas
- A unit measuring computational work on Ethereum and compatible networks.
- Gas limit
- The maximum gas a transaction is permitted to consume.
- Gwei
- A denomination equal to one-billionth of an ETH, commonly used to quote gas prices.
- Priority fee
- An additional fee intended to improve a transaction's processing priority.
- sat/vB
- Satoshis per virtual byte, a common Bitcoin transaction fee-rate measure.
- Transaction fee
- The amount paid for a network to process and include a transaction.
Sources and further reading
Editorial note: This lesson was independently written for Fichtner Digital and synthesizes the cited sources in original language. It does not reproduce substantial passages from them. Facts and links last reviewed 22 July 2026.
Educational purposes only. Not financial advice. Network conditions, fee rules and wallet estimates can change. Blockchain transactions may be irreversible, and an incorrect fee or network choice can cause delay or loss. This material does not constitute financial, legal, accounting, tax or investment advice.
