TeachMeBitcoin

The Coinbase Transaction

From TeachMeBitcoin, the free encyclopedia ⏱️ 3 min read

The Coinbase Transaction: Core Mechanics and Block Rewards

Every block added to the Bitcoin blockchain contains a unique, mandatory transaction at index 0 called the Coinbase Transaction. This transaction serves a critical role in the system: it is the sole mechanism by which new bitcoins are minted, and it is how miners collect transaction fees from user transactions.

This guide details the core mechanics of coinbase transactions, the block reward halving schedule, and the consensus-enforced maturity rules.


πŸͺ™ 1. The Block Reward Equation

Miners do not earn a static income. The total payout in a coinbase transactionβ€”called the Block Rewardβ€”is dynamically calculated for each block as the sum of two variables:

$$\text{Block Reward} = \text{Block Subsidy} + \sum \text{Transaction Fees}$$

                           THE COINBASE REWARD PIPELINE

    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚  Block Subsidy (New Coins)β”‚ ──┐
    β”‚  Currently 3.125 BTC      β”‚   β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
                                    β”œβ”€β–Ί [ Coinbase Payout Output ]
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
    β”‚  Sum of Block Tx Fees     β”‚ β”€β”€β”˜
    β”‚  e.g. 0.125 BTC           β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“‰ 2. The Halving Schedule and Supply Cap

To enforce a finite supply of $21,000,000\text{ BTC}$, the block subsidy is designed to decay. Every 210,000 blocks (approximately $4\text{ years}$), the subsidy is cut exactly in half.

The Subsidy Epochs

$$\text{Subsidy} = \frac{50 \text{ BTC}}{2^{\text{Epoch}}}$$

Epoch Block Range Approximate Years Subsidy Per Block Total Coins Created
0 0 - 209,999 2009 - 2012 50.0 BTC $10,500,000\text{ BTC}$
1 210,000 - 419,999 2102 - 2016 25.0 BTC $5,250,000\text{ BTC}$
2 420,000 - 629,999 2016 - 2020 12.5 BTC $2,625,000\text{ BTC}$
3 630,000 - 839,999 2020 - 2024 6.25 BTC $1,312,500\text{ BTC}$
4 840,000 - 1,049,999 2024 - 2028 3.125 BTC $656,250\text{ BTC}$

Once block height $6,930,000$ is reached (around year 2140), the subsidy shifts down to 0 satoshis. From that point on, miners will be funded entirely by transaction fees.


πŸ”’ 3. The 100-Block Maturity Rule

Because a block could be orphaned during a temporary blockchain split (reorganization), coinbase outputs carry a highly strict security constraint known as the Coinbase Maturity Rule.

The Consensus Rule

A coinbase output cannot be spent as an input in a subsequent transaction until it has been buried by at least 100 blocks on the active chain:

$$\text{Maturity Age} \ge 100 \text{ Blocks}$$

β˜• Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!