Bitcoin: what it is and how it works
Bitcoin is money that no bank or state stands behind. When you pay by card, your bank notes down in its own book that £20 has left your account and £20 has arrived in the shop’s account. Your money is really a line in somebody else’s book, and you trust the bank to keep it honestly. Bitcoin keeps a book too, but nobody locks it in a safe. It is public, anyone can download a copy of it, and thanks to maths nobody can forge it.
The computers that hold a copy of the book are called nodes. A node is an ordinary computer running the Bitcoin program, which accepts new payments, checks that they follow the rules and passes them on to the other nodes it is connected to. Anyone who wants to check the rules for themselves can run one, for example shops and companies, and they get no reward for it. On 5 December 2026 the Bitnodes project counted about 22,000 of them, and that is only the ones that can be reached from outside. None of them is in charge.
What is so interesting about that? Bitcoin cracked a problem that once looked unsolvable: how to keep track of money between people who do not know or trust each other, with nobody acting as referee. Instead of a bank, maths does the job: signatures, hashes and a great deal of trying. A hash is a short number that serves as an identifying mark for any data: the same data always gives the same one, slightly different data gives a completely different one, and the data cannot be worked out backwards from it. A signature is a number that only the owner of the secret key can work out from a payment, but anyone can check it using the public key. The Maths of Bitcoin series devotes a separate part to each of these things, and a map of the parts waits at the end of the article. Here we put the whole picture together.
A ledger without a bank
If we strike out the bank, we are left with three problems it used to take care of.
- Who may spend the money? At a bank you prove who you are with a card and a PIN. Bitcoin knows no accounts with names; the money belongs to whoever knows a secret number, the private key. The owner has to sign every payment, and without the key a signature cannot be made, as the part on the Bitcoin address shows.
- How do we stop somebody spending the same money twice? Digital money is just data, and data can be copied. If Adam sends the same money to Bára and to Eva, all the nodes have to agree which of the payments came first.
- How do we stop somebody quietly rewriting history? The book is public and anybody has a copy, so nobody must be able to alter it unnoticed.
The second and third problems are solved by blocks and mining. But first, one payment.
A payment as a banknote and change
You will not find account balances in Bitcoin. Instead there is something much more like the banknotes in a wallet. Say that Adam once received a payment of 0.5 BTC. That created a “banknote” worth 0.5 BTC in the book, belonging to Adam. Now Adam wants to send Bára 0.3 BTC.
A banknote cannot be torn in half. When you pay with a £20 note for £12 of shopping, you hand over the whole note and get change. In Bitcoin it is the same. Adam’s payment uses up the whole 0.5 BTC banknote, the so-called input, and makes new banknotes out of it, the outputs: 0.3 BTC for Bára and 0.199 BTC back to Adam.
Let’s add it up. 0.5 BTC went into the payment, and 0.3 + 0.199 = 0.499 BTC came out. Where did one thousandth go? It goes to the miner who writes the payment into the book, as a fee. The payment does not list the fee anywhere; the fee is simply the difference between the inputs and the outputs. The payer decides how much to give, but payments with a higher fee get priority with miners. So for every payment this equation has to hold:
For Adam:
Every node checks this balance. A payment whose outputs add up to more than its inputs would be rejected by the nodes, because it would be making money out of thin air.
You can get badly burned this way in Bitcoin. If Adam forgot the change, that is, created only the 0.3 BTC output for Bára, the payment would be perfectly valid, only the fee would come out as 0.5 − 0.3 = 0.2 BTC. The miner would be delighted and Adam would pay two hundred times more than he intended. That is why payments are put together by a wallet, a program on a phone or computer that holds the keys and works out the change and the fee by itself.
So the Bitcoin book is nothing more than a list of such banknotes: who created them, who they belong to and whether somebody has already spent them. Once a banknote goes into a payment it is gone, and new ones take its place. As of December 2026 there were about 162 million unspent banknotes in the book (technically UTXOs, unspent transaction outputs). “Owning bitcoin” then means knowing the key to some of them.
Blocks every ten minutes
Adam’s payment first travels across the network from node to node and waits for its turn. Payments are not written into the book one by one but in bulk, in packages called blocks. A block is added on average once every ten minutes. How many is that per day and per year?
One block holds thousands of payments; block number 978,859 from 5 December 2026, for example, carried 2,583 of them. That is only about four payments a second, but Bitcoin prefers the book to stay small enough for anyone to be able to hold it. Ten minutes is only a target, which the network takes care of by itself, as the part on mining describes in the section why ten minutes.
Who writes the block? According to the rules, a node accepts a block only if its hash begins with a long string of zeros. A hash cannot be predicted, so such a block can only be found by trying: miners change an auxiliary number in the block and work out the hash again and again until the zeros come out. Whoever succeeds first sends out the block, and every node checks with a single calculation that the zeros really are there. It is like a lottery in which you cannot buy a ticket but have to work one out, and it is technically called proof of work. Miners pay for the electricity for all that trying because the winner gets the reward and the fees, as we will see in the next section.
On top of that, every block records the hash of the previous one, so the blocks form a chain, the blockchain. Changing a single old payment changes the hash of its block, which then no longer begins with zeros and does not match the hash recorded in the next block either, as the part on the blockchain shows. Anyone who wanted to rewrite history would have to do the work again for that block and for all the later ones, and also catch up with the rest of the network.
So mining solves double spending too. Payments are put in order in the chain, and if Adam tried to spend the same banknote a second time, the nodes would reject the second payment. Now and then two miners find a block almost at the same moment and for a while there are two versions of the book. The nodes then trust the one with the most work behind it, as the part on the 51% attack explains in the section the longest chain wins. That is why shops wait, for larger amounts, until several more blocks follow the one with their payment.
Who issues new bitcoins
Nobody prints them. A miner who finds a block may include in it a payment to themselves out of nothing, the so-called block reward, and that is the only way new bitcoins come into being. At the start it was 50 BTC, and since April 2024 it has been 3.125 BTC. So every day this much is added:
On top of that the miner gets the fees from all the payments in the block, including Adam’s thousandth.
Every 210,000 blocks, roughly every four years, the reward is cut in half. The halving is described in Bitcoin halving, and the cap of 21 million follows from it. The first 210,000 blocks at 50 BTC gave 10.5 million, the second period half of that, 5.25 million, and the sum 10.5 + 5.25 + … approaches twice the first period, that is, 21 million. By 5 December 2026, according to the rules, about 20.12 million had been created, which is just under 96% of all that there will ever be.
Who runs Bitcoin and why people trust it
Nobody. The rules, for example “the reward is 3.125 BTC” or “outputs must not exceed inputs”, are not in anybody’s power; they are written into the program that runs on every node. And every node checks every new block itself. If a miner credits themselves with more than the reward and the fees come to, the nodes throw the block away, however big a player the miner is.
The rules can be changed only if the vast majority of the network voluntarily starts running a new program. Developers may propose a change, but nobody can order it. How such a change goes ahead and why it takes years is discussed in the part on post-quantum Bitcoin in the section soft fork or hard fork.
So why do people trust Bitcoin when nobody vouches for it? Because they do not have to trust anyone in particular. Everything can be checked, and a fraud would run into maths:
- nobody can spend other people’s coins, because a signature cannot be forged without the private key,
- nobody can rewrite history, because they would have to redo the work for all the later blocks and catch up with the rest of the network,
- nobody can manipulate the order of payments, unless they have a majority of the computing power of the whole network, that is, more than all the other miners put together, and machines with that much power would draw about 13 gigawatts, the output of some six large nuclear power stations, as the part on the 51% attack calculated.
What does not follow from this: that bitcoin has any value, or that it is safe to hold. The price depends only on how much somebody will pay for it, and maths says nothing about that. And most thefts of bitcoin do not break maths at all. The people who get robbed are usually those who give away their key or their seed phrase, twelve words from which a wallet works out its keys and which serve as its backup. If you lose your keys and have no backup, nobody will ever get at the coins again. The difference between breaking Bitcoin and robbing a user is explained in the part on Bitcoin security.
Who invented Bitcoin
Bitcoin was described by someone using the name Satoshi Nakamoto. On 31 October 2008 this person sent a message to a cryptography mailing list that began with the sentence “I’ve been working on a new electronic cash system that’s fully peer-to-peer, with no trusted third party.” Peer-to-peer means that the nodes send data directly to one another, without a central server. Satoshi attached a link to a nine-page paper.
The first block was created on 3 January 2009. Satoshi put into it a headline that the British newspaper The Times printed that day: “Chancellor on brink of second bailout for banks”. It is also a date stamp, because the block could not have been created before the headline came out, and it can be seen as a hint at what money without banks is for.
Nobody knows for certain who is behind the name Satoshi Nakamoto. In 2009 and 2010 Satoshi mined almost alone, and those coins have lain untouched ever since, with a few exceptions, as the section Satoshi’s coins describes. But Bitcoin does not need its creator; every node knows the rules.
The maths of Bitcoin
Signatures, hashes, trying numbers and everything around them get one part each in the series, and each part can be read on its own.
Where to start: Bitcoin mining and The Bitcoin address explain the most.
How Bitcoin works
- Bitcoin mining: how miners look for a hash beginning with zeros.
- The Bitcoin address: how a secret key becomes an address and a signature.
- The Bitcoin halving: why there will never be more than 21 million bitcoins.
- Blockchain: why history cannot be rewritten and how a phone checks a payment without the whole book.
- Seed phrase: why nobody will guess twelve words.
- Ethereum: the second largest network, where mining was replaced by a lottery based on a deposit.
Can Bitcoin be broken?
- Is Bitcoin secure? What its cryptography rests on and what 128 bits of security mean.
- The 51% attack: what chance an attacker has of spending money twice.
- Quantum computers and Bitcoin: which bitcoins would be at risk first.
- Bitcoin and SHA-256: what if the hash function fell.
- Post-quantum Bitcoin: how Bitcoin would defend itself against quantum computers.
The signatures on which Bitcoin rests are calculated with remainders after division. If you would like to get to know them, start with the article Modulo; all you need for it is a clock on the wall.
See also
Chapters: Bitcoin: what it is and how it works, The Bitcoin halving: why there are only 21 million bitcoins, Bitcoin mining: how proof of work works, Blockchain and the Merkle tree: how it works and why history cannot be rewritten, The Bitcoin address, private key and signature, Seed phrase: why nobody can guess the 12 words of a wallet, Ethereum: smart contracts and proof of stake, Is Bitcoin secure? What its cryptography rests on, The 51% attack: can Bitcoin be spent twice?, Quantum computers and Bitcoin: what if elliptic curves fell, Bitcoin and SHA-256: what if the hash function fell, Post-quantum Bitcoin: how Bitcoin would defend itself against quantum computers