Coinbase Transactions in Bitcoin Explained: Mining Rewards & Fees

Coinbase Transactions in Bitcoin Explained: How Miners Receive Bitcoin Rewards

Coinbase Transactions in Bitcoin Explained: How Miners Receive Bitcoin Rewards

Learn what a Bitcoin Coinbase transaction is, how miners receive block rewards and transaction fees, why it has no normal inputs, and why Coinbase transactions must wait 100 blocks before spending.

Bitcoin Mining Rewards, Bitcoin Block Subsidy, Bitcoin Transaction Fees, Bitcoin Coinbase Transaction, Bitcoin Mining Explained, Coinbase Transaction Structure, Bitcoin Block Reward, Bitcoin Blockchain.

What Is a Coinbase Transaction in Bitcoin?

Imagine you own a small bakery.

Every morning, you sell bread, cakes, and coffee to customers. At the end of the day, you calculate your total sales and subtract the expenses you need to pay.

The remaining amount represents the money your business earned.

Now imagine a different system where a computer network processes thousands of payments, checks their validity, and records them in a shared digital ledger.

Who gets paid for doing that work?

What Is the Genesis Block? The Beginning of Bitcoin Explained

In Bitcoin, miners help process transactions, construct blocks, and secure the network through a process called Proof of Work.

But how do they actually receive their payment?

This is where something called a Coinbase transaction comes in.

A Coinbase transaction is a special Bitcoin transaction included as the first transaction in every valid block. It allows the miner to claim the block subsidy (newly issued bitcoin) and the transaction fees from the other transactions included in that block.

In simple terms, it is the mechanism through which Bitcoin's protocol distributes mining rewards.

However, there is something unusual about this transaction.

Unlike an ordinary Bitcoin transaction, a Coinbase transaction does not spend bitcoin from a previous transaction.

Instead, it has a special input that allows the miner to claim the permitted block reward.

Let's understand how this works using everyday examples, simple explanations, and real Bitcoin transaction structures.

1. First, Understand How a Normal Bitcoin Transaction Works

Before understanding a Coinbase transaction, let's look at how an ordinary Bitcoin payment works.

Imagine you want to purchase a laptop from an online store.

The laptop costs 0.01 BTC.

You open your Bitcoin wallet, enter the store's receiving address, and send the payment.

Behind the scenes, your wallet constructs a Bitcoin transaction.

Bitcoin does not work exactly like a traditional bank account that simply subtracts money from one account and adds it to another.

Instead, it uses a system called Unspent Transaction Outputs (UTXOs).

Think of UTXOs as individual pieces of digital money that can be used as inputs in future transactions.

For example:

Imagine your wallet contains two available outputs:

  • UTXO 1: 0.006 BTC

  • UTXO 2: 0.005 BTC

Your total available amount is 0.011 BTC.

You want to pay 0.01 BTC.

Your wallet can use both outputs as transaction inputs and create two new outputs:

Transaction OutputAmount
Laptop seller0.010 BTC
Your change address0.0009 BTC
Miner transaction fee0.0001 BTC

The numbers above are simplified examples.

Your transaction uses previously created outputs and produces new outputs.

The difference between the total input value and the total output value is the transaction fee.

The miner who includes your transaction in a block can collect that fee.

This is how ordinary Bitcoin transactions work.

But a Coinbase transaction works differently.

2. What Makes a Coinbase Transaction Different?

Imagine a miner successfully creates a valid Bitcoin block.

The miner has performed computational work, and the block has passed the network's consensus rules.

The Bitcoin protocol allows the miner to claim a specific reward.

This reward has two parts:

  1. Block subsidy.

  2. Transaction fees.

The miner collects these amounts through a special transaction called the Coinbase transaction.

Here is the important difference:

An ordinary Bitcoin transaction spends one or more previously created UTXOs.

A Coinbase transaction does not spend an ordinary previous transaction output.

Instead, it contains a special input with a null previous outpoint.

This is why Coinbase transactions have a unique structure.

A Simple Real-Life Example

Imagine a company employs workers to complete a project.

The workers finish the job, and the company pays them using its payroll system.

The payment does not necessarily come from a previous payment made by another employee.

It comes from an authorized payment process.

Similarly, Bitcoin's Coinbase transaction is the protocol-defined mechanism that allows a miner to claim its permitted reward.

