Learn

|

Mining

What is proof of work?

Enabling Bitcoin operations, without a central authority

Proof of Work (PoW) is the foundational mechanism that secures Bitcoin and enables it to function as a peer-to-peer electronic cash system.

At its core, proof of work is a process whereby certain participants in the Bitcoin network, called “miners”, compete to solve a computational puzzle in a lottery-style competition. The first miner to solve the puzzle earns the right to add a new block of transactions to Bitcoin’s blockchain and gets paid a reward in bitcoin.

While the terms “proof of work” and “mining” are often used interchangeably, they refer to different aspects of the system. Proof of work is the protocol rule—it defines the criteria a new block must meet to be considered valid. Mining, on the other hand, is the competitive process by which participants attempt to satisfy that rule, expending electricity and hardware resources to find a solution to the puzzle. In essence, proof of work is the mechanism; mining is how it’s carried out.

Why does proof of work exist?

The problem that proof of work solves is how to operate a peer-to-peer electronic cash system, without any central authority in charge. For such a system to work, it needs to:

  • Process and prioritize transactions
  • Issue new bitcoin into circulation
  • Protect historic transactions against manipulation
  • Resolve disputes regarding valid vs. invalid transactions
  • Defend the system from malicious attacks

Proof of work solves this challenge by using industry-leading cryptography and aligning the incentives of three main parties: bitcoin holders, nodes, and miners.

  • Holders: People who are holding and transacting bitcoin
  • Nodes: Computers running Bitcoin’s software, thereby enforcing its rules
  • Miners: Computers working to solve the computational puzzle

Bitcoin holders broadcast their transactions to the network, where nodes quickly verify that each transaction follows Bitcoin’s rules. These transactions remain “unconfirmed” until a miner solves the current proof of work puzzle – expending resources like electricity and hardware – to propose a new block that includes those transactions, along with a reward of newly issued bitcoin. Nodes then independently verify that the puzzle’s solution is valid and that all included transactions follow the rules before adding the block to their own copy of the blockchain, thereby confirming the transactions.

This system creates an intentional asymmetry:

  • Solving the puzzle is difficult and costly for miners
  • Verifying the puzzle’s solution is fast and easy for nodes

The asymmetry creates an incentive structure for Bitcoin. Miners are incentivized to include only valid transactions, since any invalid block will be easily rejected by the nodes, wasting the miner’s effort. Meanwhile, nodes are incentivized to enforce the rules they support and ensure their own transactions are properly validated and secured.

By requiring miners to include proof of their computational work in each block, Bitcoin imposes a real-world cost on transaction processing and issuance of new bitcoin. This cost acts as a deterrent to manipulating, reversing, or blocking transactions. It also establishes a mechanism for resolving transaction disputes: if two competing versions of the blockchain emerge, the one with the most accumulated proof of work is deemed valid.

Because every node maintains its own independently verified copy of the blockchain – and because anyone can run a node or mine – Bitcoin operates as a decentralized financial system, free from centralized control or enforcement.

How does proof of work… work?

So what is this cryptographic puzzle that miners solve?

At the heart of proof of work is “hashing”, a cryptographic process that takes an input of any size to produce a fixed-size output (aka "hash"), which looks like a jumbled sequence of numbers and letters. The miners’ “work” is simply re-running a hash function with slightly different inputs to try and produce a hash that meets certain criteria set by the Bitcoin network.

This process is akin to a decentralized lottery, where the more computational resources a miner deploys, the more likely they are to find a valid or “winning” hash. Hash functions have unique properties that make them suitable for proof of work:

  1. Variable input, fixed output: Any length of data always produces a hash of the same length.
  2. Deterministic: The same input will always produce the same hash.
  3. One-way: It is computationally infeasible to derive the input from the output.
  4. Unpredictable: Even the slightest variation of the input will produce a completely different and seemingly random output.
  5. Collision-resistant: Two different inputs will not produce the same hash.
  6. Creation vs. verification asymmetry: Generating a valid hash is very hard, but checking its validity is easy.

What this means is that there’s no known way to produce a valid hash (aka “solve the puzzle”), except through the trial-and-error process of re-running the hash function using different inputs.

So what are the inputs?

Miners combine fixed data and variable data into a single input to run their hash function:

Fixed data:

  • Previous block's hash: A hash of the previous block’s content, which links the current block to its predecessors in an unalterable chain of blocks.
  • Summary of transactions: A hash that summarizes all the current block’s transactions in a structure called a “Merkle root” for ease of validation.
  • Current timestamp: A mark of time for when the miner began working on the block.
  • Difficulty target: A value defined by the Bitcoin network that determines the criteria for what is deemed as a valid hash.

