Proof of work and proof of stake are two ways for a blockchain's nodes to agree on one history without trusting each other. They differ in what makes producing blocks costly, so that nobody can cheaply rewrite the chain. In proof of work, used by Bitcoin, miners spend electricity and hardware computing hashes, and nodes follow the chain with the most accumulated work. In proof of stake, used by Ethereum since the Merge in September 2022, validators lock up the chain's own coins as stake, take turns proposing blocks and voting on them, and lose part of that stake (slashing) if they provably cheat. Proof of work makes attacks expensive with outside resources; proof of stake makes them expensive with capital held inside the system.
What problem do both solve?
Anyone can run a node, so a blockchain can't decide by counting nodes: an attacker would simply spin up millions of fake ones. This is called a Sybil attack. The network needs something scarce that can't be faked, and it gives the right to add blocks in proportion to how much of that scarce thing you control.
- In proof of work, the scarce thing is computation, which costs energy and specialised hardware.
- In proof of stake, the scarce thing is the native token, locked up where the protocol can see and destroy it.
Either way, the goal is the same: make it far more profitable to follow the rules than to attack, and make attacks visible.
How does proof of work work?
Miners repeatedly hash a candidate block header with different values until the result falls below a target. Finding a valid hash takes enormous numbers of attempts, but anyone can check it with one hash. Bitcoin adjusts the target every 2,016 blocks so blocks keep arriving about every 10 minutes, however much hash power joins. How Bitcoin mining actually works goes through the header, the nonce and the difficulty maths in detail.
If two miners find blocks at the same time, the chain briefly forks. Nodes follow the branch with the most cumulative work, and the other branch is abandoned. That means finality is probabilistic: every additional block on top of your transaction makes reversing it exponentially more expensive, but never strictly impossible. That's why exchanges wait for several confirmations, as explained in how many confirmations to wait for.
How does proof of stake work?
Ethereum's design is the most widely used example:
- Becoming a validator. You deposit at least 32 ETH into the deposit contract and run validator software. Since the Pectra upgrade (EIP-7251), one validator can hold an effective balance of up to 2,048 ETH.
- Time is divided into slots and epochs. A slot is 12 seconds; an epoch is 32 slots. In each slot, one validator is pseudo-randomly chosen to propose a block, and committees of other validators attest (vote) to what they see as the head of the chain.
- Finality is explicit. When validators holding two thirds of the staked ETH vote for checkpoints in two consecutive epochs, the earlier one becomes finalised, typically 13 to 15 minutes after a block is produced. Reverting a finalised block would require at least a third of all stake to sign contradictory votes, which is provable on chain.
- Rewards and penalties. Validators earn rewards for timely proposals and votes and lose small amounts for being offline. Slashing is reserved for provable misbehaviour, such as proposing two different blocks for the same slot or casting contradictory votes; slashed validators lose part of their stake and are forced out.
Other chains use different flavours. Cosmos chains use BFT-style consensus (CometBFT) where a block is final as soon as two thirds of stake sign it. Polkadot uses nominated proof of stake and extends its validators' security to parachains that share one validator set. Tezos lets token holders delegate without giving up custody and has also used its governance to upgrade the protocol without hard forks.
Side-by-side comparison
| Proof of work | Proof of stake | |
|---|---|---|
| Scarce resource | Hash power (energy and hardware) | Staked native tokens |
| Who produces blocks | Whoever finds a valid hash first | A validator selected for that slot |
| Block timing | Random, around a target average (10 min on Bitcoin) | Fixed slots (12 s on Ethereum), some may be missed |
| Finality | Probabilistic, grows with each block | Explicit checkpoints once two thirds of stake vote |
| Attack threshold | Majority of hash power to rewrite or censor | A third of stake to stall finality, two thirds to finalise conflicting blocks, a majority to censor |
| What an attacker loses | Electricity and opportunity cost; keeps the hardware | Slashed stake, which the protocol can destroy |
| Energy use | High | Low (ordinary servers) |
| Entry cost | Specialised hardware and cheap power | Tokens to stake, or delegation to a validator or pool |
| Examples | Bitcoin, Litecoin, Dogecoin, Monero, Kaspa | Ethereum, Solana, Cardano, Polkadot, Cosmos chains |
Which one is more secure?
Neither is simply "more secure". They fail in different ways.
Proof of work's strength is simplicity and objectivity. A new node can download the chain from anyone and verify, from the work alone, which history is valid. Its weakness is that hash power can be rented or redirected. Small proof-of-work chains that share an algorithm with a larger one are exposed: Ethereum Classic suffered several majority-hash-power attacks in 2020 for this reason. Some small chains reduce the risk with merged mining, borrowing a larger network's hash power. Mining also concentrates in pools and in regions with cheap electricity.
Proof of stake's strength is accountability. Misbehaviour is attributable to specific validators, and the protocol can destroy their stake, so an attacker can't simply try again with the same resources. Its weaknesses are subtler:
- Weak subjectivity. Old validators who have withdrawn their stake could sign an alternative history at no cost. New nodes therefore start from a recent trusted checkpoint (checkpoint sync) rather than from genesis alone.
- Stake concentration. Large staking providers and liquid staking protocols can accumulate a big share of stake. Unlike mining hardware, stake compounds with rewards.
- Complexity. Fork choice, committees, finality gadgets and penalty rules are much more complex than "follow the most work", which means more surface for bugs.
Energy is the clearest difference. The Ethereum Foundation estimated that the Merge cut Ethereum's energy use by roughly 99.95%, because validators run on ordinary servers instead of competing hardware.
What changes for developers?
Most of the impact is in how you treat confirmations and randomness.
- Wait for the right signal. On proof-of-work chains, wait for a number of confirmations proportional to the value at risk. On Ethereum, use the
finalized(orsafe) block tag instead of counting blocks. Either way, your backend still has to handle chain reorganisations above the finalised point. - Expect regular block times on PoS. Ethereum blocks land on 12-second slot boundaries, so timestamps are predictable. Bitcoin's block intervals are random; an hour without a block happens.
- Don't use protocol values as randomness. After the Merge, the
DIFFICULTYopcode becamePREVRANDAO(EIP-4399). It's better than nothing but still influenceable by proposers. - Faster finality changes design. BFT-style proof-of-stake chains finalise in seconds or less, as in Monad's pipelined consensus, which shortens confirmation logic considerably.
You can see both models from the command line:
# Bitcoin (proof of work): height, current difficulty and total chain work
bitcoin-cli getblockchaininfo | jq '{blocks, difficulty, chainwork}'
# Ethereum (proof of stake): newest block vs newest finalised block
cast block-number --rpc-url "$RPC_URL"
cast block finalized --field number --rpc-url "$RPC_URL"
On Ethereum, the gap between those two numbers is usually around 64 to 96 slots: the two or three epochs that have not yet been finalised.
Summary
- Both mechanisms resist Sybil attacks by tying block production to something scarce.
- Proof of work uses computation; the chain with the most work wins, and finality is probabilistic.
- Proof of stake uses locked tokens; validators vote, finality is explicit, and cheating is punished by slashing.
- Proof of work is simpler and verifiable from genesis but energy-intensive and exposed to rented hash power on small chains.
- Proof of stake is energy-efficient and makes attackers pay with their own stake, but adds complexity, weak subjectivity and stake concentration risks.
- As a developer, check finality the way the chain defines it: confirmations on proof of work, the
finalizedtag on Ethereum.
Get the weekly commit
New blockchain deep dives every week.