Are Bitcoin miners still making money?

Using Deephaven + AI to analyze why mining profitability just hit a wall

April 9 2026

Margaret KennedyMargaret KennedyCommunications Director @Deephaven
Mining rigs in a warehouse with half powered down, visualizing the Bitcoin mining profitability squeeze

Bitcoin mining is in a weird place right now.

Last month, Bitfarms — one of North America's largest mining operations — announced they're exiting Bitcoin mining entirely by 2027. After posting a $46 million quarterly loss, they're converting their data centers to AI infrastructure. Their CEO said the pivot could generate more income than Bitcoin mining ever did.

They're not alone. For years, the math was simple: miners process transactions, earn block rewards, and as long as the Bitcoin they earn exceeds their electricity costs, they profit. Historically, this worked beautifully. The block reward was generous, Bitcoin's price kept climbing, and miners printed money.

Two years ago, the April 2024 halving cut block rewards from 6.25 BTC to 3.125 BTC. Since then, network difficulty has hit repeated all-time highs while the block reward stays fixed. The squeeze has only gotten tighter — and now, a lot of miners are underwater.

Two years post-halving, hashprice has collapsed over 70%. Most home miners are now losing money on every hash.

Let's use Deephaven and AI to dig into the numbers: what's driving the collapse, and where's your breakeven point?

The question

Here's what we want to understand:

  • How much revenue does a miner actually earn per unit of hashpower?
  • How has that changed over time, especially post-halving?
  • At what electricity price does mining become unprofitable?

We'll answer these by connecting an AI agent to Deephaven, loading historical mining data, and asking questions in plain English. The agent writes the queries; we interpret the results.

"Are miners making money right now?" — That's the question. The AI handles the analysis.

Setting up the data layer

First, let's load historical Bitcoin mining data. We'll use data from Blockchain.com and Hashrate Index, which provide metrics like hashrate, difficulty, miner revenue, and transaction fees.

Now let's join these tables and calculate the key metric: hashprice — the revenue a miner earns per terahash per second per day. This is where Deephaven starts to pay off: the same join and calculation code works whether you're analyzing two years of history or streaming live data.

Hashprice visualization

Connecting Claude to your data

MCP (Model Context Protocol) is a standard that lets AI assistants like Claude talk directly to external tools and data sources. For us, that means Claude can see your actual Deephaven tables, write queries against them, and return results — no copy-pasting data into a chat window, no stale CSV exports.

Install the MCP bridge

On your local machine, install the Deephaven MCP package:

Configure Claude Desktop

Open Claude Desktop's configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS) and add:

The deephaven_mcp.json file points at your running Deephaven session. Restart Claude Desktop after saving — you'll see Deephaven tools appear in Claude's interface when the connection is active.

For setup with Cursor, Windsurf, or other MCP-compatible agents, see the MCP setup guide.

The conversation

"What's the current hashprice compared to pre-halving?"

You: What's the current hashprice compared to right before the halving? Show me the percentage change.

Claude: I'll compare the most recent hashprice to the value from just before the April 2024 halving.

Result:

Hashprice comparison

Hashprice has collapsed by over 70% since the halving. Miners are earning far less than they were making for the same hashpower two years ago.

"When did the halving happen and what was the immediate impact?"

You: Show me hashprice before and after the April 2024 halving. What was the immediate impact?

Claude: I'll filter to the halving window and compare the 30-day averages on each side of April 20, 2024.

Result:

Halving comparison

The halving cut miner revenue per hashpower by about 43%, which aligns with the block reward dropping from 6.25 BTC to 3.125 BTC (the gap from 50% reflects transaction fee revenue, which wasn't affected).

The halving cut hashprice by nearly half — exactly as designed.

"At what electricity price are miners losing money?"

You: If I'm running an Antminer S19 XP (140 TH/s, 3010W), at what electricity price do I start losing money?

Claude: Let me calculate the break-even electricity rate based on current hashprice.

Result:

Break-even calculation

If you're paying more than $0.08/kWh for electricity, you're losing money on every hash you compute.

The average U.S. residential electricity rate? $0.12-0.16/kWh. That means most home miners in the U.S. are underwater right now.

"Show me the trend — is this getting better or worse?"

For visualizations, you don't even need the AI. Deephaven's chart builder lets you drag columns onto axes and see results instantly — no code required. But if you want the AI to prepare filtered data for plotting:

You: Filter hashprice to the last 6 months so I can chart it.

Claude: Here's the filtered view — right-click the table in Deephaven and select Chart Builder to plot it directly.

Result:

Hashprice trend visualization

The trend is clear: hashprice has been in steady decline since the halving, with occasional spikes during fee events (like ordinals or runes mints). But the baseline keeps dropping as more hashrate comes online while the block reward stays fixed.

"What would Bitcoin's price need to be for miners to break even at $0.10/kWh?"

You: If electricity costs $0.10/kWh, what Bitcoin price would make mining profitable again?

Claude: I'll work backwards from the electricity cost to the BTC price that covers it.

Result:

MetricValue
Daily Electricity Cost$7.22
Daily BTC Earned0.0000573 BTC
Required BTC Price$126,000

At $0.10/kWh, Bitcoin would need to trade above $126,000 for this miner to break even. Current price (~$85,000) leaves a significant gap.

The bigger picture

Here's what the data tells us:

  1. The halving worked exactly as designed. Miner revenue per hashpower dropped ~43% overnight.
  2. Hashprice is at multi-year lows. Miners now earn over 70% less than pre-halving.
  3. Only efficient miners survive. You need electricity under $0.08/kWh to be profitable with current hardware.
  4. Home mining is mostly dead. Residential electricity rates make small-scale mining a losing proposition.
  5. The squeeze continues. As more hashrate comes online, the pie gets divided into smaller slices.

This is why major mining companies are pivoting to AI and high-performance computing. The economics of pure Bitcoin mining are brutal right now.

Making it real-time

The analysis above uses historical data, but here's the key insight: every query we wrote works identically on real-time data. Deephaven is data-agnostic — swap the static CSV for a live feed, and all your joins, aggregations, and calculations update automatically. No code changes required.

Here's a live version using the same free Blockchain.com API:

Open live_metrics in Deephaven and watch it tick. Every downstream table, chart, or calculation that depends on it updates automatically — no refresh button, no polling loop. That's the Deephaven difference.

Live metrics table updating in real-time

Note

The Blockchain.com API updates a few times per day, so a 5-minute refresh interval is more than sufficient. For higher-frequency sources, lower the refresh_interval_ms value accordingly.

Why this matters

Bitcoin mining is one of the most capital-intensive industries in crypto. Understanding the economics — in real-time — is critical for:

  • Miners deciding whether to expand, hold, or shut down operations.
  • Investors evaluating mining company stocks (MARA, RIOT, CLSK).
  • Traders understanding selling pressure from miners who need to liquidate.
  • Analysts forecasting network security and hash rate trends.

With Deephaven + MCP, the workflow is simple: load data once, ask questions forever. The AI queries your actual tables — not a stale export. When the data updates, so do the answers. No spreadsheets to rebuild, no dashboards to refresh manually.

The numbers don't lie: mining profitability has never been tighter. The question is whether Bitcoin's price will catch up before more miners capitulate.

Try it yourself

  1. Try it in the browser — no install required.
  2. Install Deephaven — free, takes about five minutes.
  3. Connect Claude — point your AI at your Deephaven session.
  4. Load mining data — use the Blockchain.com API or your own data sources.
  5. Start asking — one question in plain English, no queries to write.

The crypto markets may be in a weird place, but at least now you can quantify exactly how weird.

Questions? Join us on Slack.