Variable data:

  • Nonce: A random number miners change to produce a new hash with each attempt.

Miners repeatedly modify the nonce and re-run the hash function until they produce a hash that falls within the network's current difficulty target. When a valid hash is found, the miner broadcasts the new block to the network, which includes a batch of unconfirmed transactions and a transaction paying themselves the block reward.

Nodes then independently verify that the hash is correct and that all included transactions follow Bitcoin’s rules. If valid, each node adds the block to its own copy of the blockchain. This new block’s data becomes part of the fixed input for the next proof-of-work round, and the cycle continues.

How proof of work adjusts the difficulty of mining

As miners deploy more hashpower, they can attempt more hashes per second, thereby boosting their chances of solving the proof-of-work puzzle first. This can lead to blocks being found faster than Bitcoin’s target average of 10 minutes.

To maintain a stable issuance schedule and pace of transactions, the Bitcoin software automatically re-adjusts the mining difficulty every 2,016 blocks (about every two weeks). This ensures consistent timing, regardless of how many miners are active.

  • If blocks are found too quickly, the difficulty increases.
  • If blocks are found too slowly, the difficulty decreases.

This adjustment changes the difficulty target – the threshold below which a hash must fall to be valid. Since hashes are random, a lower target means fewer possible valid hashes exist, requiring more trial and error and making winning more difficult.

Think of it like a lottery: reducing the number of “winning numbers” means it takes more total guesses (and more time) to win.

What does this mean?

Miners are incentivized to operate, so long as the expected bitcoin reward exceeds their expenses. If difficulty rises too high, some miners will shut down, reducing network hashpower, slowing block production, and triggering a difficulty decrease in the next adjustment. This feedback loop keeps mining competitive yet efficient, and ensures Bitcoin’s transaction flow and issuance rate remain steady and decentralized.

What proof of work means for Bitcoin

Proof of work is the foundation that enables Bitcoin to operate as a peer-to-peer electronic cash system, without any central authority:

  • Transaction consistency: A new block of transactions is confirmed approximately every 10 minutes, maintaining a predictable pace of transactions.
  • Transaction permanence: Because each block’s hash is linked to its predecessor, altering or reversing transactions would require redoing all proof of work from that point forward – an economically infeasible task.
  • Scalability: There’s no limit on node operators or miners, and with layer 2 solutions like the Lightning Network, Bitcoin can scale as a truly decentralized financial network.
  • Network security: Blocking, reversing, or manipulating transactions, or otherwise attacking the network is both verifiably impractical and economically infeasible.
  • Incentive alignment: Miners must expend electricity and hardware resources, ensuring only economically rational participants continue mining.
  • Global energy optimization: Miners naturally seek the cheapest energy sources—often stranded, wasted, or renewable—leading to a more geographically distributed and energy-efficient mining ecosystem.
  • Protocol integrity: All participants follow the same rules enforced by the software. Any miner submitting invalid blocks will have their work rejected by the network’s nodes.

Beyond its technical function, proof of work imbues bitcoin with a form of intrinsic value. Just as a gold coin can only come into existence as a result of physical labor and expended energy spent to extract and refine metal from the earth, a bitcoin can only come into existence as the result of real-world energy expended to mine a block.

Each bitcoin, in essence, is a manifestation of real-world expended resources (electricity and hardware). This stands in sharp contrast to fiat systems, where cash can be printed at the discretion of central banks, often without transparency or limitation.

In this way, proof of work transforms bitcoin from abstract digital data into a provably scarce, costly-to-produce, and manipulation-resistant form of money. It is the mechanism that enables decentralized trust and anchors bitcoin’s role as a durable, global store of value.

Lightning

What is the Lightning Network?

The global bitcoin payments network that’s instant, private, and low-to-no cost

Lightning

Transacting bitcoin on-chain vs. Lightning

When and where to use different kinds of bitcoin transactions

Business

What is a strategic bitcoin reserve?

Holding bitcoin for value preservation and optionality

Bitcoin

What is the bitcoin supply schedule?

The pre-programmed pace from zero to 21 million

Lightning

What is a Lightning invoice?

Bitcoin payment requests within the Lightning Network

Money

What are bitcoin-backed loans?

Bitcoin as collateral to unlock cash liquidity

© 2025 NMLS ID 1902919 (Zap Solutions, Inc.)

All in on bitcoin.

Strike

BitcoinLendingBill PayPaymentsSend GloballyBusinessPrivateDeveloper

Platform