Ethereum Virtual Machine (EVM)EVM
The Ethereum Virtual Machine is the computing environment that runs smart contracts on Ethereum. Many other blockchains are “EVM-compatible”, so the same contracts and wallets work on them.
The EVM is the engine that runs Ethereum's smart contracts. Many other chains copy it, so knowing what 'EVM-compatible' means helps you understand wallets, fees and where your tokens can go.
- Category
- Cryptocurrency and Blockchain
- Reading time
- 3 min
- Also called
- EVM, EVM-compatible, Ethereum VM
- Updated
The EVM in plain words
Every node runs the EVM to carry out smart contracts, and gas measures how much computing work each step takes.1
Ethereum is a distributed state machine rather than just a ledger.1
Given an input, the EVM produces a deterministic output, so every node reaches the same result.1
How the EVM processes a transaction
Compile the contract
Code is compiled to bytecode that runs as EVM opcodes.1
Send a transaction
A wallet or app calls a node through an RPC interface.2
Execute on a stack
The EVM is a stack machine with a depth of 1024 items.1
Meter gas
Each operation uses gas measuring computational effort.1
Reach the same result
Execution is deterministic, so all nodes agree.1
Reuse on other chains
Contracts written for Ethereum also work on EVM-compatible sidechains.3
Worked examples
Example 1 — Gas fee
$6.75 feeHypothetically a swap uses 150,000 gas at 15 gwei, ETH at $3,000.
| Gas in ETH | 150,000 × 15 ÷ 1,000,000,000 = 0.00225 ETH |
| In dollars | 0.00225 × $3,000 = $6.75 |
Gas measures the computational effort of the operations the EVM runs.1
Example 2 — Same contract, cheaper chain
$131 savedHypothetically the same swap on an EVM-compatible chain costs $0.20 instead of $6.75.
| Saving per swap | $6.75 − $0.20 = $6.55 |
| Over 20 swaps | 20 × $6.55 = $131 |
Contracts written for Ethereum Mainnet also work on EVM-compatible sidechains.3
Example 3 — Failed transaction
−0.0016 ETHHypothetically a transaction runs out of gas after using 80,000 gas at 20 gwei.
| Gas spent | 80,000 × 20 = 1,600,000 gwei |
| In ETH | 0.0016 ETH lost |
Gas measures the computational effort used, so set limits with a margin before sending.1
Ethereum vs EVM-compatible chain
| Aspect | Ethereum Mainnet | EVM-compatible chain |
|---|---|---|
| Runs same contracts | Yes | Yes |
| Security | Ethereum validators | Its own consensus |
| Fees | Often higher | Often lower |
| Same address format | Yes | Usually yes |
Why traders care about the EVM
Wallet reuse
One wallet address on many EVM chains reduces setup, but check Counterparty Risk.
Fee savings
Use EVM chains with lower Trading Fees and Commissions.
DeFi access
Reach Liquidity on other networks.
Token deposits
Pick the right network when sending to an Exchange.
Advantages and disadvantages
Advantages
- Same tools work across many chains.
- Deterministic, verifiable execution.
- Large developer ecosystem.
- Lower-fee EVM chains are available.
Disadvantages
- Gas is lost even on failed transactions.
- Same address on many chains confuses deposits.
- EVM chains have different security.
- Smart contract bugs replicate easily.
Going deeper
Read as far as you need. Each level builds on the one before it.
A shared computer
Beginner
Every node runs the EVM to execute contracts and meters work with gas.1
Bytecode and opcodes
Intermediate
Compiled contracts run as EVM opcodes such as ADD and SUB, each with a gas cost.1
Compatible is not identical
Advanced
EVM-compatible sidechains run the same contracts but have their own consensus and security, so the risk is not the same as Ethereum's.3
Common mistakes
Wrong-chain deposits
Sending on an EVM chain the exchange doesn't support.
Assuming equal security
Treating every EVM chain like Ethereum.
Low gas limits
Setting limits that cause failed transactions.
Copycat tokens
Assuming the same token name is the same contract on each chain.
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- The EVM runs Ethereum smart contracts.
- Gas measures computational work.
- Execution is deterministic.
- Many chains are EVM-compatible.
- Compatible chains have different security.
Frequently asked questions
What is an EVM-compatible chain?
Why do failed transactions cost gas?
Is my address the same on EVM chains?
Further learning
- Trading Fees and Commissions
Gas as a trading cost.
- Counterparty Risk
Chain and contract risk.
- Liquidity
DeFi on EVM chains.
- Settlement
When a transaction is done.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- ethereum.org. Ethereum Virtual Machine (EVM) (opens in a new tab) Checked .
- NIST. NISTIR 8301: Blockchain Networks: Token Design and Management Overview (opens in a new tab) Checked .
- ethereum.org. Sidechains (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.