Monero is a secure, untraceable and resilient digital currency. Read Monero vs Bitcoin: Privacy and Design Trade-offs.

Legacy: How to mine Monero on Windows or Linux (Fedora or Ubuntu)

Last updated on
⚠️ This article is outdated.
It references older mining software and pre-RandomX assumptions (e.g., CryptoNight-era tooling). For the most up-to-date Windows mining setup (XMRig config files, verification steps, and P2Pool guidance), please read our new guide: How to Mine Monero on Windows (2026): XMRig (CLI) + P2Pool + GUI Options

Monero mining is based on a proof-of-work algorithm called CryptoNight. This algorithm was especially designed to be as inmuned to ASIC miners as possible; therefore, it is feasible to mine Monero using consumer CPU and GPU hardware. This is one of the big advantages of Monero over Bitcoin; in terms of mining decentralization, anyone with a PC can start mining Monero straight away and still be able to make some profit without having to break the bank to buy expensive ASIC based mining hardware. In this tutorial, you will learn to mine Monero on Windows and on two flavours of Linux, Fedora and Ubuntu using CPU.

Visit our How to mine Monero with GPU guide if you are rather interested to mine Monero using GPU instead.

If you would like to know how much can you earn by mining Monero then use our Monero mining calculator.

Before you begin mining Monero

Follow our tutorial for creating a Monero wallet. Then choose a mining pool from the list below. For the resilience of the Monero mining network, it is advisable that we all choose different mining pools so that an unhealthy concentration does not appear at any one mining pool. The examples below use the "stratum+tcp://pool.minexmr.com:4444" address for the mineXMR.com pool. Swap that address for the address of the pool you wish to use.
Mining Pools
Mining software
xmr-stak-cpu   Best for newer Intel processors
xmr-stak-amd   Best for AMD GPUs
xmr-stak-nvidia   For NVIDIA GPUs
xmrminer   For NVIDIA GPUs
monerospelunker   Easiest way to start mining with Windows
cpuminer-multi   Linux CPU mining, alternative to xmr-stak-cpu

Mining Monero on Windows using MoneroSpelunker

MoneroSpelunker (announced here) is a Windows GUI for the popular Wolf CPU miner. Download the zip file here, and unzip it. Then run the monerospelunker.exe file and enter your Monero wallet address were you would like to be paid for your mining. Enter the mining address of the pool you have chosen, then click 'start mining'.

Mining Monero on Fedora 24 and above

Remember to replace WALLET_ADDRESS_HERE with your own Monero wallet's public address. The "-t 3" option determines how many of your CPU threads will be used for mining.

yum -y install git curl-devel libcurl glib-devel libtool git clone https://github.com/hyc/cpuminer-multi cd cpuminer-multi ./autogen.sh CFLAGS="-march=native" ./configure make sudo ./minerd -a cryptonight -o stratum+tcp://pool.minexmr.com:4444 -u WALLET_ADDRESS_HERE -p x -t 3

Mining Monero on Ubuntu 14 and above

Remember to replace WALLET_ADDRESS_HERE with your own Monero wallet's public address. The "-t 3" option determines how many of your CPU threads will be used for mining.
sudo apt-get install git libcurl4-openssl-dev build-essential libjansson-dev autotools-dev automake git clone https://github.com/hyc/cpuminer-multi cd cpuminer-multi ./autogen.sh CFLAGS="-march=native" ./configure make sudo ./minerd -a cryptonight -o stratum+tcp://pool.minexmr.com:4444 -u WALLET_ADDRESS_HERE -p x -t 3

Checking your mining earnings

To check how much Monero you have earned through your mining efforts, enter your wallet address into the "Lookup" box at the mining pool site. It will tell you how much you have earned, and how much has been paid out so far.

Note that each mining pool has a payment threshold, which saves on transaction fees by only paying out once you have mined a certain amount of Monero. Be prepared for it to take days or weeks to receive your first payment, depending on the speed of your computer hardware.

Note that with some pools, your Hash Rate will be reported as zero for most of the time, until you suddenly submit a 'share' to the pool from your mining efforts. You will temporarily see your Hash Rate reported, after which it will return to zero. This is normal for some pools, and you do not need to worry that something is not working correctly. As long as after a while you see the "total hashes submitted" figure increase, then your mining setup is working.
Latest Price
Exchange instantly
Latest articles
Sponsor
Best XMR Trading Services
Kraken   Best overall trading exchange
Bitfinex   Long-standing and reputable trading exchange
XMR Hardware Wallets
Sponsor
Monero.how Tutorials
Monero ELI5 (Explain like I'm five) - a super simple explanation of how Monero works
How Monero's privacy works
How Monero Works: Low-Level Details in Plain English
Monero Infographic
How long do Monero transactions take to confirm and unlock?
Transaction fees
Glossary of the most important Monero terms
Best Monero Wallets (2026): Trusted Picks and Clear Trade-offs
How to use the Monero GUI wallet
How to create a Monero command line wallet
How to speed up initial blockchain sync
How to send and receive Monero on the command line
How to Prove a Monero Payment (Command Line Wallet)
How to restore a command line wallet from your 25 word seed
How to verify your funds with a private view key
Best Ways to Buy, Sell, and Exchange Monero (XMR) in 2026
Set up a Monero wallet on a USB pendrive linux computer using a remote daemon
How to Mine Monero in 2026 – CPU Mining & the GPU Reality
How to Mine Monero on Windows (2026): XMRig (CLI) + P2Pool + GUI Options
Monero mining calculator
P2Pool for Monero: How It Works, Mini, and Payouts
How to run a Monero Node
Configure OpenAlias to more easily share your Monero address
How to Safely Hold Monero in Cold Storage
Create a paper wallet for secure offline storage
Display a Monero ticker on your Mac menu bar
Avoiding Google ad attacks
Trusted and untrusted sites
Send feedback, corrections or suggestions to hellomonero.how
Donations for running costs appreciated at 86oPE889B4qeJn14jkhQkPFnwRUV3Upd8TZjbU89JdWpH7NbECNHXMG67vSLCKZt1nTWK4v445cndXLNtw24WzmNGYs7WeH
Thanks to Monero developers and community members that answered questions that contributed to the content in this site: jollymort, hyc, moneromoo, smooth, jwinterm, debruyne, fluffypony, pero, needmoney90, ferretinjapan, idunk, saddam, wolf0, daveyjones, snipa, gingeropolous, markos, othe, m5m400, luigi1111, kenshi84
Disclaimer: This site contains opinion for informational purposes only and does not consitute investment advice. Information may contain errors and omissions. Use solely at your own risk. Services listed here are run by third parties and are not vetted by this site. The authors of this site and/or the authors of articles linked to from this site may have financial investments that may bias their opinions, including ownership of Monero currency. Always do your own research, form your own opinions, and never take risks with money or trust third parties without verifying their credibility. Remember to take your computer security seriously and never use a computer or phone that is at risk of infection by untrusted software that may contain malware or viruses. © Copyright 2025.