Diving into Bitcoin Halving Calculations

13 replies 341 views
Posts: 252 · Reputation: 12
#1Mar 10, 2023, 12:53 PM
So I saw this interesting reply from hugeblack yesterday. He posted a pic of the Bitcoin halving formula. I got super curious and wanted to crunch some numbers on how Bitcoin halves every four years. Turns out, this formula might help us figure out the total supply too.
7 Reply Quote Share
RogueCipherFull Member
Posts: 39 · Reputation: 453
#2Mar 11, 2023, 09:39 AM
It’s a bit different from what hugeblack posted, but honestly, it gives the same result. The 108 variable cancels itself out. The cool part is you can easily find total supply without needing to plug in values for each halving period.
3 Reply Quote Share
chrisomegaFull Member
Posts: 158 · Reputation: 631
#3Mar 11, 2023, 12:29 PM
Hold up, but I think you got the math wrong. The second period actually produced 5,250,000 BTC, not that 5249999.998 number. The total ends up being around 21 million after all halvings.
5 Reply Quote Share
Posts: 252 · Reputation: 12
#4Mar 11, 2023, 01:08 PM
21 million is a round number, no decimals, remember? Just saying that number is an estimate.
4 Reply Quote Share
chrisomegaFull Member
Posts: 158 · Reputation: 631
#5Mar 11, 2023, 03:30 PM
I thought you were referring to your own paper where x=2 is the second period. I don’t see the point in summing from x=2 to x=32.
0 Reply Quote Share
Posts: 252 · Reputation: 12
#6Mar 11, 2023, 05:26 PM
Yeah I know 21 million doesn’t have decimals. I was talking about block rewards though. After the 10th halving, the reward is 0.048828125 BTC, which rounds to 0.04882812 BTC.
0 Reply Quote Share
Posts: 32 · Reputation: 237
#7Mar 11, 2023, 11:34 PM
Haha, I went a bit wild with this too. Said it was a bit much, but honestly, I had fun.
1 Reply Quote Share
0xLaserFull Member
Posts: 252 · Reputation: 641
#8Mar 12, 2023, 08:42 PM
That wiki page claims global gold production is fixed more than it drops exponentially. Seems legit.
4 Reply Quote Share
wizard_2016Full Member
Posts: 127 · Reputation: 575
#9Mar 12, 2023, 08:54 PM
You’re missing a key point: altcoins. Each serious altcoin kinda messes with that 21 million limit. If Bitcoin holds 50% market dominance, that’s like having 42 million across the board, but a lot of it’s off-chain.
5 Reply Quote Share
Posts: 252 · Reputation: 12
#10Mar 13, 2023, 02:19 AM
The infinite sum is right, but Bitcoin Core caps it at 64 halvings. After 33 halvings, the subsidy goes to zero, so max supply ends up slightly less than 21 million.
3 Reply Quote Share
wizard_2016Full Member
Posts: 127 · Reputation: 575
#11Mar 13, 2023, 05:35 AM
Phew, glad I got that infinite sum right. My calculator must’ve done the truncation automatically when I calculated all 33 halvings. Decimals popped up when I broke it down for each halving.
2 Reply Quote Share
0xNodeMember
Posts: 671 · Reputation: 80
#12Mar 14, 2023, 01:46 AM
Your values might be off cause your calculator isn’t precise enough for those numbers.
4 Reply Quote Share
chrisomegaFull Member
Posts: 158 · Reputation: 631
#13Mar 14, 2023, 07:47 AM
It's likely just a rounding error due to hardware limitations. Small inaccuracies happen.
1 Reply Quote Share
Posts: 3523 · Reputation: 35
#14Mar 14, 2023, 08:59 AM
I checked OP's series for 210,000*50/(2^x) from x=2 to x=32 and got 5249999.998. I used Python and got 5249999.997555278. At first, I thought x=2 meant the second halving.
3 Reply Quote Share

Related topics