6 min read

How Does Bitcoin Work? Mining, Keys and the 21 Million Cap

Bitcoin started as a nine-page paper published under the name Satoshi Nakamoto. The network’s first block followed, dated Jan 3, 2009. Its title was “Bitcoin: A Peer-to-Peer Electronic Cash System,” and its opening line set out the goal: online payments sent directly from one person to another “without going through a financial institution.”

The author’s real identity has never been publicly confirmed. But the whitepaper is still the clearest map of how Bitcoin works, and most of what follows tracks it closely, with plain-English translations along the way.

The problem Bitcoin was built to solve#

Digital things are easy to copy. If money is just a file, what stops you from sending the same file to two people? This is called the double-spending problem.

Banks solve it by keeping the official record. When you pay with a debit card, the bank checks your balance and subtracts the money, so you can’t spend it twice. The whitepaper’s point is that this works but forces everyone to trust a middleman, who can reverse payments, charge fees and set the rules.

Satoshi’s answer: make every payment public, and get the whole network to agree on the order in which payments happened. The paper puts it simply: the only way to confirm a payment hasn’t already been spent elsewhere is to be aware of all transactions. Whichever spend came first counts. Any later attempt to spend the same coins is rejected.

A coin is a chain of signatures#

The whitepaper defines a coin in an unusual way: as a chain of digital signatures. Each owner passes the coin along by signing it over to the next owner’s public key.

Here’s the everyday version.

  • Your private key is a secret number. Think of it as your personal signature stamp that nobody can forge.
  • Your public key (and the shorter address made from it) is like an account number you can share with anyone.
  • When you pay someone, your wallet stamps the payment with your private key. Anyone can check the stamp against your public key and confirm it’s genuine, without ever seeing your private key.

That’s why people say “not your keys, not your coins.” Whoever holds the private key controls the bitcoin. A crypto wallet is the tool that holds those keys, and the seed phrase is the backup that can restore them.

The six steps, in plain English#

Section 5 of the whitepaper lists how the network runs. Translated:

  1. New payments are announced to everyone. Your signed payment is broadcast to the computers (nodes) running Bitcoin.
  2. Each node gathers payments into a block. A block is a batch of recent payments, like a page in a ledger.
  3. Each node works on a hard puzzle for its block. This is proof of work.
  4. The first to solve it broadcasts the block. Everyone else can check the answer in an instant.
  5. Nodes accept the block only if every payment in it is valid and none of the coins were already spent.
  6. Nodes show acceptance by building the next block on top of it, using the accepted block’s fingerprint (its hash) as the link.

The paper adds that nodes always treat the longest chain (the one with the most work behind it) as the correct one. If two blocks appear at once, the tie breaks when the next block lands on one side.

For a closer look at hashes and how blocks chain together, the blockchain lesson goes piece by piece.

Mining: a lottery that costs electricity#

Step 3 is where “mining” comes in, and it’s the most misunderstood part of Bitcoin.

The puzzle isn’t clever math. It’s a guessing game. Miners take their block, add a random number, run it through a hash function, and check whether the result is below a target. If not, they change the number and try again, over and over, on machines all across the network.

Think of it as rolling a pile of dice, over and over, until they all land on one. The only way to roll faster is more hardware and more electricity. That cost is the point. Rewriting history would mean redoing all that work faster than the honest network, which the whitepaper says stays secure as long as honest nodes collectively control more computing power than any group of attackers.

Why blocks come about every 10 minutes#

The Bitcoin FAQ says new blocks are added approximately every 10 minutes on average. Some arrive within a minute, some take much longer, because finding one is a matter of chance.

To keep that average steady as miners add or remove machines, the network adjusts the puzzle’s difficulty. In the Bitcoin Core source code, the target spacing is 10 minutes and the adjustment window is two weeks, which works out to every 2,016 blocks. More mining power arrives, the puzzle gets harder. Miners leave, it gets easier.

Where new bitcoin comes from#

Section 6 of the whitepaper explains the incentive. The first payment in each block is a special one that creates new coins for whoever mined the block. That’s how bitcoin enters circulation with no central bank to issue it. The paper compares it to gold miners spending resources to add gold to the supply.

Miners also collect transaction fees, which are the difference between what a payment sends in and what it sends out. The whitepaper anticipated that once a predetermined number of coins were in circulation, miners would be paid by fees alone.

Two numbers set the schedule:

  • The reward halves every 210,000 blocks. It started at 50 bitcoin per block, per the Bitcoin Core code, and has been cut in half four times since. The halving lesson has the dates.
  • The total is capped at 21 million. The Bitcoin FAQ states that only 21 million bitcoins will ever be created, and the Bitcoin Core code sets 21 million as the maximum amount.

Each bitcoin divides into 100 million smaller units called satoshis, so you don’t need to buy a whole coin.

Who’s in charge?#

Nobody, in the usual sense. The Bitcoin FAQ says it’s controlled by its users around the world, and that developers can’t force a change because each user chooses which software to run. Changes happen when enough of the network adopts them.

That cuts both ways. There’s no company to shut it down. There’s also no customer service line, no fraud department, and no one who can reverse a payment.

How it compares to the money you already use#

BitcoinA bank transfer
Who keeps the recordThousands of nodesYour bank
Who approves paymentsNetwork rulesThe bank
SupplyCapped at 21 millionSet by a central bank
Reversing a paymentOnly the recipient can send it backOften possible through the bank
Government insuranceNoneFDIC-insured deposits

The “insurance” row matters. The FTC’s crypto consumer page says crypto held in accounts isn’t insured by a government the way bank deposits are.

What could go wrong: Bitcoin’s design protects the ledger, not you. Payments can’t be reversed; the Bitcoin FAQ says once confirmed, they can only be refunded by the person who received them. Lose your private key or seed phrase and the coins are stuck forever. Send to a mistyped address no one controls and they’re gone. Prices can swing sharply, and the FAQ itself notes that relatively small events can move the price a lot. Scammers love Bitcoin because it’s hard to claw back: the FTC says only scammers demand payment in crypto or guarantee returns. Read the crypto scams guide before you buy.

Where to go from here#

Bitcoin came first, but it isn’t the only design. Ethereum took the same shared-ledger idea and added programs that run on it, then later dropped mining altogether; the Ethereum lesson explains how, and the proof of work vs proof of stake comparison shows what changed. If you’re still building the bigger picture, what cryptocurrency is sets Bitcoin alongside the rest of the crypto family.

Nothing on this page is investment advice; it describes how the system works, not whether owning bitcoin suits your situation.