Network and blocks

What is proof of work?

Proof of work is the system that lets a blockchain agree on new blocks by making miners spend real computing work to find a valid one.

Put it to work Mining profit calculator Your machine, the power price you pay, the income per day. Open the page
Finding an answer
huge numbers of attempts
Checking it
one hash
Bitcoin header size
80 bytes
Chain that counts
the one with the most work
Paid to
whoever finds the block

What it means in practice

A miner bundles transactions into a candidate block and hashes its header again and again, changing the nonce each time, until the result falls below the network's target. Finding such a hash takes a huge number of attempts, but anyone can check it with one. Because rewriting history would mean redoing that work faster than the rest of the network, proof of work is what makes the ledger hard to change. Bitcoin, Litecoin, Dogecoin, Kaspa and the other coins ASIC miners work on all use it.

The 80 bytes that are hashed

A Bitcoin header has six fields: a version, the hash of the previous block, a fingerprint of all transactions called the Merkle root, a time, the target in short form, and the nonce. Hash those 80 bytes twice with SHA-256 and compare the result with the target.

The nonce has room for 4,294,967,296 values. Example figures: a 200 TH/s machine tries all of them in about 0.00002 seconds. So the pool also lets it change an extra counter inside the block’s first transaction, which changes the Merkle root and opens a new set of nonces.

Luck without memory

Every attempt has the same tiny chance, whatever happened before. A network that has searched for an hour is no closer than one that has just begun. Averages appear only over many blocks.

Example figures for a 10-minute average: the chance that no block appears for 30 minutes is about 5%, and for 60 minutes about 0.25%. With 144 blocks a day, a half-hour gap turns up about seven times a day. Nothing is broken when that happens.

Most work, not most blocks

Nodes add up the difficulty of every block in a chain and follow the chain with the largest sum. A long chain of easy blocks loses against a shorter one of hard blocks. Without that rule, someone could produce thousands of cheap blocks on a laptop.

It also explains why a payment grows safer with each confirmation. To undo it, an attacker must redo all the work since that block and overtake everyone who keeps adding to the honest chain.

Energy, seen as a figure

The energy used follows from two numbers: the network’s hashrate and the efficiency of its machines. Example figures: 1,000 EH/s at an average of 20 J/TH is 1,000,000,000 TH/s × 20 J = 20 billion watts, or 20 GW.

A newer machine does not lower the network’s total by itself, since difficulty rises as more hashrate joins. What it lowers is the energy for each unit of work, and that is what its owner pays for.

How it differs from proof of stake

In proof of stake, the right to add a block comes from coins locked in the system. In proof of work it comes from computing, so anyone with a machine and power can take part without first owning the coin. A machine for one has no use in the other.

The running costs differ as well. A miner pays for power every hour and can stop at any time. A staker has coins tied up, often with a waiting time before they are free again.

Worked example

If the target means roughly one valid hash in every 10^23 attempts, a network making 10^21 hashes a second finds a block about every 100 seconds on average.

Example figures, not live data.

Common mistakes

  • Saying miners “solve equations”: they try numbers until one fits.
  • Believing a block is overdue after a long gap.
  • Comparing the hashrate of two coins that use different algorithms.

Common questions

Is the work itself useful for anything else?

Its use is to make the ledger costly to rewrite. The heat can be put to use as well, for rooms, water or greenhouses.

Who invented proof of work?

The idea of asking for computing effort dates from the 1990s, against junk mail. The Bitcoin paper by Satoshi Nakamoto used it to keep a shared ledger.

Can proof of work be done by hand?

The checking can, with patience. A person would need days for a single double hash, and a miner does trillions a second.

What the top Bitcoin miners earn today

Income per day for one machine, before electricity.

Top earner In stock
Bitmain Hydro

Antminer S23 Hyd 3U 1,160 TH/s

$32.66 income per day

Hashrate, Power
1,160 TH/s11,020 W
Price
$25,739
Coming soon
MicroBT Hydro

WhatsMiner M79S 930 TH/s

$26.18 income per day

Hashrate, Power
930 TH/s14,000 W
Price
Price on request
In stock
Bitdeer Hydro

SEALMINER A4 Ultra Hydro 886 TH/s

$24.94 income per day

Hashrate, Power
886 TH/s8,373 W
Price
$19,800
Coming soon
MicroBT Hydro

WhatsMiner M79 870 TH/s

$24.49 income per day

Hashrate, Power
870 TH/s14,000 W
Price
Price on request

Updated 9 minutes ago Not financial adviceHow we calculate