Ethereum Virtual Machine (EVM)

A computation engine that acts as a decentralized computer, managing the state and execution of transactions on the Ethereum network.

The EVM has become a standard in the blockchain industry, with many other networks (Polygon, Avalanche, BNB Chain) adopting EVM-compatibility to leverage Ethereum's developer tools.

        graph LR
  Center["Ethereum Virtual Machine (EVM)"]:::main
  Pre_cryptography["cryptography"]:::pre --> Center
  click Pre_cryptography "/terms/cryptography"
  Rel_smart_contracts["smart-contracts"]:::related -.-> Center
  click Rel_smart_contracts "/terms/smart-contracts"
  Rel_solidity["solidity"]:::related -.-> Center
  click Rel_solidity "/terms/solidity"
  Rel_zkevm_zero_knowledge_ethereum_virtual_machine["zkevm-zero-knowledge-ethereum-virtual-machine"]:::related -.-> Center
  click Rel_zkevm_zero_knowledge_ethereum_virtual_machine "/terms/zkevm-zero-knowledge-ethereum-virtual-machine"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 Explain Like I'm 5

The EVM is like the engine inside the [Ethereum](/en/terms/ethereum) computer. It reads special instructions (bytecode) from [smart contracts](/en/terms/smart-contracts) and performs the actions, like a chef following a recipe step-by-step. Every step costs a little [bit](/en/terms/bit) of 'gas' money to make sure the cooking doesn't take forever.

🤓 Expert Deep Dive

The Ethereum Virtual Machine (EVM) is a deterministic, stack-based execution environment designed for smart contracts. Its core function is to process transaction calls and state transitions across the Ethereum network. The EVM specification defines a set of opcodes, a 256-bit word size, and a gas scheduling mechanism to meter computational effort. Determinism is paramount; every node executing the same bytecode with the same initial state must arrive at the identical final state. This is achieved through a strict adherence to the EVM's state transition function. The gas mechanism, while preventing resource abuse, introduces economic constraints that significantly impact dApp design and user experience, particularly concerning transaction costs and throughput limitations. Architectural trade-offs include the inherent limitations of a stack-based architecture for complex computations and the challenges in optimizing gas efficiency for smart contract execution. The EVM's design choices have influenced subsequent blockchain virtual machine designs, but also highlight the ongoing quest for higher performance and lower transaction fees, leading to innovations like Layer 2 solutions and alternative execution environments.

🔗 Related Terms

Prerequisites:

📚 Sources