A Bitcoin miner is paid by the block itself. The first transaction in every block, the coinbase, creates the new coins allowed by the subsidy schedule and collects the fees of every other transaction in the block. Nobody sends that money; the rules allow the miner of a valid block to claim it, and the coins cannot be spent until the block is 100 blocks deep.
The two income streams
Block revenue has exactly two parts.
- The subsidy. New bitcoin created by the block. It depends only on block height: 50 BTC at the start, halved every 210,000 blocks. The calculation is in GetBlockSubsidy. The full path is in the supply schedule guide.
- The fees. Each transaction pays the difference between what it spends and what it creates. Those differences are summed across the block and go to the miner. Nobody sets a fee schedule; users bid for limited block space.
The block subsidy is predictable decades ahead. Fees are not predictable even one block ahead. As the subsidy shrinks, fees account for a bigger share of block revenue unless the fee level falls by as much, a point we return to below.
Inside the coinbase transaction
The coinbase transaction is special in a few specific ways, all documented in the transactions developer guide.
- It must be the first transaction in the block, and there can be only one.
- It has a single input that spends nothing. Where an ordinary input points to an earlier output, the coinbase input carries a null reference.
- That input’s script field is free-form within a small size range. Consensus only requires a length between 2 and 100 bytes, so the miner can use it for a block height, extra nonce space and a short tag.
- Its outputs may total at most subsidy plus fees. A block that claims more is rejected by every node.
A miner may claim less than the maximum. Coins left unclaimed are simply never created. The rule is a ceiling, not an entitlement.
The height field and BIP34
Two different coinbases could once be byte-for-byte identical, which creates trouble with transaction identifiers. BIP34 fixed that by requiring blocks of a new version to push their own block height as the first item in the coinbase script. Because the height is unique for each block, coinbase transactions can no longer collide. The height is also a convenient way for software to cross-check where in the chain a block sits.
An extra output with no value
Since SegWit, a block that contains witness data carries a commitment to it in one of the coinbase outputs, an unspendable output with zero value. Mining software adds it automatically. It does not change how the payout works but explains why a coinbase often has more than one output.
The coinbase at a glance
| Part | What the rules say |
|---|---|
| Position | First transaction in the block, only one per block |
| Input | One input referencing no earlier output |
| Input script | 2 to 100 bytes; begins with the block height after BIP34 |
| Outputs | Total at most subsidy plus fees of that block |
| Spendability | Only after 100 blocks of depth |
Why the payout waits 100 blocks
Coinbase outputs cannot be spent until 100 blocks have been built on top of them. The constant, COINBASE_MATURITY, sits in consensus.h and equals 100. A wallet shows such coins as immature until the threshold passes.
The reason is chain reorganizations. Occasionally two blocks are found at nearly the same time, and the network briefly disagrees about which one is the tip. The loser is dropped, and everything in it, including its coinbase, ceases to exist.
Ordinary transactions in a dropped block normally return to the mempool and confirm again in a winner. A coinbase cannot, because it was unique to the dropped block.
Spending a coinbase output after one confirmation could therefore wreck every transaction that built on it. The 100-block wait, roughly 16 hours and 40 minutes at the ten-minute design pace, makes a reorganization that deep very unlikely to affect anyone spending a coinbase.
The arithmetic is simple: 100 blocks x 10 minutes = 1,000 minutes. As always with block timing, the real wait varies around that figure.
How pooled mining splits the payout
Finding a block alone is a long shot for a small miner. Taken on its own, the chance that a machine wins in any given block is tiny, so income would arrive in rare, large lumps. To smooth that out, most hashing power joins pools: groups of miners that work on the same block template and split whatever the pool wins.
Mechanically, the pool controls what goes in the coinbase. The block template, assembled through a node call such as getblocktemplate, names the pool as the payee. Members do not each get a coinbase output.
They submit shares, proofs that they hashed a header that met an easier threshold than the real one. Shares are a statistical measure of how much work each member contributed. The pool then pays members in proportion to shares according to its own scheme.
Schemes differ in who carries the risk. Some pay a fixed amount per share and absorb the luck variance themselves, charging a higher fee for that. Others pay out in proportion to shares in each block found, so members share both the good and the bad streaks. In every scheme the pool’s payout rules are private agreements, not part of the Bitcoin protocol. The protocol sees only the coinbase transaction.
This also explains why pools can look large in block statistics. A pool is a coordination device for many separate operators, and its share of blocks says little about how many independent parties stand behind it.
The fee share of block revenue
Because the subsidy is fixed and fees float, the proportion of a block’s revenue that comes from fees changes constantly. Over a long stretch it can sit low, and a single block can sit far above its neighbors when many users compete for space. Past values say nothing about next week.
The box above shows a fee share with its source and fetch time; read its label for the window it covers. When a halving cuts the subsidy in half, the same fee total becomes a larger share of a smaller whole.
That is arithmetic and not a claim that fees will rise. For example, 0.25 BTC in fees alongside a 3.125 BTC subsidy is about 7.4 percent of the block’s revenue; the same 0.25 against 1.5625 BTC would be about 13.8 percent. The inputs are illustrative.
See mining economics and hashprice for how the sum of subsidy and fees turns into revenue per unit of hashrate.
How big fees would need to be
One way to feel the scale is to ask what fee total per block would equal the subsidy in each era. This is a unit check, not a projection of what fees will be.
| Era starts at height | Subsidy per block | Fees per block needed to match it |
|---|---|---|
| 0 | 50 BTC | 50 BTC |
| 210,000 | 25 BTC | 25 BTC |
| 420,000 | 12.5 BTC | 12.5 BTC |
| 630,000 | 6.25 BTC | 6.25 BTC |
| 840,000 | 3.125 BTC | 3.125 BTC |
| 1,050,000 | 1.5625 BTC | 1.5625 BTC |
Each row halves, so the fee total that would make fees half of block revenue halves with it. Whether real fees do anything of the sort is a market question the protocol does not answer.
A worked example of one payout
The numbers are illustrative.
- A block is mined at a height inside the era that pays 3.125 BTC.
- It includes 2,000 transactions whose fees add up to 0.20 BTC.
- The coinbase may create up to 3.125 + 0.20 = 3.325 BTC.
- The miner, or the pool, claims all of it in the coinbase outputs.
- One hundred blocks later, the coinbase outputs become spendable.
- If a pool is involved, members are paid according to the pool’s own rules, in a separate set of transactions.
Nothing in the chain shows steps 5 and 6 as special events. The first is a consensus rule, the second is private bookkeeping, and the pool’s payout transactions look like any other payments.
Reading a coinbase in practice
Block explorers display the coinbase as the first transaction, usually labeled as newly generated coins. Two checks are worth doing when you look at one. First, add the outputs and compare with the subsidy for that height plus the block’s fee total; the sum should never exceed it.
Second, decode the input script: its first bytes carry the height under BIP34, and the remainder is miner-chosen text, which often includes a short tag. The tag is a convention, not a verified identity, so it proves nothing about who really mined the block.
The same tool shows the confirmation count for those coinbase outputs. Until it passes 100, a wallet treats them as immature even though the block is fully valid, which can confuse newcomers who see a block reward listed but unavailable.
What the rules do not say
A few widespread beliefs are not part of the protocol. The rules do not require a miner to include any particular transaction, and they do not set a minimum fee; a node’s relay policy has a minimum, which is separate.
They do not guarantee that revenue will cover costs. They do not say who the miner is or where it operates. All the rules say about the payout is that the coinbase obeys the ceiling, carries a unique height, and waits for maturity.
For the data side, the mining hub collects the related data, and the glossary explains the block subsidy and the coinbase transaction in one paragraph each. This guide is educational and is not financial advice.
Frequently asked questions
What is a coinbase transaction?
Why can't coinbase coins be spent right away?
Do miners get paid more when fees are higher?
Is pool payout part of the Bitcoin protocol?
Sources
- src/validation.cpp (GetBlockSubsidy) · Bitcoin Core
- src/consensus/consensus.h (COINBASE_MATURITY) · Bitcoin Core
- BIP 34: Block v2, height in coinbase · Bitcoin Improvement Proposals
- Developer guide: transactions · Bitcoin developer documentation
Educational data only. Not financial, investment or tax advice; no licence is claimed. Bitcoin Prime publishes no forecasts, targets or trading signals.