Money no one can freezeCash for the internet, private by default
Mining

How to Mine Monero: A Plain Guide to RandomX and XMRig

How to mine Monero with a regular CPU: what RandomX is, the honest costs, solo, pool and P2Pool options, and where your mined XMR is paid.

By the MonkStash teamReviewed 11 min read
On this page

You can mine Monero with an ordinary desktop or laptop processor, because Monero's mining algorithm, RandomX, was built for CPUs. To start, you point a miner program at a pool, at P2Pool, or at your own node, and tell it which wallet address to pay. Whether that makes money is a separate question, and for most home setups the honest answer is "probably not much". This guide shows how mining works, what it really costs, and how to do it safely on hardware you own.

Key points
  • Monero mining uses the RandomX algorithm, which is designed to run well on regular CPUs.
  • You pay for electricity and wear every hour. Rewards depend on luck, network size and the XMR price, so no profit is guaranteed.
  • Three ways to mine: solo with your own node, a pool, or P2Pool. Pick by your hash power and your view on decentralisation.
  • Only mine on hardware you own or have written permission to use. Installing miners on other people's machines is illegal.

The short answer

Mining is how new Monero blocks get created. Computers around the world race to solve a puzzle, and the winner of each race adds the next block and receives the block reward. Your CPU does the guessing, a miner program manages it, and the reward is paid to the wallet address you set.

Your CPUruns a minerprogramWhere the work goesa poolP2Poolor your own node (solo)A block isfoundby luck, not by turnsYour walletaddress you setSet the payout address once, in the miner. Pools may add their own rules.
Your CPU does the work. The reward, if a block is found, goes to the address you set.

You do not need to buy special hardware to try it. You do need to accept that one home computer is a very small part of the network, so your income will be small and uneven. Treat it as a way to support the network and learn how it works, not as a salary.

Why Monero suits CPUs

Most big coins are mined on specialised chips (ASICs) that outclass a normal computer many times over. Monero chose a different path. The Monero project describes RandomX as a proof-of-work algorithm adopted from release 0.15, optimised for CPUs, with the goal of discouraging specialised hardware so mining stays spread across many people.

In plain terms, RandomX makes the computer run random programs and use a lot of memory, which is exactly what a general purpose CPU is good at and a single-purpose chip is not. That is why an everyday CPU is the right tool for Monero, and why a graphics card is not the obvious upgrade it is for some other coins.

The honest economics

Before you install anything, do the sums. You pay for every hour the machine runs. You earn only when the pool, P2Pool or your own node finds a block, and your share depends on how much of the network's total power is yours.

What you pay, for sureElectricity, every hour it runsHeat and fan noiseWear on a computer you useYour time to set it upvsWhat you might earnYour share of the network's powerBlock rewards, paid in XMRLuck, which varies a lotThe XMR price when you sellPut your own electricity price in a calculator before you start.
Costs are certain. Rewards are not. Compare them with your own numbers.

What a block pays

Monero has a permanent minimum reward called tail emission. Since the June 2022 (block 2,641,623), block rewards are fixed at 0.6 XMR or less per block (less when block size penalties apply). That means miners will keep being paid, but it also caps what any one block is worth. A new block arrives about every 2 minutes, and that reward is shared among everyone who contributed to the winning work.

How to estimate your own result

  1. Find your miner's hash rate by running its built-in benchmark. Use the number it reports, not a number from a forum.
  2. Find your power draw at the wall with a plug-in meter, and your electricity price per kWh from a bill.
  3. Enter both into our Monero mining calculator along with the current network hash rate and XMR price.
  4. Subtract your electricity cost from the estimated reward. If the answer is negative, mining is costing you money.

How long does it take to mine 1 Monero?

