Mining rig electricity calculator
Wattage × hours × rate. The one equation mining lives or dies by.
Your inputs
Results
Electricity is 70-90% of a mining operation's operating cost. The difference between $0.06/kWh and $0.12/kWh is the difference between profit and loss on modern hardware. This calculator computes daily, monthly, and annual electricity cost for any rig wattage at any tariff.
Enter rig wattage, daily runtime hours, and your per-kWh rate. Add a cooling/PSU efficiency factor if you want a realistic figure — real power draw is typically 5-10% higher than the nameplate watts.
The economics of Bitcoin mining are governed by one fundamental equation: revenue per terahash minus cost per terahash. As of early 2025, the Antminer S21 Hydro (335 TH/s, 5,360W) costs roughly $8,000 new. At $0.07/kWh and BTC at $90,000, it generates approximately $28/day in revenue against $9/day in electricity — $19/day gross profit, or roughly $575/month. At $0.12/kWh, electricity costs rise to $15.50/day, compressing profit to $12.50/day. At $0.16/kWh (US residential average), electricity costs $20.70/day and the miner operates at a loss.
Hash difficulty adjusts every 2,016 blocks (roughly 2 weeks) to target a 10-minute average block time. As more hash rate comes online, difficulty rises and revenue per TH/s falls. Between January 2023 and January 2025, network difficulty more than doubled — meaning a miner that was profitable at $0.10/kWh in 2023 may require $0.07/kWh or lower in 2025 to remain profitable. Mining profitability is a moving target that electricity cost must continuously beat.
Antminer S21 (3,500W) at $0.08/kWh, 24/7 operation
Hourly: 3.5 kW × $0.08 = $0.28.
Daily: $0.28 × 24 = $6.72.
Monthly (30 days): $201.60.
Annually: $2,452.80.
Same rig at $0.12 residential: $3,679/year. Gap = $1,226/year of pure profit gone.
Climate and cooling overhead
In hot climates (Texas summer, Arizona), you need additional cooling (HVAC, immersion fluid circulation) that can add 15-30% to power draw. In cold climates, the heat becomes useful — some hobby miners offset home heating costs in winter, making mining 'free' or net-positive in the coldest months. Climate matters enough that 'effective cost per kWh' varies by 20-40% just from location.
Time-of-use and demand charges
Some utilities charge higher rates at peak hours (4-9 PM) and lower rates at night (10 PM-6 AM). Miners running only during off-peak can cut blended costs by 30-50%. Demand charges (fees based on peak wattage draw in a billing cycle) can add $5-30/kW/month on commercial tariffs — an unpleasant surprise for operations not on industrial rates.
Hosting vs self-mining: the economics
Managed mining hosting facilities in states like Wyoming, Kentucky, and Texas offer electricity at $0.045-$0.075/kWh inclusive of setup, maintenance, and cooling. You ship your ASICs to the facility, pay monthly hosting fees, and receive the mining revenue minus costs. The tradeoff: you pay a premium over raw electricity cost for the operational outsourcing. A typical facility charges $0.065/kWh all-in when raw industrial power is $0.035/kWh — that $0.03/kWh spread funds their labor, facility, and cooling.
Self-mining at an industrial property requires: 240V/480V three-phase power service, adequate breaker capacity (one S21 Hydro needs 30A at 240V), proper HVAC or immersion cooling, and internet connectivity. Setup cost for a small 10-machine operation is typically $15,000-$30,000 in electrical infrastructure before buying a single ASIC. Hosting makes sense until you hit roughly 50+ machines, where the fixed cost of self-hosting infrastructure begins to amortize.
Post-halving profitability: the math reset every four years
Each Bitcoin halving cuts block reward from 3.125 BTC to 1.5625 BTC (the April 2024 halving set the current rate at 3.125 BTC). The next halving, expected in 2028, cuts to 1.5625 BTC. Every halving cuts miner revenue in half unless BTC price doubles simultaneously to compensate. Historical pattern: BTC price approximately doubled within 12-18 months of each halving, rescuing marginal miners. But the 2024 halving saw the price move precede the halving by months rather than follow it.
Calculate your post-halving break-even: divide your current electricity cost by 0.5 (since revenue halves) to see the effective electricity cost equivalent. A miner profitable at $0.08/kWh pre-halving needs BTC to double (or difficulty to drop by half) post-halving to remain at the same profit margin. Miners without low electricity costs ($0.04-$0.06/kWh) consistently fail to survive halvings — this is the mechanism that periodically cleanses high-cost miners from the network.
Tools we actually use
Affiliate disclosure: we may earn a small commission if you sign up. It never costs you extra.
Keep going
Mining electricity — frequently asked questions
What's the all-in kWh cost for a US home mining operation?
Residential average is $0.15/kWh nationally. At that price, even the most efficient modern ASICs (S21 at 17 J/TH) need BTC above ~$80K to be profitable. Home mining only makes sense at $0.08/kWh or below, which is rare outside hydro/solar-equipped areas.
How much does power cost vs the rig's purchase price matter?
Rig purchase is a one-time capex. Electricity is ongoing opex. Over a rig's 3-5 year useful life, electricity usually costs 2-4x the rig's purchase price. A $5,000 S21 with $2,500/year power consumes $7,500-$12,500 in electricity during its lifespan. Cheap power beats cheap rigs every time.
Do miners get a tax deduction for electricity?
If mining is treated as a business (Schedule C), yes — electricity is a deductible business expense, as is rig depreciation, internet, etc. If treated as hobby income, deductions are limited. Large-scale operations almost always file as businesses; home hobbyists vary. Consult a CPA to determine correct classification.
What's the most efficient mining hardware in 2025?
Bitmain Antminer S21 Hydro (17 J/TH), MicroBT WhatsMiner M66S (~18 J/TH), and Avalon A1566 Hydro (~19 J/TH). Immersion-cooled variants gain ~15-20% efficiency by running higher clocks without thermal limits. Hashrate per watt continues to improve ~15-25% per year.
Is mining on a Tesla Powerwall or home solar profitable?
Solar-powered mining is the edge case where home mining works. Marginal cost of solar kWh is near-zero once panels are paid off. Mining to soak up excess solar production (instead of exporting to grid at $0.02-$0.05/kWh) can be profitable. Net metering rules vary by state and utility; check yours before building around this model.
How do large public miners like Marathon and Riot keep costs so low?
Scale and power purchase agreements (PPAs). Marathon Digital (MARA) reported an average energy cost of $0.027/kWh in Q3 2024 — roughly one-sixth of residential rates. They achieve this through long-term PPAs with Texas grid operators (ERCOT), demand response programs (shutting down during peak grid demand in exchange for credits), and purpose-built facilities in states with cheap renewable power. They also run at 3-5 EH/s of hashrate, enabling dedicated interconnects that residential miners can't access.
What is immersion cooling and is it worth the upfront cost?
Immersion cooling submerges ASICs in a dielectric fluid (mineral oil or synthetic fluid) instead of air-cooling with fans. Benefits: 15-20% efficiency gain from stable low temperatures, near-silent operation, 50-80% longer hardware lifespan, and ability to overclock safely. Cost: $2,000-$5,000 per immersion tank (holding 6-12 ASICs), plus fluid costs of $2-4 per liter. Break-even on the efficiency gain alone takes 18-36 months at typical scales. For operations above 20 machines, immersion typically pays off; below that, air-cooling is simpler and adequate.
Digital Dashboard Hub
Track your crypto P&L, cost basis, and net worth
DDH lets you log investment positions, track net worth including crypto, and project portfolio growth — all tools, no spreadsheets. Free 14-day trial.
Track your crypto portfolio free →