BITCOIN MAINNETLive explorer status
PROOF OF WORK

Proof of work

Proof of work means a block's hash is so rare that finding it took huge effort, yet anyone can check it instantly. See how it secures Bitcoin.

Hard to make, easy to check

A hash function produces unpredictable output. To get a hash below a certain number, there's no shortcut: you must try again and again. But once someone shows you the winning input, you can check it with one hash.

Real SHA-256 attempts: most fail, then one finally starts with enough zerosGoal: a hash starting with 000 (about 1 in 4,096)nonce 0971e5fcbf078b8c1fc2c83e3a1a7b62c861b4336…✗nonce 1e3d25920d037750f5b90c95c89c476b28b1f6dae…✗nonce 22adbf72d3ff314ed42dc28318c3cf49411f89f25…✗nonce 3c4ae85b70d5e1f7bd753cf22c5c99684b9435a21…✗… 9,762 more tries …nonce 9,766000872f18c4604a0dda31cbadee1a914a9865cc6…✓
Real SHA-256 attempts: most fail, then one finally starts with enough zeros

That's proof of work: the block hash itself proves that, on average, a huge number of attempts were made.

Why it secures Bitcoin

  • Each block's header includes the previous block's hash, so the work stacks up.
  • To change an old block, an attacker must redo its work and every block after it, then overtake the honest network.
  • Honest miners keep adding blocks meanwhile, so the attacker falls further behind unless they control most of the hash power. See The 51% attack.

Try it yourself

TRY IT · MINING SIMULATOR

Find a nonce so the hash starts with enough zeros. Each extra zero makes it about 16 times harder, the same idea as Bitcoin difficulty.

Data being hashedBlock 1 | prev 00000000a1… | Alice pays Bob 1 BTC | nonce 0
Hash—

Bitcoin's real target needs a hash starting with about 19 or more hex zeros. That's why miners use ASICs doing trillions of hashes per second.

Proof of work vs proof of stake

Proof of work (Bitcoin)Proof of stake
Who adds blocksWhoever finds a valid hashHolders who lock up coins
Cost of attackingEnergy and hardware, paid continuouslyBuying and staking coins
New participantsAnyone with hardware and powerNeed coins first
Verifying historyCheck the work in each headerNeed extra trust assumptions for old history

A quick check you can do

Open any block on MyBitcoinExplorer and look at its hash: it starts with many zeros. Those zeros are the visible proof of work.

Share this guide
Share on X ↗

Key takeaways

  • Proof of work is costly to produce but instant to verify.
  • Work accumulates block by block, making old blocks the hardest to change.
  • Security depends on honest miners having most of the hash power.

Common questions

Is proof of work a waste of energy?

It's the cost of making history expensive to rewrite without a central authority. Whether that's worth it is debated, but the energy isn't incidental: it's the security.

What is the alternative to proof of work?

Other systems use proof of stake. Bitcoin uses only proof of work.

Who invented proof of work?

The idea goes back to the 1990s, notably Adam Back's Hashcash for fighting email spam. Bitcoin applied it to securing a ledger.

Does proof of work make Bitcoin unhackable?

It makes rewriting history extremely expensive. It doesn't protect wallets or exchanges, which is where most thefts happen.