With one ordinary computer, usually years. Here is a worked example. On 15 October 2026 the xmrchain.net explorer showed a network hash rate of about 5.76 GH/s. Take a machine that mines at 10 kH/s (an example figure; benchmark your own).

  1. Your share of the network: 10,000 H/s divided by 5,756,000,000 H/s is about 0.00017%.
  2. XMR mined per day by everyone: about 720 blocks (one every 2 minutes) times 0.6 XMR is 432 XMR.
  3. Your expected share: 432 times 0.0000017 is about 0.00075 XMR a day.
  4. Time to 1 XMR: 1 divided by 0.00075 is roughly 1,330 days, or about 3.6 years.

That is an average, before pool fees and electricity, and it shifts whenever the network hash rate changes. Put in your own numbers with the mining calculator.

The one rule

Never mine on the assumption that it will pay for itself. Decide whether you would still do it at zero profit.

If the goal is just to own some Monero, buying it is usually simpler and cheaper than mining it.

Solo, pool or P2Pool

There are three common ways to point your miner. They differ in how often you are paid, who controls the money, and how much they help the network.

MethodPayoutsTrade-off
Solo with your own nodeRare and large, if you ever find a blockA lottery. A small machine may go very long without a payout. Most decentralised, and you need a synced node.
A centralised poolFrequent and small, set by the poolSmooth income, but the pool operator sets rules and fees, holds your balance until payout, and large pools concentrate network power.
P2PoolPaid directly in the block, when the pool finds oneNo operator and no fee, but you run your own node and the payout address is public on its side chain.

Solo mining with monerod

The Monero daemon, monerod, can mine by itself. Once it is fully synced, you run the start_mining command in its console with your address, and optionally a thread count. According to the monerod reference, the syntax is start_mining <addr> [<threads>], and the block reward goes to that address. stop_mining stops it. The matching start-up option, --start-mining, must be given a primary address, not a subaddress.

Solo mining only makes sense if you already run a node (see how to run a Monero node) and accept very uneven results.

Centralised pools

A pool combines many miners and splits each reward by contribution, so payouts are small but regular. The Monero project notes that smaller pools help keep the network decentralised, and that miners lose no revenue by choosing one. If you use a pool, pick a smaller one, read its payout rules, and check its minimum payout and fees yourself.

P2Pool

P2Pool is a pool with no central operator. It is the best fit if you care about decentralisation and are willing to run a node. Read the full P2Pool Monero guide.

XMRig, the common miner

XMRig is a free, open-source (GPL-3.0) miner that supports RandomX on CPUs, and it is the program the Monero project's pool guide is built around. Its project page lists official binaries for Windows, Linux, macOS and FreeBSD, and instructions to build it from source.

One detail to know: XMRig has a developer donation setting. The project page says the default is 1%, described as one minute in every 100, and that you can change it with the donate-level option. It is your choice; check the setting and set it to what you are comfortable with.

Setup, step by step

This is the high-level path. Each step has its own detailed instructions on the official pages linked above.

  1. Create a wallet for your mining payouts
    Make a wallet and save its recovery words offline. See how to create a Monero wallet. Using a separate wallet or a subaddress keeps mining income apart from your other funds.
  2. Choose where the work goes
    Decide between solo, a pool or P2Pool using the table above. For P2Pool or solo you need a synced node first.
  3. Get the miner from the official page
    Download XMRig from its project page or GitHub releases, verify the signature or hash, and unpack it in its own folder.
  4. Enter your address and destination
    In the miner's config, set the pool or P2Pool address and your wallet address. Some pools need the algorithm set to rx/0 if they do not announce it.
  5. Allow large memory pages if you can
    RandomX runs faster with huge pages, which need a system setting that differs on Windows and Linux. The miner's documentation explains it. Some tuning needs administrator rights.
  6. Start small and watch the temperature
    Run it, read the hash rate it reports, and monitor your CPU temperature for the first hour. Lower the thread count if it runs hot or the computer feels slow.

Where the mined XMR goes

Mined coins are paid to the wallet address you enter in the miner or pool. There is no account to create. Because mined coins start as new coins from a block reward, they take longer to unlock: the Monero project says found blocks take about 60 blocks (roughly 2 hours) to mature.

