Ethereum Virtual Machine (EVM)
The Ethereum Virtual Machine (EVM) is the runtime environment built into the Ethereum blockchain that executes smart contracts - self-executing pieces of code deployed on the network. Every node participating in Ethereum runs the EVM to process transactions and independently verify contract results, and the EVM is deterministic, meaning the exact same input always produces the exact same output on every node, which is what lets thousands of independent computers agree on a single shared state.
For example, when a decentralized exchange's smart contract executes a token swap, the EVM runs that contract's underlying bytecode identically across every node on the network, so the trade's outcome can be independently verified and permanently recorded rather than trusted to a single central server. The EVM's design has become a de facto industry standard well beyond Ethereum itself: many other blockchains, including BNB Chain, Polygon, Avalanche's C-Chain, and various Ethereum "layer 2" networks like Arbitrum, are built to be "EVM-compatible," meaning they can run the same smart contracts and developer tools originally built for Ethereum. For crypto investors, EVM compatibility is a useful signal of a network's developer ecosystem and interoperability, since it means applications and liquidity can move between EVM-compatible chains more easily than to an entirely incompatible architecture.
The gas meter is the EVM's answer to a problem that has no general solution. A contract can contain a loop, and no program can reliably determine in advance whether an arbitrary loop will ever finish - so a network that executes whatever it is given could be stopped by a single contract that never terminates. The design charges for each individual operation instead, and the sender specifies a limit up front. When the limit is reached the execution halts and every state change it made is reversed, but the fee is kept. That is why a failed transaction still costs money: the network performed the work, and the payment is for the work rather than for the outcome.
Two further points clear up common confusions. Contracts are written in Solidity or, less often, Vyper, but neither reaches the chain: both compile to EVM bytecode, and it is the bytecode that is stored, executed and - unless the author publishes and verifies the source - all anyone can inspect. And compatibility is not connection. A chain that runs the same bytecode is a separate network with its own validators, its own fees and its own version of every token; moving value between it and Ethereum requires a bridge, which is a contract holding the original asset while an equivalent is issued elsewhere. Bridges have been the single largest source of losses in the sector, which is a direct consequence of how often the word compatible is read as though it meant connected.