Skip to main content

Cryptocurrency Mining Explained: How It Works

Cryptocurrency mining is the process by which new transactions are verified and added to a blockchain, and new coins are created as a reward. It is the engine that powers Proof of Work blockchains like Bitcoin, securing the network through computational effort and economic incentives. Mining transforms electricity into digital security — a concept that has generated both immense economic value and significant environmental debate.

This guide covers everything you need to understand about cryptocurrency mining: the technical mechanics, the hardware landscape, the economics, and the future of mining in a post-halving world.

What Is Mining?

At its simplest, mining is the process of using computers to solve cryptographic puzzles that validate blocks of transactions. The miner who solves the puzzle first gets to add the block to the blockchain and receives a reward in newly created cryptocurrency plus transaction fees.

Mining serves three critical functions:

  1. Transaction processing: Miners validate and record transactions on the blockchain.
  2. Network security: The computational effort required to mine makes it prohibitively expensive to attack the network.
  3. Currency issuance: Mining is the mechanism by which new coins enter circulation, following a predetermined issuance schedule.

The term "mining" is an analogy to gold mining — miners expend resources (electricity and hardware instead of physical labor) to extract something of value (cryptocurrency instead of gold). Like gold, the supply is limited and increasingly difficult to extract over time.

How Mining Works: The Technical Process

The Mining Algorithm

Bitcoin mining uses the SHA-256 hash algorithm. The mining process involves:

  1. Collecting transactions: The miner selects unconfirmed transactions from the mempool, prioritizing those with the highest fee rates.
  2. Constructing a block: The miner assembles the transactions into a candidate block with a header containing:
    • The previous block's hash
    • A Merkle root summarizing all included transactions
    • A timestamp
    • The current difficulty target
    • A nonce (a 32-bit number that the miner will vary)
  3. Hashing: The miner computes SHA-256(SHA-256(block_header)) — Bitcoin applies SHA-256 twice.
  4. Checking the result: If the resulting hash is numerically less than the difficulty target, the block is valid. If not, the miner changes the nonce (or other modifiable fields) and hashes again.
  5. Broadcasting: When a valid hash is found, the miner broadcasts the block to the network.

The Difficulty Target

The difficulty target is a 256-bit number that the block hash must be less than for the block to be valid. A lower target means fewer valid hashes exist, making the puzzle harder. The Bitcoin protocol adjusts difficulty every 2,016 blocks (approximately every two weeks) to maintain an average block time of 10 minutes.

If the previous 2,016 blocks were mined faster than expected (because more hash power joined the network), the difficulty increases. If they were slower, it decreases. This self-regulating mechanism ensures consistent block production regardless of the total mining power on the network.

Nonce Space and Extraonce

The nonce field in the block header is only 32 bits, providing approximately 4.3 billion possible values. Modern mining hardware can exhaust this entire space in a fraction of a second. To create additional variation, miners modify the extraNonce field within the coinbase transaction (which changes the Merkle root and thus the entire header hash) and cycle through nonce values for each extraNonce.

This effectively provides an unlimited search space, though it requires recalculating the Merkle root each time the extraNonce changes, adding a small computational overhead.

Mining Hardware Evolution

The evolution of mining hardware mirrors the increasing competitiveness of the industry.

CPU Mining (2009–2010)

When Bitcoin launched, mining could be performed on ordinary CPUs. Satoshi Nakamoto mined the first blocks on a standard desktop computer. CPU mining was viable because there were few miners and the difficulty was extremely low.

A modern CPU can compute approximately 10-50 million SHA-256 hashes per second (MH/s).

GPU Mining (2010–2013)

Miners quickly realized that graphics processing units (GPUs) — designed for parallel computation in gaming and rendering — were far more efficient at the repetitive hashing operations mining requires. A single GPU could outperform a CPU by 10-100x.

A high-end GPU can compute approximately 500 MH/s to 1.5 GH/s for SHA-256 (though GPUs are more commonly used today for non-SHA-256 algorithms like Ethash or Equihash).

FPGA Mining (2011–2013)

Field Programmable Gate Arrays (FPGAs) offered better hash rates and energy efficiency than GPUs. These programmable chips could be optimized specifically for mining operations. However, they were quickly superseded by ASICs.

ASIC Mining (2013–Present)

