Mining economics
Hashcost
Hashcost is what it costs in electricity to produce one PH/s of hashrate for a day.
- Formula
- J/TH × 24 × price per kWh
- Result
- Dollars per PH/s per day
- Compared with
- Hashprice
- Changes with
- Power price, mode and efficiency
- Does not change with
- Coin price or difficulty
What it means in practice
It is the cost-side mirror of hashprice: efficiency in J/TH times 24 times the power price in dollars per kWh gives dollars per PH/s per day. When hashcost is above hashprice, the machine spends more on power than it earns. Hosting fees, pool fees and repairs push the true all-in cost higher still.
Why it is the steady half
Hashprice moves every day with the market. Hashcost hardly moves at all. Two things make it, the machine’s joules per terahash and your price per kilowatt-hour, and you choose both. That makes hashcost the number to settle before you buy and the one to improve afterward.
It also lets you compare unlike machines on one scale. A small home unit and a container of hydro miners can be put side by side in dollars per PH/s per day.
Adding the rest of the site
Power at the machine is the floor. Multiply by the facility’s overhead if you pay the meter at the gate. Turn flat charges into the same unit by dividing the daily amount by the hashrate.
Example figures: a 15 J/TH machine at $0.07 per kWh has a power hashcost of 15 × 24 × 0.07 = $25.20. Cooling overhead of 4% brings it to $26.21. A flat charge of $12 a month on a 200 TH/s machine is $0.40 a day, and 0.40 / 0.2 PH/s adds $2.00. All in, $28.21 per PH/s per day.
Where the price is billed at the machine, as with a hosting rate per kilowatt-hour, the cooling line is already inside it and is left out.
One figure for a mixed fleet
Do not average the J/TH of each model. Weight it by hashrate, because a large group counts for more.
Example figures: 3 PH/s at 15 J/TH and 1 PH/s at 21.5 J/TH. (3 × 15 + 1 × 21.5) / 4 = 16.625 J/TH. At $0.07 that is 16.625 × 24 × 0.07 = $27.93 per PH/s per day. A plain average of the two models would have shown $30.66 and misjudged the fleet.
Three levers that lower it
A lower power mode cuts joules per terahash on most machines, at the cost of some hashrate. Autotuning does the same more finely. Cooler intake air trims both fan power and chip leakage.
The power price is the larger lever. One cent per kilowatt-hour on a 15 J/TH machine is 15 × 24 × 0.01 = $3.60 per PH/s per day. Compare that with what a firmware change brings before deciding where to spend effort.
Time of use is the third. If your tariff is cheaper at night, a machine that runs hard then and gently by day has a lower average hashcost than one that never changes mode.
Worked example
A 17.5 J/TH machine on $0.08 per kWh has a hashcost of 17.5 × 24 × 0.08 = $33.60 per PH/s per day. Against a hashprice of $35 that leaves $1.40 per PH/s per day before pool fees.
Example figures, not live data.
Common mistakes
- Using the chip’s efficiency from the dashboard and not the watts at the plug.
- Forgetting demand charges or taxes that the power bill lists on separate lines.
- Averaging machines without weighting them by hashrate.
Common questions
Does uptime change hashcost?
Power hashcost, no: a stopped machine uses almost nothing. Flat charges are spread over fewer working hours, so the all-in figure rises.
What is a good hashcost?
One comfortably under the present hashprice and still under it after a difficulty rise. The calculator shows both with today’s figures.
Is hashcost the cost to mine one bitcoin?
It is a step toward it. Divide hashcost in dollars by the bitcoin one PH/s mines in a day and you have the power cost per bitcoin.