Crypto Gas Fees Explained: Costs, Failed Transactions and Pending Transfers
Learn how crypto gas fees are calculated, why failed transactions can still cost money, and how to check pending transfers without paying twice.
Key Notes
- Gas measures computational work while the gas price determines its cost.
- An included failed transaction can consume gas even when the asset transfer reverts.
- Check the network, nonce and status before replacing or repeating a pending payment.
You have enough USDC to make a payment, but your wallet refuses to send it. Or a swap fails, yet a small amount of ETH still disappears. Both situations become easier to understand once you separate the asset you are moving from the network resources needed to move it.
Gas is the accounting system Ethereum uses to charge for computation. The amount of work and the price of that work are different numbers. This guide explains how to read them, estimate a transaction’s cost and investigate a pending transfer without repeatedly submitting the same payment.
The examples focus on Ethereum and compatible networks. Other blockchains have different fee models, and the figures below are hypothetical calculations rather than current fee quotes.
What gas measures
Sending tokens, swapping assets and depositing collateral all ask a network to process instructions. Gas assigns a cost to that work. A transaction involving several contracts generally needs more computation than a simple native-coin transfer. The dollar value you send is not, by itself, what determines the computation required.
Think of a transaction as a delivery: the amount of work resembles the distance traveled, while the gas price resembles the price per mile. A costly asset does not necessarily require a complicated delivery. Conversely, moving a small amount through several contracts can require substantial work.
Ethereum documentation defines gas as a unit of computational effort. On Ethereum, fees are paid in ETH. Gas prices are often displayed in gwei, with one gwei equal to one-billionth of an ETH. A wallet may translate the estimated charge into dollars, but that conversion also depends on ETH’s market price.
Read the fee fields before confirming
Several fields can appear on an Ethereum transaction review screen. They answer different questions, so comparing two wallets requires checking which number each is showing.
- Gas limit: the maximum gas units the transaction is allowed to consume.
- Gas used: the units actually consumed when the transaction executes.
- Base fee: the network’s per-unit fee, which changes with demand and is burned.
- Priority fee: the additional per-unit amount paid to the validator for including the transaction.
- Maximum fee per gas: the upper per-unit price the sender permits.
Under EIP-1559, the effective per-unit price is the base fee plus the permitted priority fee, subject to the maximum fee cap. A high maximum is permission to spend up to that price; it is not automatically the price charged.
A wallet’s estimated fee and maximum possible fee can therefore differ. The maximum also does not guarantee prompt inclusion: demand may change before execution. Raising a gas limit alone does not make a transaction more attractive to validators.
Calculate a fee with a worked example
Imagine a contract interaction with a gas limit of 120,000 units and a maximum fee of 30 gwei per unit. It eventually consumes 80,000 units at an effective price of 12 gwei. Assume ETH is worth $2,500 solely for this example.
| Calculation | ETH amount | Illustrative dollar value |
|---|---|---|
| Maximum execution budget: 120,000 × 30 gwei | 0.0036 ETH | $9.00 |
| Actual execution fee: 80,000 × 12 gwei | 0.00096 ETH | $2.40 |
The actual execution fee is $2.40, not $9. Unused gas allowance and the difference between the permitted and effective gas price are not an additional charge. The wallet must nevertheless have enough available funds to satisfy the transaction’s upfront requirements.
This calculation covers Ethereum execution fees. It does not include an exchange withdrawal charge, a trading fee, bridge costs or any additional fee components a particular network applies. A swap’s token amount is also separate from the ETH spent on execution.
Why a failed transaction can cost money
A transaction can execute instructions and then revert because a contract condition is not met. For example, a swap may reject an outdated minimum-output requirement. Reverting the asset changes does not erase the computation already performed.
Failed transactions that are included in a block can therefore still pay gas. Running out of gas during execution can consume the supplied gas limit while reverting the operation. By contrast, a transaction rejected before inclusion does not incur an onchain execution fee. A wallet error message alone does not tell you which situation occurred.
Open the transaction on the correct network’s block explorer. Look for its status, fee and any available failure information. If the wallet never produced a transaction hash, first establish whether anything was broadcast. Do not repeatedly approve identical attempts without understanding why the previous one failed.
For a swap, check the quote and token permissions. For a lending transaction, check the protocol’s collateral or repayment conditions. Increasing the fee cannot repair a wrong contract address, an expired quote or an insufficient token balance.
A dropped transaction is another case: it has not necessarily executed, and its original hash may never receive a receipt. If it was replaced, inspect the replacement hash instead. Only one transaction with a given nonce can be included from the same account on the same canonical chain. The fee belongs to the included transaction, so a wallet showing both attempts does not by itself mean that two fees were charged.
Why a token balance may not cover gas
Having $500 in USDC does not necessarily give an ordinary Ethereum wallet any ETH to pay transaction fees. ETH and ERC-20 token balances are separate. Wrapped ETH is also a token; holding WETH is not the same as holding native ETH for a standard transaction’s gas payment.
Check the network as well as the ticker. ETH on one chain is not automatically available to pay fees on another. The same address can show different balances across several networks. Our Ethereum guide explains the native asset and token distinction.
Some applications sponsor fees or arrange payment through other assets. Their interface should explain how that works and what is charged. Do not assume a gasless promotion applies to every transaction, or that another application provides the same arrangement.
Before moving your entire native-coin balance, consider the next operation: withdrawing collateral, revoking permission or transferring the remaining tokens may need another transaction.
Investigate a pending transaction
First confirm the transaction hash and network. An exchange withdrawal marked pending inside an exchange is not necessarily a transaction waiting in the blockchain’s transaction pool. The platform may not have broadcast it yet.
For a broadcast Ethereum transaction, inspect its nonce and fee settings. A nonce orders transactions from the same ordinary account. An earlier pending transaction can prevent later ones from being processed, even if those later transactions offer more competitive fees.
MetaMask guidance describes speeding up or attempting to cancel a pending transaction through a replacement using the same nonce. A cancellation generally replaces the original action with another transaction; it does not remove a confirmed transaction from the chain.
Use your wallet’s documented controls and inspect the replacement carefully. Replacement requirements vary across networks and services. A higher fee can improve the replacement’s chances, but it is not a guarantee that it wins before the original transaction is included. Recheck the explorer before submitting a new payment with a new nonce, which could result in paying twice.
Compare networks and total costs
A cheaper execution quote is only part of the decision to use another network. Your recipient or application must support that chain and the particular token contract. Moving assets to a different network can also introduce bridge costs, withdrawal delays and additional security assumptions.
Layer 2 fees may include more than local execution. Optimism documentation, for example, separates execution, Ethereum data costs and an operator fee. Other networks and upgrades can use different components. Do not apply an Ethereum mainnet calculation blindly to every rollup.
Our Layer 2 guide covers those tradeoffs. For a small transaction, moving funds between chains simply to save one fee can cost more than the saving.
Also distinguish the network fee from an exchange’s withdrawal charge and a swap’s price impact or trading fee. An attractive gas quote says nothing about whether you are receiving a good exchange rate.
Build a repeatable fee check
Before signing, identify the network, action, recipient or contract, native fee asset and maximum cost. For a sequence of transactions, budget for the sequence: an approval and a swap may each require gas. Our token approvals guide explains why granting permission is a separate action.
For a nonurgent operation, compare a fresh estimate later rather than assuming fees always fall at a particular hour. Estimates describe current conditions; they are not promises about the next block.
After execution, save the transaction hash and compare the actual fee with the estimate. If something goes wrong, establish whether it is pending, failed or confirmed before choosing a remedy. A stranger asking for a separate unlocking payment or your recovery phrase is not a legitimate way to resolve a network fee problem.
That routine turns a confusing wallet warning into a specific question: is the problem the balance, the fee cap, the transaction order or the requested action? Answering it first is usually more useful than immediately raising every number on the screen.
Disclaimer: CoinScreamer is an independent media brand owned and operated by NuvexMedia LLC, publishing news, research, and market insights on digital assets and related technologies. NuvexMedia LLC invests in and collaborates with companies across the digital asset, blockchain, and technology sectors. These relationships do not influence CoinScreamer’s editorial coverage, and the publication maintains full editorial independence to provide accurate, timely, and objective information. © 2025 NuvexMedia LLC. All rights reserved. This content is for informational purposes only and should not be considered legal, tax, investment, financial, or other professional advice.