TROUBLESHOOTING · ETHEREUM

Failed Ethereum transaction: why did I pay gas?

Go to the interactive exercise ↓

After this lesson: Understand what failed and why some work may still be charged.

Choose your explanation

01 / BEGINNER

First, what is it?

On Ethereum, a transaction can be included in a block but fail during execution. The call’s intended changes are then rolled back while gas has been consumed. This differs from a request rejected before being sent to the network.

Words to know

Execution failure
Program rules or resource limits prevent completion.
Revert
An interruption rolling back execution state changes.
Consumed fee
The cost of charged work, even if the objective was not achieved.

The idea to understand

Check the receipt on the correct network. Distinguish local rejection, pending status and included failure before investigating the cause. An interface screenshot is not always enough.

SEE IT IN PRACTICE

Now, a concrete example

A fictional swap requires at least 10 units received. At execution it would yield 9.8: the contract may revert to enforce the limit. The amount protection works, but executed work can still cost gas.

YOUR TURN

Does a charged failure prove the recipient received the sent amount?

Form an answer before opening the explanation. You can also discuss it aloud.

Compare with the explanation

No. Fees and the intended effect are separate. Check the receipt and actual changes; a fee debit alone does not establish receipt.

READ THE STATUS

What does the explorer show?

Choose a status to understand what it means, then read the fictional example. This exercise does not look up a transaction or connect to your wallet.

The transaction was included, but execution failed. Read its receipt: consumed gas can still be charged. Identify the error before trying again.

FICTIONAL EXAMPLE · ETHEREUM L1
Status
Reverted
Gas used
53 000
Effective gas price
12 gwei
Network cost
0.000636 ETH

53,000 × 12 gwei = 636,000 gwei = 0.000636 ETH. One gwei equals 0.000000001 ETH. The gas actually consumed is charged even if the intended action is reverted; rejecting a request before broadcast is a different case.

3 explanation levels

A useful companion: How to read an Etherscan transaction: a simple guide

THE SHORT ANSWER

An Ethereum transaction included in a block can fail after consuming computation. Its action is reverted, but consumed gas is still charged. Rejecting a request in your wallet before broadcast is different: that attempt never ran on-chain.

The questions that remain

Are transferred tokens lost in a revert?

In an ordinary EVM transaction that reverts, execution changes are undone, but fees remain payable. An earlier approval or another transaction is separate. Check the receipt and balances rather than relying only on the interface message.

Does clicking “Reject” cost gas?

Rejecting a request before broadcast does not execute that request on the network. Check whether another step had already been signed and sent, though.

Sources and further reading

Page updated on
Documentation checked on · WhyTheBlockchain · Editorial approach