How Does Crypto Mining Work? A Complete, No-Hype Guide

How Does Crypto Mining Work cover with four steps: transactions in the mempool, block header, hash against target, block reward, data as of December 3, 2026

Summarize with AI

chatgptgeminiclaudegoogleaigrokperplexity
Last Updated on: December 4, 2026

How does crypto mining work? Miners collect unconfirmed transactions into a block, then race to find a number that makes the block’s SHA-256 hash fall below a target set by the network. The winner adds the block to the blockchain and earns newly issued coins plus the transaction fees. This guide follows that process on a real Bitcoin block, then covers halving, difficulty, hardware, pools, profit math, taxes, and legal limits.

It uses data checked on December 3, 2026 and explains how crypto mining works. It does not tell you to mine or to buy any coin.

Last updated: December 3, 2026. Information verified as of December 3, 2026. Sources are listed in Sources and Methodology at the end. Prices, hashrate, difficulty, and legal status change often.

Disclosure: Swapzone is an independent aggregator, not an exchange, a miner, or a wallet provider. It compares swap offers from partner exchangers, and the partner you choose performs the swap. Swapzone earns a fixed affiliate commission from partners, at the same rate whichever one you pick. This article is general information, not financial advice.

Key takeaways

  • How crypto mining works: Bitcoin miners change one number in an 80-byte block header and hash it again and again. On average it takes about 6.2 × 10²³ hashes to find one valid block (our calculation from current difficulty).
  • Reward: The block subsidy has been 3.125 BTC since block 840,000 on April 20, 2024. The next halving is at block 1,050,000, which we estimate for April to May 2028.
  • Network size: Bitcoin’s hashrate was about 973 EH/s on December 3, 2026, below its 2026 peak of about 1,242 EH/s on February 16 (mempool.space).
  • Profit: At a Bitcoin price of $54,080, one petahash earns about $25 a day before costs. An Antminer S21 XP breaks even at about $0.078 per kWh, and an S21 Pro at about $0.070 (our calculation).
  • Time to 1 BTC: One S21 XP would take about 22 years to earn one bitcoin at today’s network size, before electricity costs. Solo, its chance of finding a block in a year is about 1.5%.
  • Tax: In the United States, mined coins count as income at their fair market value on the day you receive them.

How Does Crypto Mining Work? The Short Answer

Crypto mining is the work that keeps a proof-of-work blockchain running without a central operator. Miners choose which waiting transactions go into the next block and spend computing power to prove they did the work. The proof is cheap for everyone else to check and expensive to fake, so rewriting history costs an attacker real money.

This solves the double-spending problem that Satoshi Nakamoto’s Bitcoin paper describes: how to stop one coin being spent twice when no bank keeps the books. Miners do not decide what is valid. Every full node checks each block against the rules, and rejects it if it breaks them. Mining decides which valid block comes next.

A miner earns the block subsidy plus the fees of every transaction in the block. That is how crypto mining works on Bitcoin, and it is not limited to it: Litecoin, Bitcoin Cash, Monero, and other proof-of-work coins work in a similar way with different algorithms. Ethereum no longer uses mining.

  • Why people do it: the reward is new coins paid without buying them, and a larger network is harder to attack.
  • Why it is hard: electricity is the main cost, specialized hardware loses value quickly, and each halving cuts the reward.

How Crypto Mining Works Step by Step

Bitcoin’s developer documentation describes the same cycle that repeats about every ten minutes:

  1. A user signs a transaction and broadcasts it to the peer-to-peer network, where nodes pass it along.
  2. Valid but unconfirmed transactions wait in the mempool. Miners usually pick those that pay the highest fee per byte.
  3. A miner builds a candidate block: a list of transactions, a special first transaction (the coinbase) that pays the miner, and a header that summarizes the block.
  4. The miner hashes the header with double SHA-256 and changes the nonce, over and over, until the hash is lower than the target.
  5. The miner broadcasts the block. Nodes check the proof of work and every transaction, and accept the block if it follows the rules.
  6. The coinbase transaction pays the subsidy plus all fees to the miner’s address, and the next block builds on top of this one.