There is one important difference: Bitcoin does not have a central company approving the payment. Every fully validating node checks whether the Coinbase transaction follows the network's consensus rules.

The transaction cannot simply create unlimited bitcoin.

Its value is restricted by the block subsidy and the transaction fees earned in that block.

3. Why Is It Called a Coinbase Transaction?

This is one of the most common questions beginners ask.

Is it connected to Coinbase, the cryptocurrency exchange?

No. They are two completely different things.

<escape>Coinbase transaction</escape> is a technical term used in Bitcoin's protocol.

<escape>Coinbase</escape> is also the name of a cryptocurrency exchange company.

The name of the transaction comes from the special coinbase field in its input structure.

It is not named after the exchange, and the exchange does not control Bitcoin's mining reward mechanism.

This distinction is important when reading Bitcoin documentation, blockchain explorers, and technical articles.

4. What Are the Two Parts of a Bitcoin Block Reward?

Now let's understand exactly what a miner receives.

A Bitcoin block reward consists of the block subsidy plus the transaction fees collected from transactions included in the block.

Block Reward = Block Subsidy + Transaction Fees

Let's understand both parts separately.

A. Block Subsidy: Newly Created Bitcoin

The block subsidy is the amount of new bitcoin that the protocol allows a miner to claim when a valid block is created.

Bitcoin does not allow miners to create unlimited coins.

The subsidy follows a predetermined issuance schedule.

At the beginning of Bitcoin, the block subsidy was 50 BTC.

It decreases through an event called the Bitcoin halving.

The subsidy is cut in half approximately every 210,000 blocks.

Here is the historical schedule:

Bitcoin Block EraBlock Subsidy
Genesis to Block 209,99950 BTC
Block 210,000 to 419,99925 BTC
Block 420,000 to 629,99912.5 BTC
Block 630,000 to 839,9996.25 BTC
Block 840,000 to 1,049,9993.125 BTC

The fourth halving occurred in April 2024, reducing the subsidy from 6.25 BTC to 3.125 BTC.

The subsidy is not determined by how much electricity a miner uses or how many transactions it processes.

It follows Bitcoin's protocol rules.

B. Transaction Fees: Payments From Bitcoin Users

Now imagine you want to send Bitcoin to someone.

You create a transaction and broadcast it to the Bitcoin network.

You may include a transaction fee to encourage miners to select your transaction for inclusion in a block.

Miners generally prioritize transactions based on their fee rates and other considerations.

When a miner includes your transaction in its block, the transaction fee becomes part of the total fees that can be claimed through the block's Coinbase transaction.

For example:

Imagine a block contains 2,000 transactions.

The combined transaction fees from those transactions equal 0.15 BTC.

The miner can claim those fees in addition to the applicable block subsidy.

This is an important distinction:

  • The block subsidy introduces new bitcoin into circulation.

  • Transaction fees are existing bitcoin transferred by users to miners.

Both can be collected through the Coinbase transaction, but they have different economic origins.

5. A Real-Life Example: How a Miner Receives Bitcoin

Let's put everything together.

Imagine a mining operation successfully mines a Bitcoin block.

For this simplified example, assume:

  • Block subsidy: 3.125 BTC.

  • Total transaction fees: 0.20 BTC.

The maximum reward the miner can claim is:

3.125 + 0.20 = 3.325 BTC.

<escape>Illustrative block reward calculation</escape>

Reward ComponentAmount
Block Subsidy3.125 BTC
Transaction Fees0.200 BTC
Total Block Reward3.325 BTC

The miner constructs a Coinbase transaction that creates outputs assigning the permitted reward.

For example, it might send:

  • 3.325 BTC to a mining pool's payout address.

The transaction is included as the first transaction in the block.

Bitcoin nodes validate the block and check that the Coinbase transaction does not claim more than the allowed amount.

If the block and its transactions are valid, the reward becomes part of the blockchain's recorded transaction history.

Notice something important.

The miner did not receive 3.125 BTC from another Bitcoin user.

That amount represents newly issued bitcoin allowed by the protocol.

The additional 0.20 BTC came from transaction fees paid by users.

This is the fundamental purpose of a Coinbase transaction.

6. Why Does a Coinbase Transaction Have No Normal Inputs?

Let's return to the laptop example.

