Guide · Mining on a computer

How to mine Bitcoin on a PC

By the CloudMineCrypto teamUpdated 7 min read

The short answer

You can run the software, but a PC can’t usefully mine Bitcoin today. Bitcoin is mined by ASICs, chips that do nothing but its SHA-256 hash. Next to them a computer is so slow that finding one block would take about 934,486 years on average, and the power costs far more than the expected reward. A PC can mine CPU coins like Monero, or you can mine Bitcoin for free in an app. Test your own computer below.

Key takeaways

  • Bitcoin is mined by ASICs. One Antminer S21 XP is as fast as 13,500 generous gaming PCs.
  • Bitcoin Core removed its CPU miner in 2016. Even its developers called CPU mining useless.
  • A PC mining Bitcoin spends about $1,170 on power for every $1 of expected bitcoin, even with generous figures.
  • A PC can mine CPU-friendly coins like Monero, or use a free rewards app that doesn’t touch your PC.

Your computer vs the Bitcoin network

A real 8-second SHA-256 speed test on every thread of this computer. It starts only when you press the button, stops the moment you leave the tab, and sends nothing anywhere. It isn't mining for anyone.

sha256d speed test · 4 threads

Ready

0 H/s

8 s test

Uses all 4 threads of your processor for up to 8 seconds, so the fan may spin up. Random data, no network traffic.

Assumed, not measured: more than we'd expect from a fast CPU and a top graphics card together running native code. Run the test to use your own.

Average wait to find one block

934,486 years

Mining alone, nonstop.

Chance of a block this year

1 in 935,127

For the generous PC.

One Antminer S21 XP

270 TH/s

As fast as 13,500 of those PCs, on 3,645 W.

Bitcoin network, live

983 EH/s

49 billion times the generous PC.

Its expected share of new bitcoin, per day

0.00000000921 BTC

About $0.00077 at today's price. An average: in practice, nothing.

A day of electricity for the PC

$0.90

Example: 250 W for 24 hours at $0.15 per kWh.

Generous gaming PC
20 GH/s
Antminer S21 XP
270 TH/s
Network (live)
983 EH/s
Log scale from 1 MH/s: every step to the right is ten times faster. The machine is the maker's rated spec; the network is live, updated hourly.

Can you mine Bitcoin on a PC?

Yes in theory, no in practice. Mining is a lottery where each hash is a ticket, and your chance of a block is your share of all the hashes on the network. The network does about 983 quintillion hashes a second (live). A computer does millions, or a few billion with a strong graphics card.

Definition · CPU mining

Running a coin’s proof of work on a computer’s main processor. It’s how Bitcoin started in 2009. For Bitcoin it stopped making sense once faster hardware arrived; a few newer coins are designed to keep it viable.

The test above runs in your browser, which is slower than native mining software. That’s why it also shows a generous 20 GH/s for a whole gaming PC. Even that figure puts one block about 934,486 years away.

Why can't a PC compete with an ASIC?

A CPU is built to do anything. An ASIC is built to do one thing: run SHA-256 over and over. Every transistor that isn’t needed for that is gone, so it’s both far faster and far more efficient per watt.

How the PC got priced out

  1. 2009

    CPUs

    The first Bitcoin software mined on the computer's processor. Anyone with a PC could find blocks.

  2. Soon after

    Graphics cards

    GPUs run thousands of small cores at once and left CPUs far behind.

  3. Then

    FPGAs

    Reprogrammable chips: similar speed to GPUs on much less power.

  4. 2013

    ASICs

    Chips built to do nothing but Bitcoin's SHA-256. Everything before them became obsolete.

  5. 2016

    Bitcoin Core drops its miner

    “CPU mining has been useless for a long time”, the release notes said.

Bars are an illustration of each step up, not to scale: the real gap between a CPU and a modern ASIC is millions of times. Dates from the Bitcoin Wiki and the Bitcoin Core 0.13.0 release notes.
Gaming PCAntminer S21 XP
Built forEverythingOnly Bitcoin’s SHA-256
SHA-256 speed20 GH/s (generous)270 TH/s (rated)
PowerAbout 250 W (example)3,645 W (rated)
Energy per terahash12,500 J13.5 J

