Home / Wiki / E / Ethereum Virtual Machine (EVM)

Ethereum Virtual Machine (EVM)

Cryptocurrency and Digital AssetsUpdated 05 Nov 2026

The Ethereum Virtual Machine (EVM) is the software environment, defined in Ethereum's protocol specification, that executes smart contracts and applies transactions to the Ethereum blockchain. Every full node runs its own copy, feeds it the same transactions in the same order, and must reach exactly the same result. That determinism is what lets thousands of independent computers agree on account balances and contract data without trusting one another. The EVM counts computation in gas, priced in wei and gwei.

The EVM was first specified in Gavin Wood's Ethereum Yellow Paper in 2014 and went live with the mainnet launch in July 2015. It is distinct from ether, the asset used to pay for computation, and from the consensus layer that orders blocks. Many other networks have since adopted it, forming the family of Ethereum-compatible blockchains; how it compares with other designs is covered in EVM vs Non-EVM and Blockchain Layer Models.

01

The EVM in plain terms

Picture a pocket calculator that thousands of people own, all built to the same design. A transaction is a list of button presses. Everyone types the same presses into their own calculator, and because the calculators are identical, everyone gets the same answer. If one person's answer differs, the others know that person made a mistake or tried to cheat.

Every button press also costs a small amount, a bit like a taxi meter that ticks with each step. The sender sets a maximum fare in advance. If the job runs past that limit, the calculator stops, undoes the work, and keeps the fare already spent. This stops anyone from jamming the shared calculators with endless tasks.

02

How the EVM works

Developers usually write contracts in a high-level language such as Solidity or Vyper and compile them into bytecode, a sequence of low-level instructions called opcodes. When a contract is deployed, its bytecode is stored at a contract address. When someone calls it, the EVM loads that code and steps through it.

The machine works with a few data areas:

  • The stack. A last-in, first-out list of 256-bit words with a maximum depth of 1,024 items, where almost all arithmetic happens.
  • Memory. A temporary byte array that exists only for the duration of a call.
  • Storage. A permanent key-value store attached to each contract, which is the expensive part because every node keeps it indefinitely.
  • Calldata and logs. Calldata is the read-only input sent with a call; logs are event records that applications and explorers read but contracts cannot.

Each opcode has a fixed or formula-based cost in gas. The sender's maximum cost is the gas limit multiplied by the price per unit:

Maximum fee=Gas limit×<a href="/wiki/g/gas-price">Gas price</a>\text{Maximum fee} = \text{Gas limit} \times \text{<a href="/wiki/g/gas-price">Gas price</a>}

For example, a call with a gas limit of 100,000 units at a price of 20 gwei (20 billionths of an ether) can cost at most 2,000,000 gwei, or 0.002 ether. If execution uses only 60,000 units, only 0.0012 ether is charged. The gas fee page explains how the base fee and tip are set. Running out of gas reverts every state change made in that call.

03

Upgrades and versions

The EVM is not frozen. It changes through coordinated network upgrades, or hard forks, that every client implements at the same block. Recent examples include the 2023 Shanghai upgrade, which added a PUSH0 opcode, and the March 2024 Cancun-Deneb upgrade, which added transient storage and a memory-copy instruction alongside cheaper data space for rollups. Since the 2022 Merge, blocks are produced by proof of stake validators, but the execution rules of the EVM carried over unchanged.

A major line of work is the zkEVM: a version of the EVM whose execution can be proven with a zero-knowledge proof, so that a ZK-rollup can show Ethereum that a batch of transactions was processed correctly. Account abstraction under ERC4337 is another extension, letting wallets themselves be programmable contracts.

04

Uses in finance and payments

The EVM hosts most DeFi activity, from lending to trading, and most token issuance under the ERC-20 standard, including major dollar stablecoins. For payments and treasury teams, it is the environment in which programmable money experiments are usually built: escrow that releases on a condition, scheduled payouts, or settlement that only completes if both legs of a trade arrive. Its shared tooling also makes audits and monitoring easier than on less common platforms.

05

Limitations and criticism

The EVM processes transactions one after another, which limits throughput compared with designs that execute in parallel, such as Solana's runtime. Its 256-bit word size suits cryptography but makes ordinary arithmetic costly. Storage is expensive by design, which pushes data off-chain. Smart-contract bugs, from re-entrancy to unchecked arithmetic in older code, have caused large losses, and code deployed to the EVM is generally immutable unless built with an upgrade mechanism. Most of Ethereum's scaling now happens on layer-2 networks that run their own EVM copies, which spreads users and liquidity across many chains.

Last updated 05 Nov 2026