Home › Templates › Crypto mining profitability spreadsheet
Crypto Mining Profitability Spreadsheet: Bitcoin Mining Calculator for Excel
A free Bitcoin mining profitability spreadsheet for Excel and Google Sheets. Type the network difficulty (or hashrate), block height, fees per block, BTC price, pool fee and your electricity rate, then list up to 20 machines. The sheet works out expected BTC per day, revenue, power cost, net profit, J/TH, break-even electricity price, break-even BTC price and hardware payback. A sensitivity grid and a 24-month projection show what rising difficulty and the next halving do to the numbers.
Use it in Google Sheets: choose File → Import → Upload in Sheets and pick the .xlsx, or upload it to Google Drive and open it with Google Sheets. No sign-up, no email gate, no live data feed: you type today's difficulty, fees and price from a source you trust.
| Machine (fictional) | Qty | TH/s each | W each | J/TH | $/kWh | BTC/day after pool fee | Revenue/day | Power + hosting/day | Net/day | Break-even $/kWh | Break-even BTC price | Payback |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Example miner A | 10 | 200 | 3,500 | 17.5 | 0.060 | 0.00080316 | $72.28 | $48.89 | $23.40 | $0.0887 | $60,870 | 598 days |
| Example miner B (older) | 6 | 110 | 3,250 | 29.5 | 0.060 | 0.00026504 | $23.85 | $27.24 | −$3.38 | $0.0525 | $102,767 | none |
| Example miner C (hosted) | 4 | 260 | 3,900 | 15.0 | 0.075 | 0.00041764 | $37.59 | $30.53 | $7.06 | $0.0944 | $73,090 | 1,473 days |
| Fleet (20 machines) | 20 | 3,700 | 70.1 kW total | 18.9 | mix | 0.00148584 | $133.73 | $106.65 | $27.07 | $0.0799 | $71,778 | 957 days |
How Bitcoin mining earns money
Miners compete to find the next block. The winner collects the block reward, which the Bitcoin developer glossary defines as "the sum of the block subsidy (newly available satoshis) plus the transactions fees paid by transactions included in the block" (developer.bitcoin.org glossary). Your expected share of those rewards equals your share of the network's hashing work.
Three protocol rules set the pace:
- About 10 minutes per block. bitcoin.org: "New blocks are added to the blockchain approximately every 10 minutes on average, but block discovery is probabilistic" (bitcoin.org FAQ). Bitcoin Core's main network uses a target spacing of
10 * 60seconds (chainparams.cpp), so 86,400 ÷ 600 = 144 blocks per day on average. - Difficulty adjusts every 2,016 blocks. "Every 2,016 blocks, the network uses timestamps stored in each block header to calculate the number of seconds elapsed between generation of the first and last of those last 2,016 blocks. The ideal value is 1,209,600 seconds (two weeks)." (Bitcoin developer guide: Block Chain) More hashrate on the network means a higher difficulty and fewer coins per TH/s.
- The subsidy halves every 210,000 blocks. Bitcoin Core's
GetBlockSubsidystarts at50 * COINand shifts it right once per halving, with the comment "Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years." (Bitcoin Core validation.cpp)
Pools smooth the randomness. The developer guide explains that in pooled mining "The mining pool pays out a portion of these proceeds to individual miners based on how many shares they generated" (Bitcoin developer guide: Mining). The pool keeps a fee; the spreadsheet takes it off the top.
The formulas
Expected BTC per day
BTC/day = hashrate (H/s) × 86,400 ÷ (difficulty × 2^32) × (subsidy + average fees per block)
Difficulty × 2^32 is the average number of hashes needed to find one block. With hashrate in TH/s and difficulty in T (trillions), the 10^12s cancel: 86400/(difficulty_T*2^32) is the expected number of blocks one TH/s wins per day. At an illustrative 150 T that is 1.3411e-07. The exact figure uses 2^48 ÷ 65,535 instead of 2^32, a difference of 0.0015%, so the shorter form is used.
The same answer from the hashrate side:
BTC/day = (your TH/s ÷ network TH/s) × 144 blocks × (subsidy + fees)
Network hashrate is an estimate made from difficulty and block times, which is why the sheet defaults to the difficulty method and shows the implied network hashrate (difficulty × 2^32 ÷ 600) as a cross-check: 150 T implies 1,073.7 EH/s. The check script confirms both methods give the same BTC per day when the inputs match.
Costs, profit and break-even
| Result | Formula |
|---|---|
| Efficiency | J/TH = watts ÷ TH/s |
| Electricity per day | watts × 24 ÷ 1,000 × $/kWh × uptime |
| Revenue per day | BTC/day × uptime × (1 − pool fee) × BTC price |
| Net profit per day | revenue − electricity − hosting |
| Break-even electricity | (revenue − hosting) ÷ kWh per day |
| Break-even BTC price | (electricity + hosting) ÷ BTC per day after pool fee |
| Payback days | hardware cost ÷ net profit per day (only if net > 0 and nothing changes) |
What's inside the spreadsheet
| Tab | What it does |
|---|---|
| Start here | Instructions, formulas, colour key, limits, sources. States that the example data is fictional. |
| Inputs | Method (difficulty or network hashrate), difficulty in T, network EH/s, block height, optional subsidy override, fees per block, BTC price, pool fee, uptime, default $/kWh, blocks per day, monthly difficulty growth and price change, and a switch-off rule. Derived cells show the subsidy, block reward, hashprice, implied hashrate and days to the next halving, plus an Inputs check. |
| Miners | 20 empty rows: name, quantity, TH/s, wall watts, price paid, optional own $/kWh and hosting fee. 18 formula columns per row and a fleet total. |
| Example | The Inputs and Miners layout filled with illustrative round numbers and 3 fictional machines. |
| Sensitivity | Net profit per day at 7 BTC prices × 8 electricity prices, with the break-even $/kWh for each price, and a BTC price × difficulty-change grid. For your fleet and the example. |
| Dashboard | Your fleet next to the example: 28 measures, a 24-month projection for each with halvings and difficulty growth, and 3 charts. |
How to use it
- Open the Inputs tab. Keep the method on Difficulty and type the current difficulty in T. A node returns it with
bitcoin-cli getdifficulty; divide by 1,000,000,000,000. Block explorers show the same number. - Type the current block height. The sheet then works out the subsidy (3.125 BTC until block 1,049,999) and the days to the next halving.
- Type the average fees per block in BTC, the BTC price, your pool's fee and your uptime.
- Type your all-in electricity price per kWh from your bill, including delivery charges.
- Open Miners. Add one row per model: quantity, TH/s, power at the wall in watts, and what you paid. A hosted site can have its own $/kWh and a monthly fee per machine.
- Check Inputs!C21 and the Row status column. Only "OK" rows count; other text names the fix.
- Read the Dashboard, then test prices, electricity and difficulty on the Sensitivity tab. Change the growth assumptions in Inputs rows 16–18 to stress the projection.
The formulas in the file
Row 6 of the Miners tab. Every result is wrapped in IF($J6="OK", …, "") so blank rows stay empty. No macros, no array formulas, no XLOOKUP or LET.
| Result | Formula in the file |
|---|---|
| Block subsidy (Inputs!C22) | =IF(ISNUMBER($B$9),$B$9,IF(ISNUMBER($B$8),50/2^INT($B$8/210000),3.125)) |
| Blocks won per day by 1 TH/s (C24) | =IF($C$5="Difficulty",86400/($C$6*2^32),$C$15/($C$7*1000000)) |
| Total TH/s, kW, J/TH | =$C6*$D6, =$C6*$E6/1000, =$E6/$D6 |
| BTC/day before pool fee | =$K6*Inputs!$C$25*Inputs!$C$13 |
| Revenue $/day | =$P6*Inputs!$C$11 where P = BTC/day − pool fee |
| Electricity $/day | =$L6*24*Inputs!$C$13*$R6 |
| Hosting $/day | =$C6*N($H6)*12/365 |
| Net profit $/day | =$Q6-$S6-$T6 |
| Break-even $/kWh | =IF($L6>0,($Q6-$T6)/($L6*24*Inputs!$C$13),"") |
| Break-even BTC price | =IF($P6>0,($S6+$T6)/$P6,"") |
| Payback days | =IF($Z6=0,"",IF($U6>0,$Z6/$U6,"No payback: net <= 0")) |
| Projection subsidy (Dashboard) | =50/2^INT($B46/210000), where B = height + 144 × 365/12 × (month − 0.5) |
Worked example: Example miner A
Fictional: 10 machines of 200 TH/s at 3,500 W, $1,400 each, on the default $0.06/kWh. Illustrative network: difficulty 150 T, subsidy 3.125 BTC + 0.025 BTC fees, BTC at $90,000, 2% pool fee, 97% uptime.
| Step | Calculation | Result |
|---|---|---|
| Total hashrate | 10 × 200 TH/s | 2,000 TH/s |
| Efficiency | 3,500 W ÷ 200 TH/s | 17.5 J/TH |
| BTC per TH/s per day | 86,400 ÷ (150 × 2^32) × 3.15 | 0.0000004224 |
| BTC per day after uptime | 2,000 × 0.0000004224 × 97% | 0.00081955 |
| After 2% pool fee | × 0.98 | 0.00080316 |
| Revenue | × $90,000 | $72.28 |
| Electricity | 35 kW × 24 × 97% × $0.06 | $48.89 |
| Net profit | $72.28 − $48.89 | $23.40 |
| Break-even electricity | $72.28 ÷ (35 × 24 × 97%) kWh | $0.0887/kWh |
| Break-even BTC price | $48.89 ÷ 0.00080316 | $60,870 |
| Payback | $14,000 ÷ $23.40 | 598 days |
Miner B is the older model at 29.5 J/TH: it loses $3.38 a day at $0.06/kWh and needs $0.0525/kWh or less to break even. Miner C is more efficient (15 J/TH) but pays $0.075/kWh plus $25 a month per machine of hosting, so it nets $7.06 a day.
Sensitivity: BTC price × electricity price
Fleet net profit per day for the example, one electricity price for every machine (the Sensitivity tab; yellow cells can be changed):
| BTC price ↓ / $ per kWh → | $0.03 | $0.04 | $0.05 | $0.06 | $0.07 | $0.08 | $0.10 | $0.12 | Break-even $/kWh |
|---|---|---|---|---|---|---|---|---|---|
| 50% = $45,000 | $15 | −$2 | −$18 | −$34 | −$51 | −$67 | −$100 | −$132 | $0.0390 |
| 70% = $63,000 | $41 | $25 | $9 | −$8 | −$24 | −$40 | −$73 | −$106 | $0.0553 |
| 85% = $76,500 | $61 | $45 | $29 | $12 | −$4 | −$20 | −$53 | −$85 | $0.0676 |
| 100% = $90,000 | $81 | $65 | $49 | $33 | $16 | −$0 | −$33 | −$65 | $0.0799 |
| 115% = $103,500 | $102 | $85 | $69 | $53 | $36 | $20 | −$13 | −$45 | $0.0922 |
| 130% = $117,000 | $122 | $105 | $89 | $73 | $56 | $40 | $7 | −$25 | $0.1045 |
| 150% = $135,000 | $148 | $132 | $116 | $99 | $83 | $67 | $34 | $1 | $0.1209 |
At today's price the whole fleet breaks even at $0.0799/kWh. A 30% lower BTC price cuts that to $0.0553. Electricity and price matter more than almost any other input, which is why the grid is the first thing to check.
BTC price × difficulty
Difficulty +10% means each TH/s finds about 10% fewer coins (BTC per day ÷ 1.10). Electricity as on the Miners rows:
| BTC price ↓ / difficulty change → | -10% | 0% | +10% | +20% | +30% | +50% |
|---|---|---|---|---|---|---|
| $63,000 | −$3 | −$13 | −$22 | −$29 | −$35 | −$44 |
| $76,500 | $20 | $7 | −$3 | −$12 | −$19 | −$31 |
| $90,000 | $42 | $27 | $15 | $5 | −$4 | −$18 |
| $103,500 | $64 | $47 | $33 | $22 | $12 | −$4 |
| $117,000 | $87 | $67 | $51 | $38 | $27 | $9 |
Difficulty growth and the halving: 24-month projection
The Dashboard projects each month with difficulty × (1 + growth)^(month − 1), price × (1 + change)^(month − 1), and the subsidy at the estimated mid-month block height. The example assumes +2% difficulty a month and a flat price, and starts at block 1,000,000, so the halving at block 1,050,000 lands in month 12 (347 days at 144 blocks a day).
| Month | Est. height | Subsidy (BTC) | Difficulty | BTC mined | Revenue | Power + hosting | Net if running | Net used (switch-off) | Cash incl. hardware |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 1,002,190 | 3.125 | 1.000× | 0.0452 | $4,067 | $3,244 | $824 | $824 | −$25,076 |
| 3 | 1,010,950 | 3.125 | 1.040× | 0.0434 | $3,910 | $3,244 | $666 | $666 | −$23,667 |
| 6 | 1,024,090 | 3.125 | 1.104× | 0.0409 | $3,684 | $3,244 | $440 | $440 | −$22,124 |
| 9 | 1,037,230 | 3.125 | 1.172× | 0.0386 | $3,472 | $3,244 | $228 | $228 | −$21,232 |
| 11 | 1,045,990 | 3.125 | 1.219× | 0.0371 | $3,337 | $3,244 | $93 | $93 | −$20,980 |
| 12 | 1,050,370 | 1.5625 | 1.243× | 0.0183 | $1,649 | $3,244 | −$1,595 | −$100 | −$21,080 |
| 13 | 1,054,750 | 1.5625 | 1.268× | 0.0180 | $1,616 | $3,244 | −$1,628 | −$100 | −$21,180 |
| 18 | 1,076,650 | 1.5625 | 1.400× | 0.0163 | $1,464 | $3,244 | −$1,780 | −$100 | −$21,680 |
| 24 | 1,102,930 | 1.5625 | 1.577× | 0.0144 | $1,300 | $3,244 | −$1,944 | −$100 | −$22,280 |
The simple payback of 957 days assumes nothing changes. With rising difficulty and the halving, the example fleet earns $4,920 in the first 11 months, then loses money every month it runs. With the switch-off rule (power off, hosting still paid) it ends month 24 at −$22,280 of cash after the $25,900 hardware cost. Payback is not reached within 24 months.
Halving schedule
| Block height | Subsidy (BTC) | Note |
|---|---|---|
| 0 | 50 | Genesis block, 2009 |
| 210,000 | 25 | First halving |
| 420,000 | 12.5 | Second halving |
| 630,000 | 6.25 | Third halving |
| 840,000 | 3.125 | Fourth halving: block header time 2024-04-20 00:09:27 UTC (April 19 in US time zones) |
| 1,050,000 | 1.5625 | Next halving: expected around 2028; the date depends on block times |
| 1,260,000 | 0.78125 | The one after |
Subsidies follow Bitcoin Core's GetBlockSubsidy: 50 BTC shifted right once every 210,000 blocks (validation.cpp). The timestamp of block 840,000 was read from its header (block 840,000 on mempool.space). The chain was near block 975,500 on 12 November 2026, so block 1,050,000 is about 74,500 blocks away: roughly 517 days at 144 blocks a day, around spring 2028. Block times vary, so treat that as an estimate; the sheet recalculates it from the height you type.
Tax notes (US)
- IRS Notice 2014-21, Q&A 8: "when a taxpayer successfully “mines” virtual currency, the fair market value of the virtual currency as of the date of receipt is includible in gross income." (IRS Notice 2014-21)
- Q&A 9: if mining "constitutes a trade or business, and the “mining” activity is not undertaken by the taxpayer as an employee," net earnings from it are subject to self-employment tax.
- Rev. Rul. 2023-14 covers staking rewards, not mining. Its analysis repeats the mining rule: a taxpayer "who mines cryptocurrency must include the fair market value of the cryptocurrency in the taxpayer's gross income in the taxable year the taxpayer obtains dominion and control of the cryptocurrency." (Rev. Rul. 2023-14)
- The IRS digital assets page lists "Mining, staking and similar activities" as a reason to answer "Yes" to the digital asset question and says: "To report income from forks, staking, mining, etc., use Form 1040 (Schedule 1)" (IRS: Digital assets).
The spreadsheet does not compute tax. Track the dollar value of each payout on the day you receive it, and ask a tax professional about business treatment, deductions and depreciation.
Common mistakes
- Using the spec-sheet power figure. Type watts measured at the wall. Power supply losses and fans add to the chip figure.
- Leaving out fees per block, or counting them twice. The block reward is subsidy plus fees. Type an average, not a single unusual block.
- Treating payback days as a promise. Difficulty is recalculated every 2,016 blocks (about two weeks) and the subsidy halves every 210,000 blocks. Use the projection, not the simple payback.
- Mixing units. Difficulty goes in T (trillions), network hashrate in EH/s, machine hashrate in TH/s, power in watts.
- Ignoring uptime and pool fees. 97% uptime and a 2% fee cut revenue by about 5% before any power bill.
- Keeping a loss-making row running. In the example, Miner B costs more in power than it earns at $0.06/kWh. The Row results show it at once.
Limits
All results are expected values. Real payouts vary with luck, most of all for solo miners. Difficulty moves in steps every 2,016 blocks; the projection uses a smooth monthly rate you choose. Halving months are estimated at 144 blocks a day. Not included: hardware failures and repairs, resale value, cooling costs outside your $/kWh, demand charges, curtailment credits, financing, taxes and pool payout schemes. The switch-off rule applies to the whole fleet; to switch off one model, set its quantity to 0. One currency (USD). No live data.
FAQ
How do you calculate crypto mining profitability?
Work out expected coins per day from your share of the network, convert to dollars, then subtract costs. For Bitcoin: BTC per day = hashrate × 86,400 ÷ (difficulty × 2^32) × (block subsidy + average fees per block). Take off the pool fee, multiply by the BTC price, and subtract electricity (watts × 24 ÷ 1,000 × $/kWh) and any hosting. In the fictional example, 10 machines of 200 TH/s at $0.06/kWh net $23.40 a day.
How much Bitcoin does 1 TH/s mine per day?
It depends on difficulty and the block reward. 1 TH/s is 10^12 hashes per second, so expected BTC per day = 10^12 × 86,400 ÷ (difficulty × 2^32) × reward. At an illustrative difficulty of 150 T and a 3.15 BTC reward (3.125 subsidy + 0.025 fees) that is about 0.0000004224 BTC, or 42.2 satoshis, before the pool fee. Type the real difficulty into the sheet for today's figure.
What electricity price makes Bitcoin mining break even?
Break-even electricity = (revenue per day − hosting per day) ÷ kWh used per day. It rises with the BTC price and falls as difficulty grows. In the fictional example the fleet breaks even at $0.0799 per kWh at a $90,000 BTC price, and at $0.0390 if the price halves.
What happens to mining profit after a halving?
The block subsidy halves every 210,000 blocks, per Bitcoin Core's GetBlockSubsidy. Revenue from the subsidy halves overnight while electricity costs stay the same, so only fees and a higher price can offset it. In the example, the fleet's monthly net falls from $93 to −$1,595 in the halving month.
Is mined crypto taxable in the US?
Yes. IRS Notice 2014-21, Q&A 8, says that when a taxpayer successfully mines virtual currency, "the fair market value of the virtual currency as of the date of receipt is includible in gross income." Q&A 9 adds that mining as a trade or business can be subject to self-employment tax. The IRS digital assets page points to Schedule 1 for mining income reported as other income.
Is Bitcoin mining still profitable?
No single answer fits every miner. It depends on your electricity price, machine efficiency (J/TH), difficulty, fees, BTC price and how long the hardware lasts. The spreadsheet shows the break-even electricity and BTC price for your own machines and how a halving and rising difficulty change the result over 24 months.
Related tools and templates
- ROI calculatorReturn on the hardware you buy
- CAGR calculatorAnnual growth rate of an investment
- Crypto staking rewards trackerLog staking income
- Crypto tax spreadsheetGains, losses and income
- Crypto portfolio trackerHoldings and P/L
- Side hustle income trackerIncome and expenses
- Quarterly estimated tax spreadsheetPlan estimated payments
- All templatesFree spreadsheets
Educational template only, not investment, tax or legal advice. Mining results depend on inputs that change every day; nothing on this page predicts profit. Example data is illustrative and fictional: the machines, difficulty, block height, fees, prices and costs are made up to show the formulas and are not market data or real product specifications. Sources: Bitcoin Core source code (validation.cpp, chainparams.cpp); Bitcoin developer guide (Block Chain, Mining, glossary); bitcoin.org FAQ; IRS Notice 2014-21, Rev. Rul. 2023-14 and Digital assets; block data from mempool.space. Retrieved 12 November 2026.