Application-Specific Integrated Circuits (ASICs) are chips designed exclusively for one task — in this case, computing SHA-256 hashes. ASICs represent the current state of the art for Bitcoin mining and have made all other hardware types obsolete for SHA-256 mining.

Modern ASIC specifications (2025-2026 generation):

ModelHash RatePowerEfficiency
Bitmain Antminer S21 Pro234 TH/s3,531W15.0 J/TH
MicroBT WhatsMiner M60S+212 TH/s3,360W15.8 J/TH
Canaan AvalonMiner A1566185 TH/s3,420W18.5 J/TH

A single modern ASIC performs approximately 200 trillion hash calculations per second — roughly 4 million times faster than a high-end GPU and 4 billion times faster than a CPU.

ASIC Resistance

Some cryptocurrencies deliberately use mining algorithms designed to resist ASIC optimization, keeping mining accessible to GPU miners:

  • Monero (RandomX): Uses a CPU-friendly algorithm with random program execution that is difficult to optimize with ASICs.
  • Ravencoin (KawPow): Memory-intensive algorithm favoring GPUs.
  • Ergo (Autolykos2): Memory-hard algorithm requiring significant GPU RAM.

The goal of ASIC resistance is to maintain mining decentralization by preventing hardware manufacturers from dominating the mining ecosystem.

Mining Pools

Why Pools Exist

As mining difficulty increased, solo mining became increasingly impractical for individual miners. The probability of a single miner finding a block became astronomically low — a miner with 100 TH/s would statistically find one Bitcoin block every several years. The variance (luck factor) made solo mining economically unviable for most participants.

Mining pools solve this problem by combining the hash power of many miners and distributing rewards proportionally to each miner's contribution.

How Pools Work

  1. The pool operator provides miners with work units — block header templates with different starting nonces.
  2. Each miner works on their assigned portion of the search space.
  3. Miners submit shares — partial solutions that prove they are performing work, even if the hash does not meet the full difficulty target.
  4. When any pool member finds a valid block, the pool earns the block reward.
  5. The reward is distributed among all contributing miners based on their share of the total work.

Reward Distribution Methods

  • PPS (Pay Per Share): Miners are paid a fixed amount for each valid share, regardless of whether the pool finds a block. The pool absorbs the variance risk.
  • FPPS (Full Pay Per Share): Like PPS, but also includes a proportional share of transaction fees.
  • PPLNS (Pay Per Last N Shares): Rewards are distributed based on the number of shares submitted in the window before a block is found. This discourages pool-hopping.
  • PROP (Proportional): Rewards are distributed proportionally to shares submitted since the last block.

Major Mining Pools (2026)

PoolApproximate Hash Rate Share
Foundry USA~30%
AntPool~18%
F2Pool~13%
ViaBTC~12%
Binance Pool~8%

The concentration of hash power in a few large pools is a persistent concern for Bitcoin's decentralization. However, individual miners can switch pools at any time, and pool operators do not control the miners' hardware — they coordinate work distribution but cannot unilaterally direct hash power.

Mining Economics

Revenue Sources

Bitcoin miners earn revenue from two sources:

  1. Block subsidy: Currently 3.125 BTC per block (after the April 2024 halving). This halves every 210,000 blocks (approximately every four years).
  2. Transaction fees: All fees paid by transactions included in the block. As the block subsidy decreases with each halving, transaction fees become an increasingly important revenue source.

Profitability Calculation

Mining profitability depends on several factors:

Daily Revenue = (Your Hash Rate / Network Hash Rate) x Daily Blocks x (Block Subsidy + Avg Fees)
Daily Cost = Power Consumption (kW) x Hours x Electricity Rate ($/kWh)
Daily Profit = Daily Revenue - Daily Cost

Example calculation (early 2026):

  • Hash rate: 200 TH/s (one modern ASIC)
  • Network hash rate: ~800 EH/s
  • Block subsidy: 3.125 BTC (~$300,000 at $96,000/BTC)
  • Daily blocks: 144
  • Daily revenue: (200 TH / 800,000,000 TH) x 144 x $300,000 = ~$10.80/day
  • Power consumption: 3,500W = 3.5 kW
  • Electricity cost at $0.06/kWh: 3.5 x 24 x $0.06 = $5.04/day
  • Daily profit: ~$5.76/day (before hardware amortization)

