What a Failed Transaction Costs Across Chains
Failure is charged everywhere and the amounts differ by orders of magnitude. Where you experiment matters more than how careful you are.
Every network charges for work performed, including work that produced nothing. The amounts differ enough to change where it makes sense to try things.
The rule, which is universal
A transaction that reverts is still included in a block. The computation was performed and the fee covers it.
You get nothing and you pay for the attempt. This is not a penalty; it is the same pricing that applies to a successful transaction, applied to the portion executed.
The variation in amounts
Ethereum mainnet. A failed swap during congestion can cost the equivalent of a meal. Failed mints during competitive events have cost users substantially more in aggregate than the items being minted were worth.
Rollups. A fraction of a cent. Failure is economically irrelevant.
Alternative layer 1 chains. Low, with occasional spikes.
The ratio between mainnet and rollup failure costs is the same two orders of magnitude that applies to successful transactions.
Why this changes behaviour
On a network where failure costs nothing, experimentation is free. Try the transaction, see what happens, adjust.
On mainnet, each failed attempt is a real cost, which means users tighten slippage tolerances less, check less, and retry less, all of which produce worse outcomes.
The cost of failure therefore affects success rates indirectly, by changing how carefully people can afford to proceed.
The common causes, ranked by cost
Out of gas. Usually caused by manually reducing the limit. Consumes the entire limit, which makes this the most expensive failure.
Slippage exceeded. Consumes gas up to the revert point, which for a swap is most of the way through.
Insufficient allowance. Fails early, so consumes less.
Nonce conflict. Rejected before inclusion in most cases, costing nothing.
The practical rules
Never lower the gas limit manually. No saving, real failure risk.
Experiment on a rollup. Learn how a protocol works where failure costs nothing, then use the mainnet version if you must.
Do not retry repeatedly during volatility. Two failures on a swap means conditions are wrong. A third and fourth attempt converts a bad trade into an expensive one.
Check the confirmation screen. Gas limit, slippage, and what the transaction actually calls are all displayed before you sign.
The measurement worth doing
Record every failed transaction with its cost and cause for a few months.
Most people find the total surprising, and most find that the causes cluster in one or two categories that a habit change would eliminate.
For withdrawals from a venue, failures of this kind do not arise, because the platform handles the transaction and its fee. Venues that publish the network fee separately, such as venues that quote the network fee separately, let you see what that fee is without carrying the failure risk yourself.
Fees move with network demand. Any figure here reflects the date shown above and should be re-checked before you act on it. Where a measurement was taken by hand, the article says so.
Related reports
- How to Read a Fee Estimate Before You Confirmtransaction troubleshooting
- The Cost of Dusttransaction troubleshooting
- Failed Transactions: Why You Still Pay for Themtransaction troubleshooting