# EVM Content type: Glossary Term Summary: The EVM is like a giant, shared computer that lives on the internet. It can run code for everyone at the same time, ensuring that everyone gets the same result when they run the same app. Key concepts: Blockchain Fundamentals, Supports complex programmable logic, Provides universal consistency across the network, Huge developer ecosystem and tooling, Execution is costly in gas fees, Limited by the speed of global consensus, Security flaws in code are permanent Related resources: - Bytecode (Glossary Term): https://theblockchainlibrary.com/glossary/bytecode - Ethereum (Glossary Term): https://theblockchainlibrary.com/glossary/ethereum - Gas (Glossary Term): https://theblockchainlibrary.com/glossary/gas - Smart Contract (Glossary Term): https://theblockchainlibrary.com/glossary/smart-contract - Smart Contract (Glossary Term): https://theblockchainlibrary.com/glossary/smart-contract - Solidity (Glossary Term): https://theblockchainlibrary.com/glossary/solidity

EVM

The Ethereum Virtual Machine (EVM) is a decentralized, Turing-complete computation engine that executes smart contracts on the Ethereum network. It functions as a global state machine, where the state is updated based on code execution on the blockchain. Because the EVM is implemented by every node in the network, it ensures that smart contracts run exactly as intended across all devices, regardless of local hardware differences. This allows for complex, programmable logic to be embedded into the blockchain.

Explain Like I'm 12

The EVM is like a giant, shared computer that lives on the internet. It can run code for everyone at the same time, ensuring that everyone gets the same result when they run the same app.

Why It Matters

The EVM transformed Ethereum from a simple ledger into a global platform for applications. It allows developers to build everything from games to decentralized banks that run automatically.

How It Works

Developers write code in languages like Solidity and compile it into bytecode. Nodes across the network execute this bytecode according to the EVM specifications. The results are updated in the global ledger, ensuring consistency for all network participants.

Real-World Example

Uniswap is a decentralized exchange that operates as a set of smart contracts running on the Ethereum Virtual Machine.

Advantages

  • Supports complex programmable logic
  • Provides universal consistency across the network
  • Huge developer ecosystem and tooling

Limitations

  • Execution is costly in gas fees
  • Limited by the speed of global consensus
  • Security flaws in code are permanent

Common Misconceptions

  • The EVM is often thought of as an actual machine, but it is purely software. Many also forget that it is Turing-complete, meaning it can solve any computational problem given enough time.

Knowledge Explorer

Explore This Concept in the Knowledge Graph

See how EVM connects to other concepts, books, research, and developer resources.

Explore Connections

Related Terms

Bytecode

Low-level machine-readable instructions produced by compiling smart-contract source code for execution by a virtual machine.

Ethereum

Ethereum is an open-source, decentralized blockchain network that enables the creation and execution of smart contracts and decentralized applications (dApps). Launched in 2015, it introduced the concept of a programmable blockchain, moving beyond simple peer-to-peer value transfers. By utilizing the Ethereum Virtual Machine (EVM), it allows developers to build self-executing code that operates without intermediaries, censorship, or downtime, creating a foundation for a new internet economy, often referred to as Web3.

Gas

Gas is the unit used to measure the computational effort required to execute operations on the Ethereum network. Since every operation—such as writing to storage, performing math, or sending tokens—consumes computing resources, gas ensures that network participants are compensated for their work. Users must pay for this gas in Ether, which prevents spam and ensures that infinite loops or resource-intensive tasks cannot clog the network, as the execution will fail once the provided gas is exhausted.

Smart Contract

A smart contract is a self-executing program stored on a blockchain that automatically runs when predetermined conditions are met. These contracts eliminate the need for intermediaries by encoding terms directly into lines of code, ensuring that the agreement is enforced exactly as written without human interference. Because they reside on an immutable ledger, the execution results are verifiable, transparent, and impossible to tamper with once deployed.

Smart Contract

A self-executing program stored on a blockchain that automatically enforces and executes the terms of an agreement when predetermined conditions are met. Smart contracts are deterministic, immutable once deployed, and form the backbone of decentralized applications.

Solidity

Solidity is the primary high-level, object-oriented programming language used for writing smart contracts that execute on the Ethereum Virtual Machine (EVM). It is statically typed and supports inheritance, libraries, and complex user-defined types. Solidity was designed specifically for blockchain environments to facilitate the creation of self-executing contracts with contract-based accountability. It is heavily influenced by C++, Python, and JavaScript, making it relatively accessible to developers coming from traditional software engineering backgrounds who are transitioning into the Web3 ecosystem.