← Academy library

Crypto / Evergreen

A reverted transaction can still consume gas

When Ethereum execution reverts, the affected state changes are undone according to execution rules, but the computation already performed can still incur a gas cost.

THE IDEA TO KEEP

Inclusion, execution success, and fee payment are different dimensions of a transaction's outcome.

The distinction that matters

When Ethereum execution reverts, the affected state changes are undone according to execution rules, but the computation already performed can still incur a gas cost. Ethereum's account model tracks balances and associated state rather than Bitcoin-style unspent outputs. A transaction changes that state according to execution rules, and the sender's authorization, transaction sequence, and gas payment all matter. An externally owned account is controlled through a private key, while contract-based behavior is defined by deployed code and its available authorization paths.

How the mechanism works

The transaction can therefore be included in a block with a failed execution status while producing no intended token transfer or contract-state change. A signed transaction identifies a network context and specifies an intended operation, such as transferring the native asset or calling a contract. The operation can succeed, revert, or wait for inclusion, with different consequences for state and fees. Token balances are generally maintained by token contracts rather than by the account's native-asset balance field.

A worked situation

Consider this hypothetical situation: A hypothetical swap reaches a contract after the market has moved beyond its allowed execution bounds, causing the contract to revert. The swap does not complete, yet the sender pays for the execution resources used in reaching and handling that failure.

Where interpretation can fail

An explorer's confirmed status can be misread as success if inclusion and execution outcome are not examined separately. Read the receipt's status and relevant resulting balances or logs, rather than interpreting block inclusion alone as completion of the intended action. Inclusion, execution success, and fee payment are different dimensions of a transaction's outcome.

The wider technical implication

Reversion can roll back state changes and logs in the reverted execution scope, while the outer transaction's inclusion and fee accounting remain part of the chain. A user can therefore see a failed receipt with a reduced native-asset balance. An application may also catch a failed internal call and continue, so not every subcall failure makes the top-level receipt fail. These layers matter during troubleshooting. The intended token movement, outer execution status, internal call results, and gas charge should be checked separately instead of interpreting one success or failure label as a complete account of every effect.

A global perspective

Account formats can be shared across networks while legal rights and provider support differ. Record network and contract identity alongside an address.

Sources & further reading

Ethereum.org — Accounts ↗Ethereum.org — Transactions ↗

Sources checked Oct 27, 2026. Educational examples. Historical observations are attributed to their sources. No affiliation with cited organizations.

Make the idea stick.

Mark complete when you are ready. Reaching the end alone does not mark a lesson complete.

What assumption in this guide would change the result in a different situation? Revisit the example and explain that change in your own words.

Explore crypto →

KEEP THE CONNECTION

Your next useful question.

Your saved guides →