Bitcoin & Cryptocurrency
Bitcoin Mining Explained: How New Bitcoin Gets Created
Last updated: April 14, 2026
TL;DR
Bitcoin mining is the process by which new Bitcoin enters circulation and transactions get confirmed. Miners are computers that compete to solve a mathematical puzzle roughly every ten minutes. The winner adds a new block of transactions to the blockchain and earns a Bitcoin reward. This puzzle involves hash functions — one-way mathematical fingerprints that are easy to verify but impossible to reverse-engineer. The difficulty of the puzzle adjusts automatically every two weeks so that blocks always arrive approximately every ten minutes, no matter how many miners join or leave. The reward for mining a block gets cut in half every four years — an event called the halving. This is not a guide about whether mining is profitable or what hardware to buy. This is about understanding the mechanism that makes Bitcoin work. I am Uvin Vindula, founder of uvin.lk↗, and I believe that understanding mining is the key to understanding why Bitcoin is trustworthy.
The One-Sentence Explanation
Bitcoin mining is a global competition where computers race to solve a mathematical puzzle, and the winner earns the right to record the next page of transactions and receive newly created Bitcoin as a reward.
That is it. Everything else in this article is expanding on that single sentence. If you remember nothing else, remember that: mining is a competition to write the next page of the ledger.
But if you want to understand why this competition exists, why it works, and why it is one of the most elegant inventions in the history of computer science — keep reading.
What Problem Mining Solves
Before we get into how mining works, we need to understand the problem it was built to solve. Because mining is not a feature bolted onto Bitcoin for fun. It is the core mechanism that makes the entire system possible.
The problem is simple to state: how do you create a shared record book that thousands of strangers around the world can trust, without anyone being in charge?
In the traditional banking system, this is easy. Your bank keeps your balance. You trust the bank. If there is a dispute, the bank decides. The bank is in charge.
But Bitcoin has no bank. There is no company running it. There is no CEO, no board of directors, no customer service department. So who decides which transactions are valid? Who decides the order they go in? Who stops someone from spending the same Bitcoin twice?
This is called the double-spend problem, and it was considered unsolvable for decades. If I have a digital file that represents money, what stops me from copying that file and sending it to two different people?
Mining is the answer.
Through mining, Bitcoin creates agreement among strangers. Thousands of computers around the world independently verify every transaction and agree on the state of the ledger — not because they trust each other, but because the rules of mining make cheating more expensive than playing honestly.
That is what mining really is. It is not about creating coins. That is just the incentive. Mining is about creating trust without authority.
Hash Functions — The Digital Fingerprint
To understand mining, you need to understand one concept: the hash function. Do not let the name intimidate you. It is simpler than you think.
A hash function takes any input — a word, a sentence, an entire book — and produces a fixed-length output. In Bitcoin's case, that output is a string of 64 characters (letters and numbers). This output is called a hash.
Here is what makes hash functions special:
The same input always produces the same output. If I hash the word "Bitcoin" today, tomorrow, or ten years from now, I get the exact same 64-character string. Every time.
Even a tiny change produces a completely different output. If I hash "Bitcoin" and then hash "bitcoin" (lowercase b), the two outputs look nothing alike. Not similar. Not close. Completely different. Random-looking. There is no pattern.
You cannot work backwards. If I give you the hash output, there is no mathematical way to figure out what the input was. You cannot reverse it. The only way to find the input is to guess, hash your guess, and see if it matches.
It is instant to verify. If someone claims that a certain input produces a certain hash, you can check in a fraction of a second by running the hash function yourself.
Think of it like a fingerprint. Every person has a unique fingerprint. You can easily check if a fingerprint matches a person. But you cannot look at a fingerprint and reconstruct the person's face. The fingerprint identifies, but it does not reveal.
Bitcoin uses a specific hash function called SHA-256. The "256" means the output is 256 bits long, which is the 64-character string I mentioned. Every block, every transaction, every piece of data in Bitcoin gets processed through SHA-256.
Now here is where it gets interesting. Mining is essentially a game built on top of SHA-256.
Proof of Work — The Race
Here is how a block gets mined. I am going to walk through it step by step.
Every ten minutes or so, there is a batch of unconfirmed transactions waiting to be recorded. Miners collect these transactions and bundle them into a candidate block. Think of it as a draft page for the ledger.
But you cannot just write a page and add it. You have to earn the right. And you earn it by solving a puzzle.
The puzzle works like this. Each candidate block contains the transactions, a reference to the previous block, a timestamp, and one more thing — a number called a nonce. The nonce starts at zero. The miner takes all this data, including the nonce, and runs it through the SHA-256 hash function.
The result is a 64-character hash. Now, the Bitcoin network has a rule: that hash must start with a certain number of zeros. Not one zero. Not two. At the time I am writing this, the hash must start with roughly 19 zeros. The rest of the hash can be anything — but those leading zeros are non-negotiable.
Remember what I said about hash functions? You cannot predict the output. Changing the input by even one character produces a completely different hash. So the only way to find a hash that starts with the required number of zeros is to try different nonce values. One after another. Billions of them.
Nonce 0 — hash does not start with enough zeros. Try again. Nonce 1 — no. Try again. Nonce 2 — no. Try again.
This continues, billions of times per second, across thousands of miners around the world, all racing to find a nonce that produces a valid hash.
The moment one miner finds it, they broadcast their block to the network. Every other node can verify instantly — they just take the block's data, run SHA-256 once, and check if the hash starts with the required zeros. Verification takes a fraction of a second. Finding the answer took trillions of guesses.
This asymmetry — hard to find, easy to verify — is the foundation of Bitcoin's security. It is called proof of work because the valid hash is mathematical proof that the miner did an enormous amount of computational work.
And this is the critical insight: there are no shortcuts. You cannot fake it. You cannot cheat the hash function. You either did the work or you did not, and anyone can check in an instant.
Difficulty Adjustment — Self-Regulating
Here is something that amazes me every time I think about it. Bitcoin adjusts its own difficulty.
The target is one new block every ten minutes, on average. Not eight minutes. Not twelve. Ten.
Every 2,016 blocks — which is roughly every two weeks — the Bitcoin network looks at how long those blocks actually took. If blocks came faster than ten minutes (because more miners joined and brought more computing power), the difficulty increases. The network demands more leading zeros in the hash, making the puzzle harder. If blocks came slower than ten minutes (because miners left), the difficulty decreases. Fewer leading zeros required. Easier puzzle.
This happens automatically. No human decides. No committee meets. The code does it based on measured reality.
Think about what this means. In 2009, Bitcoin was being mined on ordinary laptops. Today, it is mined by warehouses full of specialized machines processing trillions of hashes per second. The computing power devoted to Bitcoin has increased by a factor of trillions. And yet, blocks still arrive every ten minutes.
The difficulty adjustment is why. It is a thermostat for the entire network. No matter how much heat (computing power) gets added, the temperature (block time) stays the same.
This is, in my view, one of the most under-appreciated design elements of Bitcoin. It means the issuance schedule is predictable regardless of how popular mining becomes. It means the system is self-regulating without any central authority. It means Bitcoin adapts to the real world automatically.
No central bank can claim the same.
Block Rewards and the Halving
When a miner successfully adds a block, they receive a reward. This reward has two parts.
The first part is the block subsidy — brand new Bitcoin that did not exist before. This is how new Bitcoin enters circulation. Not through a bank printing it. Not through a government deciding to issue more. Through mining.
The second part is transaction fees — small amounts that users attach to their transactions to incentivize miners to include them.
Now, here is the part that makes Bitcoin fundamentally different from every government currency on Earth.
The block subsidy gets cut in half every 210,000 blocks — roughly every four years. This event is called the halving.
When Bitcoin launched in 2009, the reward was 50 Bitcoin per block. In 2012, it dropped to 25. In 2016, to 12.5. In 2020, to 6.25. In April 2024, it dropped to 3.125. The next halving will cut it to 1.5625.
This will continue until approximately the year 2140, at which point all 21 million Bitcoin will have been mined. After that, miners will earn only transaction fees. No new Bitcoin will ever be created.
Let me put this in perspective. Every government currency in history — the rupee, the dollar, the pound, the euro — has an unlimited supply. Central banks can create more whenever they decide to. Bitcoin cannot. The supply schedule was fixed on day one, written into the code, and enforced by the mining process itself.
As of today, approximately 19.7 million of the 21 million Bitcoin have already been mined. The remaining 1.3 million will trickle out over the next 116 years, with each halving making new supply scarcer.
This is why people call Bitcoin "digital gold." Not because of some marketing slogan. Because the supply is genuinely finite, provably scarce, and increasingly difficult to produce — just like gold, but with a known cap that gold does not have.
Energy Debate — The Honest Take
I am not going to pretend this topic does not exist. Bitcoin mining uses a significant amount of electricity. This is by design, not a flaw. The energy expenditure is what makes the network secure — it is the real-world cost that makes cheating prohibitively expensive.
But the conversation deserves honesty, not tribalism.
Here are the facts as I see them.
Bitcoin mining does use substantial energy — estimates in 2023 put global Bitcoin mining at roughly 120-150 terawatt-hours per year. That is comparable to a small-to-medium country.
However, context matters. The traditional banking system — with its office buildings, data centres, ATM networks, armoured vehicles, and the entire infrastructure of moving physical cash — also uses enormous amounts of energy. The question is not "does Bitcoin use energy?" but "is the energy well-spent for what it provides?"
A growing percentage of Bitcoin mining uses renewable energy. Reports from the Bitcoin Mining Council suggest over 50% of mining energy comes from sustainable sources. Miners are economically incentivised to seek the cheapest electricity, which increasingly means renewables — hydroelectric in particular.
Mining can actually stabilise power grids. Miners can power up when there is excess energy (wind blowing at night when nobody needs the power) and power down during peak demand. Several projects in Texas and other regions are doing exactly this.
I am not asking you to dismiss the energy concern. I am asking you to evaluate it with the same rigour you would apply to any other industry. And I will say this: a monetary network that nobody controls, that protects property rights for billions of people, that cannot be debased by politicians — that is worth some energy.
Mining in Sri Lanka — Is It Possible?
I get asked this constantly. People in Sri Lanka see the word "mining" and think they can set up a rig at home and earn Bitcoin. I need to be honest with you.
In 2023 and beyond, Bitcoin mining at home in Sri Lanka is not practical for most people. Here is why.
Electricity costs in Sri Lanka are high relative to income. Mining profitability depends almost entirely on your electricity cost per kilowatt-hour. Countries where mining thrives — parts of the US, Canada, Iceland, Kazakhstan — have significantly cheaper power.
The mining industry is now dominated by industrial-scale operations using specialised hardware called ASICs (Application-Specific Integrated Circuits). These machines cost thousands of dollars and are designed to do one thing only: compute SHA-256 hashes as fast as possible. A home computer cannot compete.
The regulatory environment in Sri Lanka around cryptocurrency is still evolving. While owning Bitcoin is not explicitly illegal, there is no clear framework for mining operations.
But here is what I want you to take from this section: you do not need to mine Bitcoin to benefit from it. Understanding mining helps you understand why Bitcoin is secure and trustworthy. Actually acquiring Bitcoin is done by purchasing it, not mining it, for the vast majority of people on Earth.
My goal at uvin.lk↗ has never been to turn Sri Lankans into miners. It has been to turn Sri Lankans into people who understand what Bitcoin actually is — so they can make informed decisions about their own financial future.
Why Understanding Mining Matters
You might be wondering why I wrote 2,000 words about a process that most people will never participate in. Here is why.
Mining is the reason Bitcoin works. If you do not understand mining, you are trusting Bitcoin on faith — and the entire point of Bitcoin is that you should not have to trust anyone on faith. You should be able to verify.
When someone tells you that Bitcoin is "backed by nothing," you now know that it is backed by proof of work — by the largest network of computing power ever assembled, all following the same rules, all verifiable by anyone.
When someone tells you that Bitcoin's supply could be changed, you now know that the halving schedule is enforced by the mining process itself. Changing it would require convincing the majority of the network to work against their own economic interest. It will not happen.
When someone tells you that Bitcoin wastes energy, you now have the context to evaluate that claim honestly. You understand what the energy is doing — it is securing a global, censorship-resistant monetary network. Whether that is "worth it" is a value judgement, but at least now you can make it as an informed one.
Understanding mining transforms Bitcoin from a mysterious internet thing into something you can reason about. And that is how I believe education should work — not "trust me, Bitcoin is good," but "here is how it works, decide for yourself."
Key Takeaways
- Mining is a competition. Thousands of computers race to solve a mathematical puzzle roughly every ten minutes. The winner writes the next block and earns Bitcoin.
- Hash functions are the foundation. SHA-256 produces a unique digital fingerprint for any input. Easy to verify, impossible to reverse. This is what makes the puzzle work.
- Proof of work creates trust without authority. The energy spent mining is the cost of security. Cheating costs more than honest participation.
- Difficulty adjusts automatically. Every two weeks, Bitcoin recalibrates so that blocks always arrive approximately every ten minutes, regardless of how much computing power exists.
- The halving enforces scarcity. Block rewards are cut in half every four years. Only 21 million Bitcoin will ever exist. This schedule is built into the code and enforced by mining.
- Energy use is real — and worth understanding honestly. Bitcoin mining uses significant electricity, but it is increasingly renewable, and the security it provides is the reason Bitcoin functions at all.
- You do not need to mine to benefit. Understanding the mechanism is what matters. It is the difference between trusting Bitcoin blindly and understanding why it is trustworthy.
About the Author
I am Uvin Vindula — founder of uvin.lk↗, Bitcoin educator, and the author of *The Rise of Bitcoin*. I split my time between Sri Lanka and the UK, and I have spent years teaching people how Bitcoin works in plain language, without hype and without jargon. I started this work because the 2022 Sri Lankan economic crisis showed me that people deserve to understand alternatives to a financial system that can fail them overnight. If this article helped you, explore more of my writing at uvin.lk↗ or find me on social media as @IAMUVIN.
Working on a Web3 or AI project?

Uvin Vindula
Web3 and AI engineer based in Sri Lanka and the UK. Author of The Rise of Bitcoin. Director of Blockchain and Software Solutions at Terra Labz. Founder of uvin.lk — Sri Lanka's Bitcoin education platform with 10,000+ learners.