Every other miner stops working on the old candidate and starts on a new block that builds on the winner’s. That is why the chain grows one block at a time, and why a block buried under several others is hard to reverse: an attacker would have to redo all of that work and outrun the honest miners.

A Real Block Header: Block 840,000

The header is only 80 bytes, and it is the one thing miners hash. Here are the fields of block 840,000, the block that began the current 3.125 BTC era on April 20, 2024:

Block 840,000 header fields
Field Size Value
Version 4 bytes 710,926,336 (hex 2a5fe000)
Previous block hash 32 bytes 0000000000000000000172014…918494ab
Merkle root 32 bytes 031b417c3a18…d43bd7a5894f (a fingerprint of all 3,050 transactions)
Time 4 bytes 1713571767 (April 20, 2024, 00:09:27 UTC)
Bits (target) 4 bytes 0x17034219, which means the hash must be below 0000000000000000000342190000…
Nonce 4 bytes 3,932,395,645

Source: mempool.space block data. We checked the double SHA-256 of these 80 bytes ourselves and it matches the block hash.

  • The winning nonce: with 3,932,395,645 in the nonce field, the header hashes to 0000000000000000000320283a03…1cda83a5. That begins with 19 zeros, and it is below the target.
  • The same header with nonce 0: the hash is d2a270be…db86143e11, far above the target. It is rejected.
  • The same header with nonce 1: the hash is b8b87ea8…c2bdb1c98c, also rejected, and unrelated to the previous result.

A hash function gives no hint about which input comes closer, so the only strategy is to try numbers fast. A chip that makes 270 trillion attempts a second runs through all 4.3 billion possible nonces in about 16 microseconds, then changes a field in the coinbase transaction to produce a new Merkle root and starts again. Our calculation from current difficulty puts the average cost of one valid block at about 6.2 × 10²³ hashes.

Halving: Why the Block Reward Keeps Shrinking

The block subsidy halves every 210,000 blocks, roughly every four years. The fourth halving took place at block 840,000, cutting the subsidy from 6.25 BTC to 3.125 BTC. The schedule is part of Bitcoin’s rules, and the Bitcoin wiki explains that the last coin will be mined around 2140, after which only fees pay miners.

Bitcoin halvings
Halving Date Block height Subsidy after
Genesis January 3, 2009 0 50 BTC
1st November 28, 2012 210,000 25 BTC
2nd July 9, 2016 420,000 12.5 BTC
3rd May 11, 2020 630,000 6.25 BTC
4th April 20, 2024 840,000 3.125 BTC
5th (estimate) April to May 2028 1,050,000 1.5625 BTC

Sources: block timestamps from mempool.space. The 5th halving date is our estimate: on December 3, 2026, 71,397 blocks remained, which is April 11, 2028 at exactly 10 minutes per block and May 8, 2028 at the 10.5-minute pace of the current period.

Each halving changes how crypto mining works economically. It cuts the miners’ main income in half overnight, so only the more efficient operators stay profitable unless the price rises. That is one reason the price matters so much to mining. For a price view, see our Bitcoin price prediction and Bitcoin vs Gold guides.

Mining Difficulty: How the Network Keeps a 10-Minute Pace

Bitcoin aims for one block every 10 minutes. Every 2,016 blocks, nodes compare how long those blocks actually took with the 20,160 minutes they should have taken, and scale the target. If blocks came too fast, mining gets harder, and if they came too slow, it gets easier. A single adjustment cannot move the difficulty by more than a factor of four.

  • Last adjustment: at block 977,760 on November 27, 2026, difficulty rose 7.6% to about 145.1 trillion. The one before it, on November 14, fell 9.1%.
  • This period: blocks are arriving every 10.5 minutes on average so far. mempool.space estimates the next change at about −5.3%, in roughly 8 to 9 days.
  • After the 2020 halving: miners with the oldest machines switched off, and at block 631,008 on May 20, 2020 difficulty fell 6.0%, from 16.1 trillion to 15.1 trillion.

How crypto mining works on a changing network comes down to this: difficulty follows hashrate with a delay. When the price falls and weaker miners unplug, blocks slow down until the next adjustment makes mining easier for those who remain. This feedback loop is why crypto mining works without any government or company setting the pace.