Per unit of energy the ASIC does about 926 times more work, and that’s against the generous PC. Miners compete on the power bill, so the PC never wins. The story of the GPU era is in our mining rig guide, and current machines are compared in mining hardware.

What would mining Bitcoin on a PC cost you?

The honest way to judge it is a month of power against a month of expected bitcoin. Move the sliders to match your PC and your tariff:

A month of PC mining, priced

Electricity
$27.00
Expected bitcoin
$0.02

Expected bitcoin in 30 days

0.000000276 BTC

An average over many lifetimes. A real month almost surely finds nothing.

Spent on power for every $1 of expected bitcoin

$1,170

With the generous 20 GH/s figure. A real PC does worse.

Network hashrate, block reward and BTC price are live, updated hourly. Solo mining, before pool fees. Estimates, not a forecast.

The bitcoin bar barely shows up, whatever you pick. A pool would turn that tiny average into tiny, steady payouts, minus fees, but it can’t change the ratio. For how the real numbers work, see what it costs to mine a bitcoin and is Bitcoin mining profitable.

How to mine Bitcoin on a PC, step by step

If you want to try it to learn how mining works, it takes about half an hour. Treat it as an experiment, not a source of bitcoin.

  1. 1

    Get a Bitcoin address

    Any wallet you control gives you one. See Bitcoin wallets for beginners.

  2. 2

    Pick a pool

    A pool pays small shares; a solo pool is a lottery ticket. Compare them in mining pools and solo mining.

  3. 3

    Get open-source miner software

    cpuminer, for example, still supports SHA-256. Download only from the project’s own page and check what you run.

  4. 4

    Point it at the pool

    Enter the pool’s Stratum address and your Bitcoin address as the username, then start it and watch the accepted shares.

Bitcoin Core, the main Bitcoin software, can’t do this for you any more. It removed its built-in miner in version 0.13.0 in 2016, noting that CPU mining had been useless for a long time.

What can you mine on a PC instead?

A PC is still good at some proof of work, just not Bitcoin’s. Monero’s RandomX algorithm was designed around ordinary processors, and some coins are still mined with graphics cards. Litecoin and Dogecoin went the ASIC way like Bitcoin (more on those).

None of these is free money either: every option spends electricity, and coin prices move. Our guides check each one against the power bill.

Is mining bad for your computer?

Mining keeps a processor or graphics card at full load for as long as it runs. That has costs beyond the bill:

đŸ”„ Heat

It all turns into heat

Every watt your PC draws ends up warming the room. Handy in winter, rough in summer.

🌀 Wear

Fans and thermal paste work hard

Hot, constant load wears fans and dries paste. Laptops throttle and age fastest.

🩠 Malware

Fake miners are common

Some “miners” mine for someone else, on your hardware. That’s called cryptojacking.

☁ App

A mining app skips all of it

CloudMineCrypto does no hashing on your device, so your PC stays cool and quiet.

Signs of a hidden miner: fans at full speed while idle, a slow machine, and an unknown process using most of the CPU. How cryptojacking works and how to avoid it is covered in the Monero mining guide, because Monero is the coin most of it targets.

How can you mine Bitcoin without using your PC?

You mine bitcoin for free in the CloudMineCrypto app, with no hardware, no noise and no power bill. Claim a free 4.6 GH/s plan that runs 8 hours, add more from ads, games, offers and daily check-ins, and withdraw to your own wallet, Lightning included. It works in any browser, so your PC is fine too. CloudMineCrypto doesn’t mine on your device. You claim plans, and the app credits estimated rewards worked out from each plan’s hashrate and live network data.