Key Economic Factors

Electricity cost: The single most important variable. Profitable mining operations locate where electricity is cheapest — typically hydroelectric regions, areas with stranded natural gas, or places with surplus renewable energy. Industrial miners often pay $0.03-$0.05/kWh.

Hardware cost and depreciation: A top-tier ASIC costs $3,000-$8,000 and has an effective lifespan of 3-5 years before it becomes unprofitable due to increasing difficulty and more efficient competitors.

Bitcoin price: Revenue is denominated in BTC but costs are in fiat currency. Price volatility dramatically affects profitability. Miners must manage their BTC holdings and fiat expenses carefully.

Network difficulty: As more miners join, difficulty increases and each miner's share of blocks decreases. Conversely, when miners leave (e.g., after a price crash), difficulty drops and remaining miners become more profitable.

Halving events: Every ~4 years, the block subsidy halves. The most recent halving (April 2024) reduced the subsidy from 6.25 to 3.125 BTC. The next halving is expected around April 2028 (1.5625 BTC). Each halving roughly doubles the Bitcoin price required for miners to maintain the same fiat revenue.

Energy Consumption and Environmental Impact

The Scale

Bitcoin mining consumes approximately 150-180 TWh of electricity annually as of 2026. This is comparable to the electricity consumption of countries like Poland or Thailand. The network's carbon footprint depends heavily on the energy sources used by miners.

The Sustainability Debate

Critics argue: Mining wastes enormous amounts of energy on a "meaningless" computation. The environmental cost is unjustifiable, particularly when proof-of-stake alternatives exist that achieve similar security with 99.95% less energy.