When you purchase a laptop using Bitcoin, your wallet needs existing UTXOs to fund the transaction.

A miner claiming a block subsidy faces a different situation.

The subsidy is newly created bitcoin.

It does not already exist as a spendable output in an earlier transaction.

Therefore, the Coinbase transaction cannot reference an ordinary previous transaction output as its funding source.

Instead, its input contains a special null outpoint.

A simplified representation looks like this:

Normal Bitcoin Transaction

Previous UTXO → Transaction Input → New Transaction Outputs

Coinbase Transaction

Special Coinbase Input → Reward Outputs

The special input identifies the transaction as a Coinbase transaction.

It also contains a script field that can carry data.

Bitcoin consensus rules recognize this structure and validate the amount claimed.

The Coinbase transaction must have exactly one special input.

This is different from an ordinary transaction, which can contain one or multiple inputs.

7. What Information Is Stored Inside a Coinbase Transaction?

A Coinbase transaction contains several important components.

Let's examine them in beginner-friendly language.

A. Transaction Version

The transaction version identifies the transaction format and associated interpretation rules.

It is part of the transaction's basic structure.

B. Special Coinbase Input

This is the most important distinguishing feature.

The input contains a null previous outpoint rather than referencing an ordinary previous transaction output.

It identifies the transaction as the special first transaction in a block.

C. Coinbase Script

The Coinbase input contains a script field called scriptSig.

This field can carry additional data.

For example, miners may include:

  • Block height.

  • Mining pool identification.

  • Arbitrary messages.

  • Other mining-related data.

The original Bitcoin Genesis Block famously included a newspaper headline in its coinbase data.

D. Block Height

Since the activation of BIP 34, the block height must appear as the first item in the coinbase scriptSig.

This makes it possible to identify the height of the block associated with the Coinbase transaction.

For example, if a block has height 900,000, its Coinbase transaction includes the corresponding block-height information.

E. Transaction Outputs

These outputs specify where the miner directs the reward.

A mining pool might direct the reward to its payout address.

A solo miner might direct the reward to an address it controls.

The total value claimed cannot exceed the permitted block subsidy plus the fees from the other transactions included in the block.

F. Transaction Identifier

Like other Bitcoin transactions, a Coinbase transaction has a transaction ID (TXID).

It is calculated from the serialized transaction data.

This identifier allows people to inspect the transaction through a blockchain explorer.

8. Why Can't Miners Spend Their Coinbase Rewards Immediately?

Here is another interesting Bitcoin rule.

A miner cannot immediately spend the outputs of a newly created Coinbase transaction.

Bitcoin applies a special rule called Coinbase Maturity.

Coinbase outputs must wait until 100 blocks have been built on top of the block containing the Coinbase transaction before they can be spent.

Let's understand why.

Imagine This Situation

A mining pool successfully mines a block.

It receives a reward of 3.325 BTC.

The pool immediately attempts to spend that reward in another transaction.

However, the original block is still very recent.

Bitcoin occasionally experiences situations where two miners find valid blocks at nearly the same time.

This can temporarily create competing versions of the chain.

One block may eventually become part of the accepted chain, while the other becomes stale.

If a miner had already spent the reward from a block that later became stale, the transaction history could become problematic.

The 100-block maturity rule helps prevent this issue.

It gives the network time to build additional blocks on top of the block containing the reward.

Understanding the 100-Block Rule

EventExplanation
Block minedMiner creates a valid block
Coinbase transaction includedReward is recorded
More blocks addedThe chain develops
100-block maturity reachedCoinbase outputs become eligible to spend

At Bitcoin's approximate 10-minute target block interval, 100 blocks represent roughly 16 hours and 40 minutes.

Actual elapsed time can vary because Bitcoin blocks are not mined at perfectly regular intervals.

The important point is that the rule is based on block count, not a fixed clock.

9. Why Must Every Bitcoin Block Have a Coinbase Transaction?

Every valid Bitcoin block must contain a Coinbase transaction as its first transaction.

Why is this necessary?

Because Bitcoin needs a protocol-defined way to distribute the block subsidy and allow miners to claim transaction fees.

Without this mechanism, the network would not have the same built-in reward system for miners.

Remember that Bitcoin does not rely on a central bank or payment company to issue mining rewards.

