Mining cryptocurrency is like any other business: To be successful, you have to make more than you spend. That means that the money you make from selling mined coins has to be greater than the cost of running your operation and the amount that you spend on buying hardware.

While it sounds simple, there's a lot of complexity involved. You have to factor in the cost of your mining power, the cost of electricity, your hash rate, the difficulty level of mining, and more. These variables are constantly changing, not static. If you buy mining hardware operating under the assumption that the difficulty level of mining remains constant, your profitable operation today could be in the red in a year if mining difficulty accelerates. If you're mining Ravencoin, and the price per coin drops in half, you'll similarly be in a tight spot.

If you're completely new to mining, calculators like WhatToMine and CoinWarz allow you to plug in your hash rate and electricity costs to estimate your profit over a period of time. The problem is that these calculators make approximations based on fixed assumptions around the difficulty level and price of a coin today, when, in reality, these factors will constantly change over time. The only way to run a profitable mining operation is to understand what's going on under the hood.

Here's a rough equation for calculating your mining profitability, although the exact formula will vary from coin to coin:

image.png

In this article, we'll walk you through how to estimate your mining profitability following this formula. While the actual amount you earn will depend a lot on real-world factors, such as mining-pool efficiency, real hash rate, rent, property and tax costs, the goal here is to help you learn about the different factors that impact your mining operation.

How much do you earn?

The first step to calculating your mining profitability is to figure out your mining efficiency according to your hardware, or how many coins you can earn over a given period of time.You can do so by following the first part of the equation above:

image.png
  • Hashrate: The number of hashes you can produce per second
  • Difficulty: The number of hashes required to find a block on the network
  • Block reward: The reward, in cryptocurrency, for finding a block
  • Time: The time frame that you're mining over

Note that there will be variations for different cryptocurrencies. For example, with Bitcoin, the minimum number of hashes necessary to find a block is hardcoded as 2^32, and the current difficulty of finding a block is expressed as a factor of the hardcoded minimum difficulty, as difficulty x 2^32. Let's walk through an example. Say that you're mining Ethereum Classic running a GPU mining rig with four GTX 1070 GPU cards. Plugging away at Ethereum Classic's Ethash algorithm, each card gives you 32 MH/s, or 128 MH/s total. To find the number of hashes you can calculate over the course of a day, multiply the hash rate of 128 MH/s by 86,400 seconds/day. 128 MH/s x 86,400 seconds = 11,059,200 MH per day.

Each MH is a million hashes, which means that, over the course of a day, your rig can produce north of eleven trillion hashes. Difficulty represents the average number of hashes you'll need to solve a block. For Ethereum Classic, the current difficulty is 116.3578 TH or over 116 trillion hashes.To get the average number of blocks you'll mine a day,  convert your hashes per day into terrahashes and then divide by the difficulty:

11,059,200 MH per day / 10^6 = 11.059 TH per day
11.059 TH / 116 TH = 0.095 blocks per day

That means that our mining rig will mine .095 blocks of Ethereum Classic per day. Since the network currently pays out a block reward of 4 ETC, and you're solving an average of .095 blocks per day, you'll earn an average reward of .095 blocks * 4 ETC  = .38 ETC per day. At an exchange rate of $4.75 per ETC, that comes out to $1.8 per day or $54 per month.

Remember that the numbers we're using here are only a rough estimate of what you might make with specific mining hardware. Your actual hash rate will depend on your hardware configuration, and the amount you earn will depend on mining-pool efficiency. The only way to calculate your actual performance is to plug your rig in and measure it.

How much do you spend?

Running all that hardware, however, isn't free. As a miner, your main operational expenditures will be the cost of powering up your mining rig. Drilling down on your electricity costs by operating your hardware efficiently and setting up shop somewhere with cheap electricity is crucial to getting an advantage in mining.

To get the electricity cost, multiply the time you spend mining by electricity consumption in kilowatts and the cost per kilowatt hour.

image.png

Using the example from earlier, a mining rig with four GTX 1070s  GPUs would consume roughly 480 watts to power the graphics cards, plus another 50 watts for the motherboard and CPU, or 530 watts total.

Let's say that your cost of electricity is $.5 per kilowatt hour (kwh), and that you plan on running your rig 24 hours a day.To estimate the electricity you have to pay a day, convert watts into killowatt hours and multiply with the cost of electricity:

530 W = .53 KW
.53 KW x 24 hours = 12.72 KWH per day
$.05 x 15.12 kwh = $0.64 per day

Different hashing algorithms will require different amounts of electricity even with the same rig, which is something to take into consideration when you're selecting what to mine. With the same setup, mining Grin's Cuckaroo29 algorithm would take 570 watts.

570 W = .57 KW
.57 x 24 = 13.68
13.68 x $0.05 = $0.684

The GTX 1070 is a pretty energy-efficient CPU, so the difference in cost is only around $.04 per day, or $15 per year. But with less efficient cards, the currency you choose to mine can have a big impact on your operation's electricity costs.

Establish baseline profitability to identify opportunities

With crypto price swings in a downturn, it can be hard to eke out profits, as we can see from our example. Let's say you picked up your four GPU mining rig at a steep discount, for $800. Mining $1.8 of ETC per day at a cost of $.06 for electricity gives you a profit of $1.74. Assuming mining difficulty and the coin price doesn't change (which it will), it would take you 1.25 years to break even.

At this point, though, you're armed with the tools you need to calculate your baseline profitability, and you can use this knowledge to dig into more advanced mining strategies. Rather than mining a coin with a relatively high difficulty, you could for example speculatively mine new coins, which have lower hash rates and prices today, predicting that they'll be much more valuable tomorrow.

Look out for an upcoming post on the Honeyminer blog, where we'll dive into speculative mining as well as strategies for prospecting crypto.