How Crypto Mining Works on Hardware: CPUs, GPUs, and ASICs

Hardware decides how crypto mining works in practice, because it decides who can compete. Early Bitcoin miners used CPUs, then graphics cards, and in 2013 the first application-specific integrated circuits (ASICs) arrived. An ASIC does only one thing, double SHA-256, so it does that thing with far less energy than a general-purpose chip. Today CPUs and GPUs cannot earn money on Bitcoin.

Mining hardware for Bitcoin
Hardware Bitcoin (SHA-256) in 2026 Where it still makes sense
CPU Not viable: orders of magnitude below an ASIC, so electricity costs more than any reward Monero (RandomX)
GPU Not viable for the same reason Some coins with GPU-friendly algorithms, such as Ethereum Classic
ASIC The only practical option, from about 200 TH/s per unit for air-cooled models Bitcoin, Bitcoin Cash, and (with Scrypt chips) Litecoin and Dogecoin

Sources: Bitcoin and Monero documentation; manufacturer specifications. A Scrypt ASIC cannot mine Bitcoin, and a SHA-256 ASIC cannot mine Litecoin.

Which ASICs Are on Sale in 2026?

Efficiency, measured in joules per terahash (J/TH), is the number to compare, because electricity is the main running cost. Air-cooled machines suit a garage or a hosting site, while hydro-cooled models target industrial farms.

Bitcoin ASIC miners, 2026
Model Cooling Hashrate Power Efficiency
Antminer S21 Pro Air 234 TH/s 3,510 W 15.0 J/TH
Antminer S21 XP Air 270 TH/s 3,645 W 13.5 J/TH
Antminer S21 XP Hydro Hydro 473 TH/s 5,676 W 12.0 J/TH
Antminer U3S23H Hydro 1,160 TH/s 11,020 W 9.5 J/TH

Sources: Bitmain support page for the S21 XP; Hashrate Index hardware reviews for the others. Figures are manufacturer ratings and vary by about 3% to 5%. The U3S23H was due to start shipping in February 2026, with supply concentrated among industrial buyers.

Prices move with Bitcoin. The Hashrate Index ASIC Price Index tracks them, and our reading of late-2026 listings is roughly $15 to $19 per terahash for efficient air-cooled machines. On that range a 270 TH/s unit costs about $4,000 to $5,000, plus shipping, duties, a 220 to 240 V circuit, and a place that can handle the heat and noise. Check the ASIC Price Index before you buy.

Does Crypto Mining Work on a Phone, Laptop, or GPU?

Not for Bitcoin. A phone or laptop makes a tiny fraction of the hashes of an ASIC, many orders of magnitude fewer, and burns battery and heat for nothing. Apps that promise “free Bitcoin mining on Android” do not contribute real hashrate to the network. They are usually referral schemes, cloud-mining trials, or fraud.

  • No public blockchain address that shows payouts from the app.
  • A fee or a deposit is needed before you can withdraw an “earned” balance.
  • Earnings depend on inviting other users.
  • The developer is anonymous or has no verifiable company.
  • Ratings arrive in bursts, which suggests purchased reviews.

If you only want to try mining on a computer you own, Monero is the practical choice, as the next sections explain.

How Crypto Mining Works in a Pool vs. Solo

How crypto mining works for a solo miner is simple: the miner keeps the whole block reward but must find a block alone. A pool combines the hashrate of many miners, shares the reward in proportion to the work each one submits, and pays out smaller amounts more often. Mining in a pool reduces variance. It does not raise the expected income, and the pool charges a fee.

Take a 270 TH/s Antminer S21 XP. It holds about 2.8 × 10⁻⁷ of the network, so it expects 0.0146 blocks a year. The chance of finding at least one in 12 months is about 1.5%, and the average wait is roughly 68 years (our calculation at 973 EH/s). The prize would be about 3.1 BTC. A solo win is a lottery ticket, not a business plan, and a pool turns that lottery into a steady, small income.

Bitcoin Mining Pools: Who Finds the Blocks

A few pools find most blocks. In the seven days to December 3, 2026, mempool.space attributed 940 blocks like this:

Bitcoin blocks found by pool, last 7 days
Pool Blocks Share
Foundry USA 235 25.0%
AntPool 213 22.7%
F2Pool 153 16.3%
SpiderPool 78 8.3%
ViaBTC 76 8.1%
Luxor 50 5.3%
MARA Pool 47 5.0%
OCEAN 40 4.3%
SECPOOL 31 3.3%

Source: mempool.space, 7-day window to December 3, 2026. Attribution is based on coinbase tags and payout addresses. Smaller pools made up the remaining 1.5%. AntPool is operated by Bitmain, which also makes Antminer.

The top three pools found 64% of the blocks, but a pool is not one company. The hashrate behind each belongs to thousands of separate miners, who can switch pools at any time. Pools differ in payout model:

Pool payout models
Model How it pays Variance for you
PPS A fixed amount for each valid share, whether or not the pool finds a block Very low: the pool carries the luck
FPPS PPS plus an estimated share of transaction fees Very low
PPLNS A share of each block the pool finds, based on your shares in the last N shares Higher: tied to the pool’s luck

Sources: ViaBTC and KuCoin payout-model explainers. Fees differ by pool and by model, so compare the fee on each pool’s own page before you connect a machine.

How Long Does It Take to Mine One Bitcoin?

To see how crypto mining works for one machine, start with supply. The network issues about 450 BTC a day in subsidy (3.125 × 144 blocks), plus about 3 BTC of fees. Your share of that equals your share of the hashrate. At 973 EH/s and 453 BTC a day in total, a machine earns about 0.000000466 BTC per day for each terahash. That gives:

Time to earn one bitcoin in a pool
Machine BTC per day Time to 1 BTC
Antminer S21 Pro (234 TH/s) 0.000109 About 25 years
Antminer S21 XP (270 TH/s) 0.000126 About 22 years
Antminer S21 XP Hydro (473 TH/s) 0.000220 About 12 years

Our calculation: hashrate 972.7 EH/s, 3.125 BTC subsidy plus 3.1 BTC of fees per 144 blocks. Ignores pool fees, downtime, difficulty changes, and electricity costs.

In practice difficulty keeps rising or falling, so the true time is never fixed. But the order of magnitude is the answer to the question: a single home-sized machine earns a bitcoin in decades.

How Crypto Mining Works Beyond Bitcoin

How crypto mining works on other chains depends on the algorithm. SHA-256 coins need ASICs, and some other coins are built to be mined on ordinary computers.

Ethereum Mining After the Merge

Ethereum completed the Merge on September 15, 2022 and switched from proof of work to proof of stake. ETH can no longer be mined. Ethereum Classic still uses proof of work, and many GPU miners moved there. To take part in Ethereum’s security now, you stake ETH: running your own validator needs 32 ETH, and staking services accept smaller amounts.

Monero: CPU Mining With RandomX

Monero uses RandomX, an algorithm designed to run well on ordinary CPUs and to resist ASICs. That keeps small miners in the game, but rewards are modest and depend on your electricity price, CPU, and the XMR price. Our guide to how to mine Monero has the steps, and Monero vs Bitcoin compares the two coins.

Litecoin, Dogecoin, and Bitcoin Cash

Litecoin and Dogecoin use Scrypt, and today Scrypt ASICs mine them. They support merged mining (AuxPoW), so the same work can earn rewards on both chains through a compatible pool. Bitcoin Cash uses the same SHA-256 algorithm as Bitcoin, so the same ASICs can mine either. A Scrypt ASIC cannot mine Bitcoin.

Does Crypto Mining Work as a Business? A Profitability Breakdown

To see how crypto mining works as a business, start with hashprice: the revenue a unit of hashrate earns per day. On December 3, 2026, the network paid about 453 BTC a day, or $24.5 million at a Bitcoin price of $54,080 (CoinGecko), across 973 EH/s. That works out to about $0.0252 per terahash per day, or $25 per petahash per day. Fees were about 0.7% of that revenue.

Costs per day are power in kilowatts, times 24, times your price per kWh. Here is what it means for two air-cooled machines, before pool fees, cooling, hosting, and hardware cost:

Daily profit per machine by electricity rate
Electricity rate S21 Pro (3.51 kW) S21 XP (3.645 kW) S21 XP Hydro (5.676 kW)
Revenue per day $5.89 $6.80 $11.92
$0.04 per kWh +$2.52 +$3.30 +$6.47
$0.06 per kWh +$0.84 +$1.55 +$3.74
$0.08 per kWh −$0.84 −$0.20 +$1.02
$0.10 per kWh −$2.53 −$1.95 −$1.71
$0.12 per kWh −$4.21 −$3.70 −$4.43
Break-even rate $0.070 $0.078 $0.088

Our calculation. Assumes a Bitcoin price of $54,080, hashrate 972.7 EH/s, 100% uptime, no pool fee, constant difficulty. A 10% fall in the Bitcoin price cuts revenue and every break-even rate by 10%.

The result is plain. At $0.10 per kWh, both air-cooled machines lose money. At $0.04 the S21 XP earns about $3.30 a day. If it cost about $4,900 (about $18 per TH, our estimate), it would need around four years to pay back, if the price and difficulty stayed the same. Most of the profitable capacity sits where power is cheap and cooling is built in.

How to Invest in Crypto Mining Without Buying Hardware

There are three indirect routes, each with its own risks.

  • Cloud mining contracts: you pay for a share of someone else’s hashrate. Fraud is common. Avoid guaranteed or fixed returns, anonymous operators, referral-driven income, dashboards with no on-chain payouts, withdrawal fees or freezes, and companies with no verifiable facility.
  • Hosted mining: you buy a machine and a data center runs it for a fee. You hold the hardware risk, and the contract terms matter.
  • Mining company shares: listed miners such as Riot Platforms, CleanSpark, MARA Holdings, Hut 8, and Cipher Mining trade on public markets. Many are moving capacity to AI and high-performance computing hosting, according to S&P Global and CoinDesk, so a mining stock is no longer a pure bet on Bitcoin. Shares also fall when Bitcoin does.

This is not a recommendation to buy any of them. Each carries the risk of a total loss.

How Crypto Mining Income Works for Taxes

In the United States, here is how crypto mining works for tax purposes: the IRS treats mined coins as income. IRS Notice 2014-21 says that when a taxpayer successfully mines virtual currency, its fair market value on the date of receipt is included in gross income. If mining is a trade or business and you are not an employee, the net earnings are subject to self-employment tax. Notice 2023-34 changed only the background wording and left these answers in place.

  • Receiving coins: you record income at the dollar value on the day the coins reach you. Pool payouts are normally many small receipts.
  • Business or hobby: this changes which forms and deductions apply. Ordinary income from virtual currency goes on Schedule 1 of Form 1040 unless it is business income, according to the IRS FAQ.
  • Selling later: a gain or loss arises when you sell or swap the coins, measured against the value you already reported as income.
  • Records: keep electricity bills, hardware invoices, pool statements, and the price at each payout.

Other countries have their own rules, and exchanges may report accounts to tax authorities. A qualified tax professional can say how this applies to you.

Need to swap mined coins?

Swapzone compares offers from 18+ exchange partners and does not hold your funds. For example, you can compare BTC to USDT offers. Each partner sets its own rates, fees, and verification rules.

How crypto mining works in law differs by country. Mining is legal in most places, but energy and tax rules are changing it. Here is how some governments handle it in late 2026:

Crypto mining rules in selected countries
Country Status in late 2026
United States Legal at the federal level. Mined coins are taxable income. State and local energy rules vary.
Norway No ban confirmed in force. On March 12, 2026, parliament asked the government to bring a bill banning new data centers for crypto mining.
Sweden Legal. In September 2026 the Swedish Tax Agency ordered six Boden miners to pay about SEK 540 million in extra tax, according to press reports. The companies dispute it.
Kazakhstan Regulated. Rules approved on July 23, 2026 and effective August 1 give approved miners capped electricity prices in return for a contribution to a national crypto reserve.
China Prohibited since 2021, according to industry sources. Check current local law.

Sources: Schjødt law firm note on the Storting decision; press reports on Sweden and Kazakhstan; industry guides for China. Rules change quickly. Confirm with a local adviser before you buy hardware.

In practice, the question is often electricity policy rather than the coin itself. A farm can be legal and still blocked by a grid operator or a tax ruling.