Instead, the protocol defines:

  • How much new bitcoin can be created.

  • Which transaction can claim the block reward.

  • Where the reward can be sent.

  • When the reward can be spent.

  • How nodes verify that the reward is valid.

The Coinbase transaction connects all these rules.

Can a Bitcoin Block Contain Two Coinbase Transactions?

No.

A valid Bitcoin block must contain exactly one Coinbase transaction, and it must be the first transaction.

If a block contains another Coinbase transaction attempting to create an additional reward, it violates Bitcoin's consensus rules.

Fully validating nodes reject invalid blocks.

This is one of the protections that prevents miners from creating unlimited bitcoin.

10. What Happens When Bitcoin's Block Subsidy Reaches Zero?

Bitcoin has a maximum supply limit of 21 million BTC under its monetary rules.

The block subsidy gradually decreases through halvings.

Eventually, the subsidy will become zero, expected around the year 2140, although the precise timing depends on the block-production schedule.

Does that mean Coinbase transactions will disappear?

No.

Coinbase transactions will still be necessary.

Why?

Because miners can continue collecting transaction fees.

Consider this hypothetical future block:

Reward ComponentAmount
Block Subsidy0 BTC
Transaction Fees0.35 BTC
Total Block Reward0.35 BTC

The Coinbase transaction can still collect the 0.35 BTC in fees.

This demonstrates an important feature of Bitcoin's long-term mining incentive system.

As the subsidy decreases, transaction fees are expected to become an increasingly important part of miner revenue.

However, future fee levels and mining economics are uncertain.

11. How Can You Find a Coinbase Transaction on a Bitcoin Blockchain Explorer?

You do not need to become a Bitcoin miner or install special software to inspect a Coinbase transaction.

You can use a public blockchain explorer.

For example, visit:

https://mempool.space/

Follow these steps:

  1. Open the blockchain explorer.

  2. Select a recent Bitcoin block.

  3. Open its transaction list.

  4. Look at the first transaction.

  5. Select that transaction.

  6. Inspect its inputs and outputs.

You should find a transaction identified as a Coinbase transaction.

Unlike ordinary transactions, its input does not reference a previous transaction output.

You can also inspect its outputs to see where the mining reward was assigned.

What Should You Look For?

FieldWhat It Tells You
Transaction IDUnique transaction identifier
InputSpecial Coinbase input
Coinbase DataAdditional mining-related information
Block HeightBlock associated with the reward
OutputsAddresses receiving the reward
Transaction ValueTotal claimed reward

This is a useful practical exercise because you can examine real Bitcoin blockchain data rather than relying only on diagrams.

12. Coinbase Transaction vs Normal Bitcoin Transaction

Let's bring everything together.

FeatureCoinbase TransactionNormal Transaction
PurposeClaim block rewardTransfer existing bitcoin
PositionFirst transaction in a blockCan appear elsewhere
InputOne special null-outpoint inputReferences previous UTXOs
Creates new BTCCan claim block subsidyCannot create new BTC
Collects feesClaims fees from other included transactionsMay pay transaction fees
Maturity100-block spending delayNo Coinbase maturity rule
Created byMiner or mining softwareBitcoin wallet or other transaction software

The main difference is the purpose of each transaction.

A normal transaction moves existing bitcoin between users.

A Coinbase transaction allows the miner to claim the reward permitted by Bitcoin's protocol.

Both are recorded on the same blockchain, but they follow different rules.

13. Common Misunderstandings About Coinbase Transactions

Let's clear up a few mistakes that beginners frequently make.

Misunderstanding 1: Coinbase Transactions Are Created by the Coinbase Exchange

Incorrect.

The term Coinbase transaction refers to a Bitcoin protocol mechanism.

It does not mean that the Coinbase exchange creates or controls the mining reward.

Misunderstanding 2: Miners Receive Only Newly Created Bitcoin

Incorrect.

The block reward contains both the block subsidy and the transaction fees from the included transactions.

Misunderstanding 3: Miners Can Claim Any Amount They Want

Incorrect.

Bitcoin nodes independently validate the claimed amount.

A Coinbase transaction that claims more than the permitted subsidy plus transaction fees makes the block invalid.

Misunderstanding 4: Coinbase Rewards Can Be Spent Immediately

Incorrect.

