← All guides

How crypto mining works, conceptually

Concepts · 6 min read

"Mining" is a misleading name. Nobody is digging anything up. Mining is how some cryptocurrencies agree on the truth — which transactions happened, in what order — without a bank or company in charge. Everything else about mining follows from that one job.

The ledger problem

A cryptocurrency is, at its core, a shared ledger: a list of who sent what to whom. If everyone keeps their own copy of the list, the hard question is how thousands of strangers agree on the next page of entries. There's no editor to approve changes, no head office to settle disputes.

The networks that use mining solve this with proof-of-work: a system where adding a page of transactions (a block) requires doing a large, verifiable amount of computation. Whoever does the work first earns the right to write the next page — and collects the reward attached to it.

The lottery, explained

Here's the simplified version of what mining hardware actually does. Transactions waiting to be confirmed are gathered into a candidate block. The miner then repeatedly runs that block through a cryptographic hash function — a mathematical meat grinder that turns input into a fixed-length string of digits — while changing a small number called a nonce each time.

The network sets a target: the resulting hash has to be below a certain value. Because hash outputs are effectively random, the only way to find a winning hash is to try billions of nonces per second until one works. It is a lottery where buying more tickets means buying more computing power. The winner's block is broadcast to the network, other participants verify it in a fraction of a second, and everyone moves on to the next block.

Two things matter here. First, finding the block is hard but checking it is trivial — that's what makes the system work without trust. Second, the winning miner can't fake transactions, because the rest of the network validates every block against the rules. Mine an invalid block and it's simply ignored.

Difficulty: the thermostat

Most proof-of-work networks aim for a steady pace — new blocks roughly every ten minutes, or whatever the protocol specifies. But miners constantly join and leave, and hardware gets faster. So the network automatically adjusts the difficulty: the target moves up or down based on how fast recent blocks were found.

This is the crucial dynamic people miss. Difficulty adjustment means mining collectively gets harder exactly as fast as miners collectively get better. There is no permanent advantage from faster hardware — the network just raises the bar. Any edge a miner has comes from spending less per unit of computation than competitors, which is why electricity price ends up being the whole game.

Why it uses energy — and why that's the point

Mining's energy use isn't an accident or an inefficiency; it's the security mechanism. To rewrite history on a proof-of-work chain — to double-spend, or censor transactions — an attacker would need to out-compute the honest miners, which means buying and powering more hardware than the entire network. The energy burned is what makes attacking expensive. Cheap security would be weak security.

That doesn't settle whether any particular network is worth its energy use — that's a judgment call, and plenty of reasonable people land on no. But it does explain why the energy use can't simply be "optimized away" while keeping proof-of-work. The work is the cost of trustlessness.

Why miners do it

Miners are paid in two ways: a block reward (newly created coins issued with each block) and the transaction fees attached to the transactions in the block. On networks whose block rewards shrink on a schedule, fees are meant to eventually carry the economics. The block reward is what makes mining worth doing in the short term; it's also why miners care enormously about the coin's market price and the difficulty level.

This reward structure creates a treadmill: the coin price rises, more miners join, difficulty rises, margins compress, the least efficient miners drop out. The cycle repeats. Understanding this loop matters more than understanding any specific piece of hardware.

What mining is not

A few common misconceptions, cleared up:

Miners don't "create" coins by solving math. The math puzzle decides who gets to add the block; the protocol decides how many new coins the block contains. The puzzle is a fair lottery, not a coin factory.

Mining doesn't get more profitable as the network grows. Difficulty adjustment guarantees the opposite in aggregate: more total mining power means a smaller slice per miner, at the same total reward.

Your computer's effort isn't wasted if you don't win. It's just lost — that's the lottery. Pools exist to smooth this out, which we'll cover in another guide.

The one-sentence version

Mining is a continuous, energy-intensive lottery for the right to append the next page of the ledger — and the energy spent is exactly what makes the ledger hard to forge. If you understand that sentence, you understand more than most people who buy mining hardware.

Next: ASIC vs GPU mining: an overview →