Skip to main content
Crypto Calculators
Mining tool

Bitcoin production cost calculator

kWh/hash × BTC price floor. The electrical cost to make one Bitcoin.

Your inputs

Results

Production cost per BTC
$38,372
energy only
BTC mined per rig/year
0.0505
Annual energy cost
$1,939
ASIC efficiency
17.5 J/TH
Block reward
3.125 BTC
Production cost is the floor Bitcoin price rarely breaks below for long. When price falls below production cost, inefficient miners capitulate and hashrate drops — which lowers difficulty and restores profitability.
Not financial advice. This tool is for educational purposes. Markets are volatile, tax law is complex, and your situation is unique. Confirm with a licensed CPA or financial advisor before acting on anything you see here.

There's a theoretical 'floor' for Bitcoin price: the cost to produce one BTC. If market price falls below production cost for a sustained period, miners turn off rigs, hashrate drops, difficulty adjusts down, surviving miners become more profitable. This dynamic has historically kept BTC price from staying below production cost for long.

Enter your rig's efficiency (J/TH), your electricity rate, and network hashrate. The calculator returns your all-in electrical cost per BTC mined.

The formula is: cost per BTC = (rig efficiency in J/TH × network hashrate in TH/s × 86,400 seconds) ÷ (daily BTC issuance × 3,600,000 joules per kWh) × electricity rate. At a network hashrate of 600 EH/s (600 million TH/s) and a blended efficiency of 30 J/TH, the network consumes roughly 1,555 GWh/day. At $0.06/kWh, that's $93M/day across all miners producing 450 BTC — $207,000 per BTC in gross electrical cost for the network average. Individual operations with modern hardware at cheap power can produce BTC for $30,000-50,000.

Production cost is the most defensible price floor analysis in Bitcoin. It's grounded in real-world energy markets, hardware specs, and on-chain data — not sentiment or technical patterns. When BTC trades at 1.5-2x production cost, miners are profitable and expand. When it trades below production cost, the weakest operators exit. The resulting difficulty adjustment (which happens every 2,016 blocks, roughly 14 days) rebalances mining economics and creates natural support. Investors who bought BTC within 20% of network production cost in late 2018 and mid-2022 both caught cycle bottoms.

Real example

Modern ASIC (Antminer S21, 17.5 J/TH) at $0.06/kWh, 600 EH/s network

Daily BTC issuance: 450 BTC (post-halving).

Network daily energy: 600 EH/s × 17.5 J/TH × 86,400s = 907 GWh/day.

Wait — industry average is ~30 J/TH blended across old/new rigs. Use that.

Daily network cost at $0.06/kWh blended: 600e18 × 30e-12 J/hash × 86,400 s × $0.06/3.6e6 J = ~$26M/day.

Per BTC cost: $26M ÷ 450 BTC = ~$58,000/BTC network average.

For your specific S21 rig at $0.06/kWh: ~$35,000/BTC.

Bottom line: Network-average production cost is around $55-65K today. If BTC sustained prices below that for months, miner capitulation would accelerate until costs rebalanced. It's a soft floor, not a hard one.

Why production cost isn't a hard price floor

Historical BTC price has dipped below production cost briefly — notably late 2018 ($3,200 vs ~$3,500 cost) and mid-2022 ($17K vs $25K cost) — triggering miner capitulation and hashrate drops. The cost curve adjusts within weeks as inefficient miners power down. So production cost sets a 'soft floor' that holds over 3-6 month windows but can be violated in panic sells.

Operational cost versus all-in cost: what miners actually track

Electrical cost is the largest line item but not the only one. A fully loaded production cost includes: electricity (60-70% of total for most operations), hardware depreciation (10-20%), hosting/colocation fees (5-15% if not owner-operated), internet and monitoring infrastructure (1-2%), and labor (2-5% for smaller operations, lower for automated industrial facilities). When public miners report 'cost to mine one BTC' in earnings calls, they're usually citing all-in sustaining cost (AISC) rather than pure electrical cost — Marathon's reported AISC in Q1 2025 was approximately $52,000-58,000/BTC, versus ~$35,000 in pure electricity.

Hardware depreciation is the second-largest variable and the most misunderstood. An Antminer S21 at $3,500 retail price has a useful mining life of 3-5 years before becoming unprofitable at $0.06-0.08/kWh electricity rates. Straight-line depreciation on a 3-year life adds roughly $3.20/day to mining cost per unit. At 0.00025 BTC/day production on a single S21 (at 600 EH/s network), that's $12,800 in depreciation cost per BTC mined from a single machine's depreciation alone. Amortize hardware cost over your expected unit production before calculating breakeven.

Power Purchase Agreements (PPAs) lock in electricity rates for 1-10 years and are essential for large-scale operations. Marathon Digital's PPA portfolio averages around $0.04-0.05/kWh across its U.S. facilities. At that rate versus retail miners at $0.08-0.12/kWh, Marathon's electrical cost per BTC is 40-65% lower than home miners. Institutional miners aren't just bigger — they have structural cost advantages that individual miners can't replicate without similar scale and negotiating power.

Reading on-chain data to estimate network production cost

You don't need internal miner data to estimate production cost — on-chain metrics give most of what you need. Network hashrate (available on Blockchain.com or Glassnode in real-time) tells you total computational power. Combine with an assumed average efficiency (30 J/TH blended in 2025, improving to ~25 J/TH as S21s replace S19s over 2025-2026) and an assumed average electricity rate ($0.055/kWh is Cambridge's 2024 global average estimate) to get network energy consumption.