Coinbase outputs must satisfy the 100-block maturity rule before they can be spent.

Misunderstanding 5: Transaction Fees Are Newly Created Bitcoin

Incorrect.

Transaction fees are existing bitcoin paid by users.

Only the block subsidy introduces new bitcoin through the mining reward mechanism.

Misunderstanding 6: Every Bitcoin Transaction Is a Coinbase Transaction

Incorrect.

Only the first transaction in each valid Bitcoin block is the Coinbase transaction.

The other transactions follow ordinary transaction rules.

Frequently Asked Questions (FAQs)

1. What is a Coinbase transaction in Bitcoin?

A Coinbase transaction is the first transaction in every valid Bitcoin block. It allows the miner to claim the block subsidy and the transaction fees associated with the block.

2. Is a Coinbase transaction related to Coinbase.com?

No. Coinbase transaction is a technical term in Bitcoin's protocol. Coinbase.com is a cryptocurrency exchange. They are not the same thing.

3. Why does a Coinbase transaction have no previous inputs?

A Coinbase transaction can claim newly issued bitcoin through the block subsidy. Therefore, it does not need to spend an existing UTXO like an ordinary Bitcoin transaction.

4. Who creates the Coinbase transaction?

The miner or mining software constructs the Coinbase transaction when preparing a block.

5. What is included in a Bitcoin block reward?

A Bitcoin block reward consists of the block subsidy and the transaction fees from the other transactions included in that block.

6. Can a Coinbase transaction create unlimited Bitcoin?

No. Bitcoin consensus rules limit the amount that can be claimed to the applicable block subsidy plus the transaction fees.

7. Why do Coinbase transactions have a 100-block maturity period?

The maturity rule helps protect the network from problems caused by recent blocks becoming stale or being replaced during a chain reorganization.

8. Can a Coinbase transaction contain messages?

Yes. Its coinbase script field can contain additional data, including block height, mining pool information, and other data within the applicable limits.

9. How many Coinbase transactions are allowed in a Bitcoin block?

Exactly one. It must be the first transaction in the block.

10. Will Coinbase transactions continue after Bitcoin reaches its maximum supply?

Yes. Even after the block subsidy reaches zero, miners can continue using Coinbase transactions to claim transaction fees.

11. What is the difference between block subsidy and transaction fees?

Block subsidy is newly issued bitcoin allowed by the protocol. Transaction fees are existing bitcoin paid by users to incentivize transaction inclusion.

12. Where can I view a real Coinbase transaction?

You can inspect the first transaction of any Bitcoin block using explorers such as Mempool.space and Blockstream Explorer.

Conclusion

Coinbase transactions are an essential part of Bitcoin's mining and reward system.

They provide a standardized way for miners to claim the block subsidy and collect transaction fees after successfully creating valid blocks.

Unlike ordinary Bitcoin transactions, they do not spend previously created transaction outputs. Instead, they use a special input that allows the miner to claim the reward permitted by the protocol.

They also contain important information, including block height and optional mining-related data.

The 100-block maturity rule adds another layer of protection by preventing newly created mining rewards from being spent too quickly.

As Bitcoin continues through its halving schedule, Coinbase transactions will remain important even when the block subsidy eventually reaches zero, because miners will still be able to collect transaction fees.

The most important lesson is this:

A normal Bitcoin transaction transfers existing bitcoin. A Coinbase transaction is how a miner claims the reward earned for producing a valid block.

Understanding this difference helps explain how Bitcoin creates new coins, processes transactions, and rewards the miners who help secure its network.

Disclaimer

This article is intended solely for educational and informational purposes. It explains Bitcoin Coinbase transactions, block subsidies, mining rewards, transaction fees, and related blockchain concepts.

The information provided should not be considered financial, investment, trading, legal, or tax advice.

Bitcoin and other cryptocurrencies involve technological, financial, regulatory, and market risks. Examples of block rewards and transaction fees in this article are illustrative and do not represent guaranteed mining income.

Technical information is based on publicly available Bitcoin protocol documentation, Bitcoin Improvement Proposals, software references, and blockchain records. Readers should independently verify technical information using reliable primary sources.

AnyaLX does not recommend purchasing, selling, mining, or holding any particular cryptocurrency.

Educational purposes only. Not financial advice.

Reader Comments (0)

Write a comment