# Consensus Mechanism

> How the computers on a chain all agree on the next block. Cheats lose out.

**Field:** Software Development  
**Category:** Blockchain & Web3  
**Also known as:** Consensus Algorithm, Blockchain Consensus

## Think of it like

It is like the rule a class uses to pick one answer. Then all the kids stop and agree.

## Definition

A consensus mechanism is the rule a blockchain uses to agree on the next block. Many computers each hold a copy, and they may hear about payments in a different order. The rule picks who may add the next block and how the rest check it. Cheating is made costly, so honest work pays better. Proof of work and proof of stake are the two best known rules.

## Example

Bitcoin agrees by proof of work, where computers race to solve a puzzle. Ethereum has agreed by proof of stake since September 15, 2022.

## Why it matters

Without it, one person could spend the same coin twice. That is called the double-spend problem.

## Common mistake

Thinking a vote of users decides. The say comes from computers that put up work or money, not from people with accounts.

## Three principles

- **One history.** Everyone ends with the same chain.
- **Costly cheating.** Lying wastes work or money.
- **Open checking.** Any computer can check a block.

## Related terms

- [Blockchain](https://learn.benibix.com/term/development/blockchain)
- [Proof of Work (PoW)](https://learn.benibix.com/term/development/proof-of-work)
- [Proof of Stake](https://learn.benibix.com/term/development/proof-of-stake)
- [Crypto Mining](https://learn.benibix.com/term/development/crypto-mining)
- [Distributed System](https://learn.benibix.com/term/development/distributed-system)
- [Block (Blockchain)](https://learn.benibix.com/term/development/blockchain-block)

![Two panels side by side under the question of who adds the next block. On the left, proof of work: several computers race to solve a guessing puzzle, the first to finish adds the block and earns new coins, and the cost is electricity. On the right, proof of stake: people lock coins in a jar, the network picks one to propose the block, and a cheater loses locked coins.](https://learn.benibix.com/diagrams/dev4-consensus.svg)

---

Source: https://learn.benibix.com/term/development/consensus-mechanism
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
