I'm looking for a formula to calculate my pool earnings (PPLNS pool) like this website... Their calculation is based on:

  • network hashrate
  • pool hashrate
  • exchange rate (1XMR = ~130$)
  • fixed block reward
  • block time

and obviously:

  • hashrateobviously
  • power consumption (W)
  • power cost
  • pool fee

So is there is a function to calculate my monero earnings in a PPLNS pool? (and PPS also but not so important to me...)

Thanks in advance!!

1 Answer 1


Calculate earnings specifically for PPS or for PPLNS is pointless as the divergence is based on how often the pool find a block. If you are trying to find an average, then both payment methods equals.

So the formula you found is the best you may have to estimate your earnings.

If you want to calculate the expected earnings from a past day where you know the time window (the N * blocktime from PPLNS) and the number of block found you have to calculate earning from each block based on your average hashrate divided by the average pool hashrate on the same time window.

A basic formula would be ((your hashrate) / (the network hashrate)) * (720 blocks per day) * (block reward) = XMR/day then - (wattage cost per day)

  • And how is the page calculating the earnings? At least the average earnings... Could you please add a formula to calculate the average earnings?
    – Fipsi
    Jul 21, 2018 at 9:33
  • 1
    ((your hashrate) / (the network hashrate)) * (720 blocks per day) * (block reward) = XMR/day then - (wattage cost per day) Jul 21, 2018 at 9:37
  • OK it's much clearer now. Why 720 blocks per day? How can I calculate the blocks per day?
    – Fipsi
    Jul 21, 2018 at 9:43
  • 1
    720 blocks per day because a target blocktime of 2 minutes and 1440 minutes per day. There are 720 new blocks added each day to the blockchain. Jul 21, 2018 at 9:44
  • Thank you! That's a good formula! Getting similar results like cryptocompare.com... Thank you!
    – Fipsi
    Jul 21, 2018 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.