Glassnode's 'Thermocap' and 'Realized Cap' metrics extend this analysis. Thermocap is the cumulative dollar value of all BTC issued at the production cost of the day — it approximates the total capital invested in Bitcoin by miners since genesis. When market cap divided by Thermocap (the 'Market-to-Thermocap ratio') is above 32, it has historically coincided with cycle tops; below 4 marks cycle bottoms. At BTC $65,000 with a current Thermocap of roughly $50B, the ratio is ~26 — elevated but not at peak territory by historical measures.

Miner revenue data (transaction fees + block subsidy, reported daily by Glassnode and Blockchain.com) tells you the aggregate dollar income of all miners. When miner revenue stays high and hashrate is growing, miners are profitable and expanding — bullish. When miner revenue drops below estimated production cost for 4+ weeks, capitulation risk rises sharply and the hash ribbon signal (described in the halvingCountdown section) becomes relevant for market timing.

Home mining viability in 2025 and beyond

Home mining a single Antminer S21 (200 TH/s, 3,500W) at $0.10/kWh residential electricity generates roughly $9/day in BTC at $65,000 BTC price, against $8.40/day in electricity cost — a $0.60/day margin before hardware depreciation and internet costs. Adding $1/day in depreciation (3-year life) and $0.20/day in miscellaneous costs puts you at a $0.60 daily loss. Home mining is unprofitable at $0.10/kWh unless BTC is above ~$72,000.

The economics improve sharply with lower electricity rates. At $0.04/kWh (achievable with solar, off-peak industrial rates, or propane/gas co-gen), the same S21 costs $3.36/day in power — a $5.64/day margin against $65K BTC, or $2,059/year gross. After depreciation, that's roughly $1,695/year net — a 48% annual return on a $3,500 hardware investment if you keep it running for 3 years and BTC stays above $65K. The electricity rate is the entire business model for small-scale miners.

Alternative energy sources are where individual miners can compete. Flared gas generators (common in oil-producing states: Texas, North Dakota, Wyoming) convert stranded methane that would otherwise be burned into electricity at near-zero cost. Several companies (Upstream Data, EZ Blockchain) offer turnkey flared-gas mining setups for small operators. Residential solar with battery storage can reduce effective mining electricity cost to $0.02-0.04/kWh during daylight hours. The home miner who thinks creatively about energy sourcing outcompetes the miner who just plugs into the grid at $0.12/kWh.

Recommended partners

Tools we actually use

Affiliate disclosure: we may earn a small commission if you sign up. It never costs you extra.

Related tools

Keep going

BTC production cost — frequently asked questions

What's the efficient frontier for BTC mining hardware?

As of 2025: Bitmain S21 Hydro (17 J/TH), MicroBT M66S (18 J/TH), and Avalon A1566 (~19 J/TH). Industry average is ~30 J/TH because fleets still run 2020-2022 gear (S19 XP at 21.5 J/TH, older S19 at 34 J/TH). A 5-year-old rig uses 2-3x the power of a new one for the same output.

How does production cost change between halvings?

Instantly doubles on halving day (fewer BTC per unit energy spent). Then settles down over 3-12 months as difficulty drops (miners capitulate), hashrate redistributes to efficient operators, and BTC price adjusts. Post-April 2024 halving, network production cost jumped from ~$28K to ~$55K+ within weeks.

Why do some miners operate at apparent losses?

Several reasons: (1) hoarding BTC at cost basis below market; (2) vertically integrated operations with own power plants (true marginal cost near zero); (3) flared-gas or stranded-power arrangements at negative-cost electricity; (4) locked multi-year power contracts signed in cheaper times; (5) just accepting short-term losses waiting for BTC price recovery.

Can I use production cost to time the market?

Partially. Historically, BTC trading below network production cost has been a low-risk buy window (contrarian bottom signal). BTC trading 3-5x above production cost (current level) hasn't historically been sustainable. Use as one signal among many — not a primary trading thesis.

What's the cheapest electricity a miner can find?

Flared gas in West Texas or North Dakota can be <$0.01/kWh (effectively negative for the gas producer). Paraguay, Ethiopia, and Laos have hydro-fed mining at $0.025-$0.04/kWh. China pre-ban had sub-$0.03 hydro in Sichuan. Most large-scale US operations target $0.04-$0.06/kWh all-in with PPAs and curtailment arbitrage.

What happens to Bitcoin's security if the block subsidy becomes negligible?

Post-2032, block rewards drop to 0.78 BTC — about $50,000/block at $65K BTC, or $7,200/block at the 0.78 BTC subsidy. Transaction fees must make up the difference. During the 2023 Ordinals and BRC-20 boom, fees briefly exceeded block subsidy on individual blocks. For Bitcoin's long-term security, fee revenue needs to scale to $10M+/day — achievable with widespread Lightning settlement, institutional on-chain activity, and ordinals/inscription demand, but not guaranteed.

How do I calculate the break-even BTC price for my mining operation?

Break-even price = (total daily operating cost in USD) ÷ (daily BTC produced). Daily operating cost includes: electricity (rig wattage × 24 hours × kWh rate), hardware depreciation (purchase price ÷ expected days of operation), hosting fees if applicable, and any maintenance/internet costs. Daily BTC produced = your rig's hashrate (TH/s) ÷ network hashrate (TH/s) × 144 blocks × 3.125 BTC per block. If your break-even is $55,000 and BTC is at $65,000, you have an 18% margin before adding depreciation.

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 →
Part of the Digital Dashboard Hub network
Powered byDigital Dashboard Hub— 250+ free tools

Calculators, trackers, and planners for creators, business, and wellness — all in one place.

Explore all 250+ tools →