Guide: How to mine Monero

​🏁 1. Prerequisites

  • 64bit Intel or AMD CPU

  • AMD/Nvidia GPU

  • ARM CPU

​🌜 2. Install and use a compatible wallet

​⛏ 3. Install mining software

CPU & GPU Mining software: xmrig

  1. Download latest miner binaries from

    ​https://github.com/xmrig/xmrig/releases​

  2. Pick a mining pool from

    ​https://miningpoolstats.stream/monero​

  3. Configure your xmrig with the configuration wizard.​

Example: Command Line to mine with CPU and AMD GPU

Windows
Linux
Mac
Windows
xmrig.exe --opencl -o de.minexmr.com:443 -u 44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A -k --tls
Linux
./xmrig --opencl -o de.minexmr.com:443 -u 44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A -k --tls
Mac
./xmrig --opencl -o de.minexmr.com:443 -u 44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A -k --tls

​📄 4. Enable Huge Pages

Enabling huge pages can boost hash rate up to 50%

Windows
Linux
Windows

Two ways to enable huge pages.

  1. Run the xmrig.exe one time with administrator and then reboot your PC.

    • Right-click xmrig.exe > select "Run as administrator"

Or,

  1. Manually change the Lock Pages in Memory setting.

    1. Press WindowsKey + R

    2. Type gpedit.msc

    3. In Local Group Policy Editor, make the following update

      1. Open Computer Configuration

      2. Open Window Settings

      3. Open Security Settings

      4. Open Local Policies

      5. Select User Rights Assignment folder

      6. Double-click Lock pages in memory

      7. Click Add User or Group

      8. Hit search

      9. Select your Windows username

Linux
sudo bash -c "echo vm.nr_hugepages=1280 >> /etc/sysctl.conf"

​✨ Tip: Boost hash rate up to 3% more by enabling 1GB huge pages. Run the following command:

sudo ./scripts/enable_1gb_pages.sh

​💰 5. FAQ

5.1 How much performance should I expect from my hardware?

CPU Mining
GPU Mining
CPU Mining

Find your potential CPU mining performance at https://monerobenchmarks.info/​

GPU Mining
  1. Visit whattomine.com​

  2. Enter the # of GPUs

  3. Press RandomX

  4. Press Calculate

5.2 How much can I expect to mine?

Enter your hash rate at whattomine.com​

5.3 When will I get paid?

When your earnings reaches the payout limit or threshold, payment is automatically sent to your address.

5.4 How can I optimize and tune my miner?

Follow the Windows tuning guide by sech1 (XMRig Dev)​