Proponents counter:

  • Energy source matters: Multiple studies estimate that 50-60% of Bitcoin mining uses renewable or zero-carbon energy sources, making it one of the greenest industries by energy mix.
  • Stranded energy: Mining can monetize stranded energy (hydroelectric dams in remote locations, flared natural gas at oil wells) that would otherwise be wasted.
  • Grid stabilization: Mining operations can act as flexible load — ramping up when electricity is cheap and abundant, shutting down during peak demand. This makes renewable energy projects more economically viable.
  • Security value: The energy expenditure secures a financial network worth over $1.8 trillion (Bitcoin's market cap). Traditional financial infrastructure also consumes vast amounts of energy for data centers, offices, and transportation.

Efficiency Improvements

Mining efficiency has improved dramatically over the years:

YearEfficiency (J/TH)Improvement
20131,000
201610010x
2019402.5x
2022251.6x
2025151.7x

Each generation of ASIC hardware computes more hashes per unit of energy consumed, though the improvement rate is slowing as chip manufacturing approaches physical limits.

Mining Other Cryptocurrencies

While Bitcoin dominates mining by hash power and economic value, other Proof of Work cryptocurrencies remain mineable:

GPU-Mineable Coins

After Ethereum's transition to Proof of Stake in 2022, GPU miners migrated to alternative chains:

  • Ethereum Classic (ETC): The original Ethereum chain, still using Ethash PoW.
  • Ravencoin (RVN): Uses KawPow, a memory-intensive algorithm.
  • Ergo (ERG): Uses Autolykos2, requiring significant GPU memory.
  • Kaspa (KAS): Uses kHeavyHash, initially GPU-friendly but transitioning toward ASICs.
  • Flux (FLUX): Uses ZelHash, a modified Equihash variant.

CPU-Mineable Coins

  • Monero (XMR): The most prominent CPU-mined cryptocurrency, using RandomX.

ASIC-Mined Coins

  • Litecoin (LTC): Uses Scrypt, with dedicated ASIC hardware.
  • Bitcoin Cash (BCH): Uses the same SHA-256 algorithm as Bitcoin.
  • Dogecoin (DOGE): Uses Scrypt, merge-mined with Litecoin.

The Future of Mining

Declining Block Subsidies

Bitcoin's halving schedule means the block subsidy will continue decreasing approximately every four years until the last Bitcoin is mined around the year 2140. As subsidies shrink, transaction fees must increasingly sustain miner revenue. This transition is the subject of significant debate:

  • Optimists believe that growing Bitcoin adoption will generate sufficient transaction fee revenue to sustain mining security, especially with developments like Ordinals, BRC-20 tokens, and increasing on-chain activity.
  • Pessimists worry that insufficient fee revenue could lead to reduced mining hash power and decreased network security.

Institutional Mining

Mining has evolved from a hobbyist activity to an institutional industry. Publicly traded mining companies like Marathon Digital, Riot Platforms, and CleanSpark operate massive facilities with thousands of ASICs. Institutional involvement brings economies of scale, access to capital markets, and professional risk management.

Regulatory Landscape

Mining regulations vary globally:

  • United States: Generally permissive, with some states (Texas, Wyoming) actively courting miners. New York imposed a moratorium on new PoW mining permits using fossil fuels.
  • China: Banned mining in 2021, causing a massive migration of hash power to North America, Central Asia, and other regions.
  • Russia: Passed legislation in 2024 legalizing mining in certain regions while restricting it in others.
  • Nordic countries: Debated ending reduced electricity rates for miners but largely remain mining-friendly due to abundant hydroelectric power.
SafeSeed Tool

Whether you mine Bitcoin or purchase it, securing your earnings is paramount. Use the SafeSeed Paper Wallet Creator to create a printable cold storage wallet for your mining rewards. Moving mined coins to cold storage protects them from exchange hacks, hot wallet compromises, and online threats.

FAQ

Is cryptocurrency mining still profitable in 2026?

Mining profitability depends on your electricity cost, hardware efficiency, and Bitcoin's price. At electricity costs below $0.05/kWh with modern ASIC hardware, Bitcoin mining remains profitable in early 2026. However, margins are thinner than in previous years due to the April 2024 halving and increasing network difficulty. Institutional miners with access to cheap electricity and bulk hardware pricing have a significant advantage over small-scale operations.

Can I mine Bitcoin on my home computer?

Technically, you can install mining software on any computer, but mining Bitcoin with a CPU or GPU in 2026 would earn negligible revenue — far less than the electricity cost. Bitcoin mining now requires specialized ASIC hardware costing thousands of dollars. If you want to mine at home for educational purposes or small-scale profit, consider GPU-mining alternative cryptocurrencies like Monero (CPU), Ravencoin, or Ergo (GPU).

How much does it cost to start mining Bitcoin?

A competitive home mining setup requires at least one modern ASIC ($3,000-$8,000), adequate electrical infrastructure (220V circuit, potentially upgraded panel), cooling solutions (ASICs generate significant heat and noise), and ongoing electricity costs. Total startup costs range from $5,000 to $15,000 for a single-ASIC setup. Commercial mining operations invest millions in facilities, power infrastructure, and hundreds or thousands of ASICs.

What happens when all 21 million Bitcoin are mined?

Bitcoin's supply is capped at 21 million coins, with the last fraction expected to be mined around 2140. After that, miners will earn revenue exclusively from transaction fees — no new coins will be created. The Bitcoin community expects that by 2140, sufficient on-chain transaction activity will generate adequate fee revenue to sustain mining. The transition is gradual — each halving reduces the subsidy and increases the relative importance of fees.

Does mining damage my hardware?

Running mining hardware at full capacity for extended periods generates significant heat and can reduce the lifespan of components, particularly if cooling is inadequate. ASICs are designed for continuous operation but still degrade over time. GPUs used for mining may experience reduced lifespans compared to normal use, though modern GPUs operated within thermal limits generally remain functional for years. Proper ventilation, temperature monitoring, and regular maintenance are essential.

What is merge mining?

Merge mining (or auxiliary proof of work) allows miners to mine multiple cryptocurrencies simultaneously using the same computational work. Litecoin and Dogecoin, for example, can be merge-mined because Dogecoin uses Litecoin's Scrypt proof of work. The miner submits the same proof to both chains, earning rewards from both without additional energy expenditure. Bitcoin's SHA-256 hash power also secures Namecoin, RSK, and other chains through merge mining.

What is a mining farm?

A mining farm is a large-scale facility housing hundreds or thousands of mining machines. These facilities are typically located where electricity is cheap and abundant, often in industrial buildings or purpose-built structures with specialized cooling systems. The largest mining farms consume tens of megawatts of power and invest millions in infrastructure. They benefit from economies of scale in hardware purchasing, electricity contracts, and operational efficiency.