Can Crypto Mining Be Traced?

Yes. Because of how crypto mining works on a public chain, Bitcoin’s ledger is open, so every payout and every later transfer from a mining address is visible. Addresses are pseudonymous, not anonymous: they carry no name, but an analyst can follow the movements of coins and link an address to a person when it touches a service that checks identity, such as a regulated exchange.

That means mining income should be treated as reportable, not private. If privacy matters to you for lawful reasons, read our guide to the anonymous Bitcoin wallet, and keep your keys in a wallet you control, as this wallet setup guide and our explainer on non-custodial wallets describe.

How Much Energy Does Crypto Mining Use?

Energy is the other side of how crypto mining works. The best-known academic estimate comes from the Cambridge Centre for Alternative Finance. Its Digital Mining Industry Report, published on April 28, 2025, put Bitcoin’s electricity use at about 138 TWh a year, around 0.5% of global electricity use, with 39.8 million tonnes of CO₂ equivalent. It found that 52.4% of the energy used came from sustainable sources (42.6% renewables and 9.8% nuclear), 38.2% from natural gas, and 8.9% from coal, down from 36.6% in 2022.

The study is based on a survey of 49 mining firms that cover 48% of global mining activity, so the network-wide figures are extrapolated. Other trackers give different totals. Mining firms say they use stranded, curtailed, or surplus power. The picture changes yearly, so look for the latest edition of the report.

The Bottom Line: Should You Start Mining?

Now you know how crypto mining works, and Bitcoin mining works as an industry, not a hobby. It pays when power costs about $0.07 to $0.09 per kWh or less, when hardware is the latest and efficient, and when you can run many machines. Outside those conditions, buying crypto or swapping into the asset you want is usually more practical. For a smaller experiment, mine Monero on a computer you already own.

Remember three numbers: hashprice (about $25 per petahash per day today), your electricity price, and your machine’s joules per terahash. Together they tell you in minutes whether a deal makes sense.

Sources and Methodology

Network data (block height, hashrate, difficulty, adjustments, fees, pool shares, block 840,000 header) come from the mempool.space API on December 3, 2026. Prices come from CoinGecko the same day. Hardware figures come from Bitmain and Hashrate Index. Legal and tax data come from the IRS, the Cambridge Judge Business School, and the other publications listed here. Figures marked “our calculation” are derived from those inputs with the assumptions stated under each table. This article describes publicly reported data and is not financial advice. Sources:

This information is not financial, investment, or legal advice. Cryptocurrencies are volatile and carry the risk of total loss of funds. Please do your own research (DYOR) before making any decisions. Swapzone is a non-custodial aggregator: it does not hold user funds and does not control partners’ rates or commissions, which may change without prior notice.

Frequently Asked Questions

How does crypto mining work?

Miners bundle waiting transactions into a block and hash its header with SHA-256 again and again, changing a nonce each time, until the hash is below the network target. The first valid block is added to the chain, and its miner receives the block subsidy plus transaction fees.

Is crypto mining still profitable in 2026?

It depends on electricity price, machine efficiency, and the Bitcoin price. At $54,080, we calculate break-even at about $0.070 per kWh for an Antminer S21 Pro and $0.078 for an S21 XP. At $0.10 per kWh both lose money.

How long does it take to mine 1 Bitcoin?

At today’s network size, one Antminer S21 XP would take about 22 years in a pool, before electricity costs. Solo, its chance of finding a block in a year is about 1.5%.

Is it illegal to mine cryptocurrency?

Mining is legal in most countries, including the United States, where mined coins are taxable income. Some countries restrict or ban it, and energy rules are tightening. Check local law before you buy hardware.

What equipment do you need to mine crypto?

For Bitcoin, an ASIC miner, a power supply that can handle 3,500 W or more, cooling, a pool account, and a wallet address for payouts. CPUs and GPUs cannot mine Bitcoin profitably, but a CPU can mine Monero.

Mike

Crypto analyst with a background in market research and digital asset trading. I cover market trends, exchange dynamics, and emerging blockchain projects, with a focus on turning on-chain data and industry developments into clear, actionable content. My work sits at the intersection of analytics, news, and global crypto narratives – helping readers make sense of what's happening and why it matters.