Mine for free

  • Free plan

    4.6 GH/s for 8 h

    Claim it, and claim it again when it ends.

  • Watch ads

    7.3 GH/s for 24 h

    Each rewarded ad adds another plan.

  • Play games

    7.3 GH/s for 24 h

    Game rewards add plans on top.

  • Complete offers

    7.3 GH/s for 24 h

    Partner offers add plans too.

  • Daily check-in

    7.3 GH/s for 24 h

    Come back each day for another plan.

Optional boost

Paid plans, for more speed

Much more hashrate for longer, for the fun of it. They usually mine less than they cost, and the price is shown before you confirm.

Compare plans →

Hashrates live, updated hourly. Ads, games and offers are in the mobile apps; availability varies. Rewards are estimates and aren’t guaranteed.

BTC per hour = plan hashrate Ă· network hashrate × 6 blocks per hour × block reward
Base rate before boosts. Plan and network hashrate are live values. Rules and limits apply (reward rules).

Good to know: rewards are estimates that aren’t guaranteed. It’s a rewards app, not an investment, and a plan doesn’t give you ownership of any hardware or pool. Paid plans are an optional boost and usually mine less than they cost. Terms apply.

Frequently asked questions

Can you mine Bitcoin on a PC?

You can run the software, but a PC is so slow next to the network that it would take hundreds of thousands of years or more, on average, to find one block, and the electricity costs hundreds of times more than the expected reward. Bitcoin is mined by ASICs, chips built only for SHA-256.

Can I mine Bitcoin on a laptop?

Technically yes, practically no. A laptop is slower than a desktop and isn’t built to run at full load for days, so it gets hot and throttles. Its expected share of new bitcoin rounds to zero.

Is CPU mining still worth it?

Not for Bitcoin. Bitcoin Core removed its built-in CPU miner in 2016 because CPU mining had been useless for a long time. Some coins, like Monero, were designed so CPUs stay competitive, but that isn’t Bitcoin and it isn’t free, because of the power bill.

How long would it take a PC to mine 1 bitcoin?

Far longer than a lifetime. Even a generous gaming-PC figure would take hundreds of thousands of years to find one block alone, and a block pays about 3.125 BTC plus fees. In a pool you’d get tiny steady amounts instead, still worth less than the power.

Can I mine Bitcoin with my graphics card?

Not usefully. Graphics cards stopped being competitive for Bitcoin when ASICs arrived in 2013. A few other coins are still mined with GPUs; our GPU mining guide covers which ones.

Is the speed test on this page mining?

No. It hashes random data for a few seconds to measure your computer’s speed, then throws the results away. It doesn’t connect to any pool, doesn’t send anything, and stops when you press Stop or leave the tab.

How can I get bitcoin without mining hardware?

Use a mining rewards app. CloudMineCrypto doesn’t mine on your device. You claim plans for free with the free plan, ads, games, offers and daily check-ins, and the app credits estimated rewards worked out from each plan’s hashrate and live network data. You withdraw to your own wallet. Rewards are estimates and aren’t guaranteed.

Sources and further reading

  1. Bitcoin Core 0.13.0 release notes: removal of the internal miner · Bitcoin Core
  2. Mining (history: CPU, GPU, FPGA and ASIC mining) · Bitcoin Wiki
  3. Non-specialized hardware comparison (CPU and GPU hashrates) · Bitcoin Wiki
  4. Mining (developer guide: solo and pool mining) · Bitcoin Developer Documentation
  5. Antminer S21 XP specifications · Bitmain (manufacturer)
  6. cpuminer: a multi-threaded CPU miner for Litecoin and Bitcoin · GitHub (open source)
  7. RandomX: a proof-of-work algorithm optimized for general-purpose CPUs · GitHub (open source)

Live figures on this page come from the CloudMineCrypto API or from the public blockchain data services named next to them, refresh on a schedule, and are labelled where they appear. This guide is educational and not financial advice. CloudMineCrypto is not an investment product; rewards in the app are estimates and aren’t guaranteed.

You’ve read how it works. Now watch it happen.

Claim a free 8-hour mining plan in the CloudMineCrypto app and see your estimated BTC tick up from live network data. No hardware, no card.