Ethereum Virtual Machine (EVM)
Last Updated: November 16, 2026
The Ethereum Virtual Machine (EVM) is the software that runs smart contract code and processes transactions on Ethereum. It runs the same code in the same way on every node, so they all agree on the result. Developers write contracts in languages such as Solidity. They compile them to EVM bytecode and pay gas for each step the EVM runs.
Many other blockchains, including leading layer 2 networks, run the EVM too. So the same contracts and wallets work across them.
Key Takeaways
- ethereum.org describes the EVM as “a decentralized virtual environment that executes code consistently and securely across all Ethereum nodes”.
- It is a stack machine with a depth of 1024 items. Each item is a 256-bit word.
- Every instruction (opcode) has a gas cost. This limits computing and puts a price on it.
- A deployed contract can be at most 24KB, according to ethereum.org.
- EVM compatible networks such as Base and Arbitrum One secured about $13.15 billion and $8.56 billion on November 16, 2026. The figures come from ETHBEAT (formerly L2BEAT).
How the EVM Works
Ethereum is often called a ledger, but ethereum.org puts it differently: “Instead of a distributed ledger, Ethereum is a distributed state machine.” The state is the full record of every account balance. It also holds every contract’s code and storage.
The EVM sets the rules for moving from one state to the next. Take the current state and a new block of valid transactions. The EVM computes the new state, written on ethereum.org as Y(S, T) = S’.
Each step works like this:
- A developer writes a smart contract in a high level language such as Solidity or Vyper.
- A compiler turns it into bytecode, a list of low level instructions called opcodes.
- A transaction deploys the bytecode to a new contract address.
- Each later call to that address makes every node run the bytecode in its own copy of the EVM. All nodes reach the same result.
Opcodes include basic stack operations such as ADD, SUB, AND and XOR. Others are blockchain specific, such as ADDRESS, BALANCE and BLOCKHASH. Every opcode has a gas cost, so a contract cannot loop forever. It stops when the gas runs out.
Where Data Lives in the EVM
| Location | What it holds | Lasts |
|---|---|---|
| Stack | Up to 1024 values of 256 bits each, used for calculations | One call |
| Memory | Temporary byte array for working data | One call |
| Transient storage | Key value data read with TLOAD and written with TSTORE | One transaction |
| Storage | Each contract’s permanent key value data, part of Ethereum’s global state | Until changed |
The 256 bit word size was chosen to fit Ethereum’s cryptography, according to ethereum.org. Examples are Keccak-256 hashes and secp256k1 signatures. Writing to permanent storage is among the most costly steps. That is why developers try to keep it to a minimum.
A transaction’s input, called calldata, is read only data passed into a contract call. Under EIP-2028, each nonzero byte costs 16 gas and each zero byte 4 gas. Pectra added EIP-7623. It sets a higher floor of 10 gas per zero byte and 40 per nonzero byte for data heavy transactions. Rollups now post most of their data in cheaper blobs, added in March 2024.
Who Runs the EVM
Every Ethereum execution client includes an EVM implementation. All of them must follow the formal specification in the Ethereum Yellow Paper. ethereum.org lists standalone versions, including Py-EVM (Python), evmone (C++), @ethereumjs/evm (JavaScript) and revm (Rust). Several independent versions lower the risk that one bug halts the network.
The EVM is not frozen. It changes through network upgrades. The Pectra upgrade went live on May 7, 2025. It included EIP-7702, which lets ordinary wallet addresses take on smart contract features, according to the Ethereum Foundation. The Fusaka upgrade went live on December 3, 2025. It added a new opcode (CLZ, count leading zeros) and a precompile for the secp256r1 curve, the Ethereum Foundation blog says.
EVM Compatible Chains in 2026
The EVM is a published standard, so other networks run it. That way developers can reuse Ethereum code, tools and wallets. Two groups stand out:
- Ethereum layer 2 networks. On November 16, 2026, ETHBEAT (formerly L2BEAT) listed Base at about $13.15 billion in total value secured. Arbitrum One had about $8.56 billion and OP Mainnet about $1.31 billion. All three run the EVM.
- Separate layer 1 chains. BNB Chain, Avalanche’s C-Chain and Polygon PoS also run the EVM. DefiLlama showed DeFi deposits of about $4.51 billion on BNB Chain at 19:47 UTC on November 16, 2026. Polygon had $0.61 billion and Avalanche $0.55 billion. Ethereum itself had about $37.48 billion.
Not every major blockchain uses the EVM. Bitcoin uses a much simpler scripting system, and Solana runs its own virtual machine.
The EVM still leads in smart contract money. DefiLlama breaks DeFi value down by contract language. On November 16, 2026, Solidity, the main EVM language, had about 87% of tagged DeFi value. Rust had about 7.5%. Our virtual machine entry compares the EVM with Solana’s SVM, Move and Wasm.
Common Misconceptions and Risks
“EVM compatible means as secure as Ethereum.” No. A chain can run the same code but have its own validators, its own bridge and different security. Layer 2 networks get Ethereum’s security to different degrees. ETHBEAT (formerly L2BEAT) tracks this project by project.
“Code on the EVM cannot fail.” The EVM runs code exactly as written, bugs included. If a contract has a flaw, every node will run the flawed logic. Audits lower this risk but do not remove it.
“The EVM is a physical computer.” It is software. Each node runs its own copy, and the network agrees on results because every copy follows the same specification.
Related Terms
Frequently Asked Questions
What is the Ethereum Virtual Machine in simple terms?
It is the shared computer that runs Ethereum’s smart contracts. It is software that every Ethereum node runs. When someone uses an app or sends a transaction, all nodes run the same code and agree on the result. It charges gas for each step. This stops programs from running forever and pays for the network’s work.
What does EVM compatible mean?
An EVM compatible blockchain can run the same bytecode as Ethereum. Developers can deploy their existing smart contracts there with few or no changes. Users can often keep the same wallet and address format. Base, Arbitrum One, OP Mainnet, BNB Chain, Avalanche’s C-Chain and Polygon are examples. This does not mean these networks share Ethereum’s security.
What programming languages work with the EVM?
The most widely used language is Solidity. Vyper, a language with Python style syntax, is another option, according to ethereum.org. Both compile into EVM bytecode, the steps the EVM actually runs. Developers can also write very low level code by hand, but that is rare. Whatever the language, the deployed contract can be no larger than 24KB under Ethereum’s rules.
Is Solana EVM compatible?
Not natively. Solana uses its own virtual machine, and its programs are usually written in Rust. So Ethereum smart contracts cannot be deployed there unchanged. Some projects build EVM setups on top of Solana or link the two through bridges. Those are separate systems with their own risks, not part of the core Solana protocol.
Why does the EVM use gas?
Gas puts a price on every computing step. Without it, one faulty or malicious contract could loop forever and stall every node. Each opcode has a gas cost. The sender sets a maximum, and execution stops when that amount is used up. The fee also pays validators. Through the burned base fee, it removes some ETH from circulation.
Data sources: ethereum.org EVM documentation (page updated July 26, 2026), ethereum.org smart contract and gas documentation, Ethereum Foundation blog (Pectra and Fusaka mainnet announcements), ETHBEAT scaling summary (read November 16, 2026), DefiLlama chain data (19:47 UTC, November 16, 2026) and DefiLlama TVL by language (read November 16, 2026).