Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk3 min

Ethereum Virtual Machine (EVM): What It Is and How It Works

The Ethereum Virtual Machine executes smart-contract bytecode under Ethereum’s protocol rules. Here’s how compilation, gas, memory, and storage fit together.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The Ethereum Virtual Machine (EVM) is Ethereum’s execution environment for smart-contract bytecode. It processes instructions within transaction and blockchain context, meters computation with gas, and determines resulting state changes under Ethereum’s protocol rules. It is not Solidity itself, nor a standalone app: it is part of how Ethereum nodes execute transactions and agree on the resulting state.

What the EVM does

Ethereum’s protocol defines how a transaction changes the blockchain’s state. When a transaction creates a contract or calls one, the EVM executes the relevant code as part of that state-transition process. Ethereum nodes applying the same protocol rules to the same inputs should reach the same execution result.

As an Amazon Associate I earn from qualifying purchases.

Ethereum.org describes the EVM as a “decentralized virtual environment that executes code consistently and securely across all Ethereum nodes.” In practical terms, it supplies a common execution model: contract instructions are processed in a defined order, using the transaction and blockchain context available to them.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How smart-contract code reaches the EVM

  1. Write contract source code. Developers commonly use Solidity, a programming language designed for writing smart contracts.
  2. Compile it. A compiler translates source code into EVM bytecode—the instructions the EVM can execute. Solidity source code does not run directly on-chain.
  3. Create or call the contract. A contract-creation transaction installs code. A later message call can execute that code.
  4. Execute instructions and determine state changes. The EVM processes the bytecode within the call’s context. Depending on the instructions, execution can calculate values, inspect transaction or block information, call another contract, and read or change data.

Solidity’s documentation calls the EVM the runtime environment for Ethereum smart contracts. The distinction matters: Solidity is one way to write contract programs; the EVM is the execution environment that processes compiled bytecode.

How the EVM handles computation and data

Gas bounds computation

Each operation consumes gas, which accounts for computation. If an execution call frame runs out of gas, it halts exceptionally and changes made in that frame are reverted. Gas is a measure of execution work, not a fixed transaction price. The fee paid depends on Ethereum’s fee rules and network conditions.

Stack and memory are temporary working areas

The EVM is a stack machine: instructions use a stack to hold and manipulate values while code runs. Ethereum.org documents a maximum stack depth of 1,024 items, with each item a 256-bit word. The EVM also has memory for temporary data; memory does not persist between transactions.

Storage persists as contract state

Contract storage is part of Ethereum’s persistent state, unlike the temporary stack and memory used during execution. EVM transient storage, accessed with the TSTORE and TLOAD instructions, has a different lifetime: it can be used across internal calls during a transaction and is cleared when that transaction ends.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What the EVM is—and is not

  • It is the execution environment for EVM bytecode and a component of Ethereum’s state-transition process.
  • It is not the entire Ethereum network or a consumer application that users install and operate on its own.
  • It is not a programming language. Solidity and other languages that target the EVM are used to write source code that is compiled into bytecode.
  • It does not make every EVM-compatible chain identical. Compatibility concerns execution behavior, but chains can differ in supported protocol rules, transaction and fee systems, security assumptions, and governance.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Where to check exact EVM behavior

The EVM’s rules evolve as Ethereum upgrades its protocol, so details such as opcode behavior and gas costs can depend on the applicable fork. Ethereum’s Yellow Paper is a formal reference for the machine and its terminology. For current or fork-specific execution details, consult the maintained Ethereum Execution Layer Specification alongside the official Ethereum.org EVM explanation and Solidity introduction to smart contracts.

For deeper protocol terminology, see the Ethereum Yellow Paper. For a broader developer learning path, Ethereum.org maintains Ethereum development documentation.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.