You can receive mining payouts in a MonkStash wallet. Give the miner your main address or a subaddress, and your balance will show once the wallet has scanned the payout. For solo mining with --start-mining, use a primary address. For P2Pool, follow the address rules in the P2Pool guide, since payouts are visible there. Not sure what a subaddress is? See Monero subaddresses.

Heat, noise and hardware wear

Mining keeps your CPU near full load all day, which is very different from normal use. Expect these effects:

  • Heat. Check temperatures. Poor airflow or a thin laptop can overheat, and that shortens a machine's life.
  • Noise. Fans spin up and stay up. A spare desktop in another room is far more pleasant than your daily laptop.
  • Power. The cost of electricity is the biggest bill, and it is easy to underestimate. Measure it at the wall.
  • Slowdowns. A fully loaded CPU makes everything else sluggish. Cap threads (for example, leave one or two free).

A laptop on battery or in a bag is a poor miner. A desktop with good cooling that you can leave alone is a better choice, but even then, run it supervised until you trust the temperatures.

In many places, mining with your own hardware is legal, but laws, electricity rules and tax treatment of mined coins differ. Read whether Monero is legal and check your own jurisdiction. If you mine at a rented or shared space, ask the owner first.

Keep your wallet safe too. Never type your recovery words into a miner, a pool website or a calculator. A miner only needs your public address, never your seed. See Monero phishing sites for common traps.

What to do next

If you decide to go ahead, set up a wallet first, then read the P2Pool guide to see if decentralised mining suits you, or learn how to run your own node. You can open a MonkStash wallet to receive payouts, and the address validator helps check the address you paste into your miner. For more questions, see the FAQ.

Frequently asked questions

Can you still mine Monero with a CPU?

Yes. Monero uses an algorithm called RandomX that was built for ordinary CPUs and to resist specialised mining chips. A normal desktop processor can take part, though a single machine is a tiny share of the whole network.

How long does it take to mine 1 Monero?

With one ordinary computer, usually years. At a network hash rate of about 5.76 GH/s (15 October 2026), a 10 kH/s machine earns about 0.00075 XMR a day on average, so roughly 3.6 years per XMR before fees and electricity. Your own numbers will differ.

Is Monero mining profitable?

It depends on your electricity price, your hardware and the price of XMR on the day you sell, so nobody can promise it. Many home miners earn less than their power costs. Work it out with your own numbers before you start.

How do I mine Monero on my own computer?

Create a wallet and copy its address, pick where to point your miner (a pool, P2Pool or your own node), install a miner such as XMRig from its official project page, enter your address, and start it. Then watch temperatures.

What is the best way to mine Monero?

There is no single best way. P2Pool is the most decentralised and pays you directly. A pool gives smaller, steadier payouts. Solo mining is a lottery that only suits large setups. Pick by how much hash power you have and how much you care about decentralisation.

What is XMRig?

XMRig is a free, open-source miner program that supports RandomX and other algorithms. It is the miner the Monero project's own pool-mining guide is written around. Download it only from its official project page.

Why does my antivirus flag my miner?

Miner programs are also used by malware that runs on computers without permission, so security tools often flag them even when you installed one yourself. Get it from the official source, check the signature or hash, and add a targeted exclusion for that one file if you are sure. Do not turn antivirus off.

Where does the mined Monero go?

To the wallet address you put in your miner or pool. You do not need an account anywhere. A MonkStash address or subaddress works, with the caveats about P2Pool in our P2Pool guide.

Is it legal to mine Monero?

In most places, mining on your own hardware with your own electricity is legal, but rules vary and tax can apply. Using someone else's computer or server without permission (cryptojacking) is illegal and harmful. Check your local law.

Next up

Keep reading

Mining

P2Pool Monero: How the Decentralized Mining Pool Works

10 min read
Run your own

How to Run a Monero Node (Full or Pruned), Step by Step

12 min read
The complete guide

Monero Node: Full, Pruned or Remote? The Complete Guide for 2026

21 min read
Smaller node, same job

Monero Pruned Node: What It Is and When to Use One

9 min read
Step by step

How to Create a Monero Wallet Online (Full 2026 Guide)

9 min read