Mining economics
Transaction fees
Transaction fees are the amounts users attach to their transactions, which go to the miner who includes them in a block.
- Quoted in
- Satoshis per virtual byte
- Depends on
- Size of the transaction, not the amount sent
- Block capacity
- 4 million weight units
- That equals
- 1 million virtual bytes
- Goes to
- The miner of the block
What it means in practice
Fees are usually set as a rate in satoshis per virtual byte, and miners tend to fill blocks with the highest-paying transactions first. Fee income rises sharply when the mempool is congested and falls when it is quiet. As the subsidy halves over time, fees are meant to become a larger share of miner income.
A fee is what is left over
A Bitcoin transaction has no field called fee. It lists coins going in and coins going out, and whatever is not sent on belongs to the miner. Wallets calculate this for you. A wallet that forgets the change output would hand the rest to the miner, which is why software checks for it.
The amount sent plays no part. Moving ten coins or a thousandth of one costs the same if the transaction has the same size.
Why size is measured in virtual bytes
Blocks have a weight limit of 4 million units. Signature data counts as one unit per byte and the rest as four. Dividing weight by four gives virtual bytes, so a block holds 1 million of them.
A common payment with one input and two outputs is about 140 virtual bytes with modern addresses and about 225 with the oldest kind. Each extra input adds roughly 68 or 148. A wallet full of small coins makes bigger, dearer transactions.
What fees add to a block
Example figures: a full block at an average of 3 satoshis per virtual byte collects 3 million satoshis, or 0.03 BTC. With a subsidy of 3.125 that is 0.95% of the reward. At an average of 50 it collects 0.5 BTC, 13.8% of the reward.
A fee spike therefore lifts mining income noticeably for as long as it lasts. How much reaches you depends on the payout scheme: FPPS spreads it, PPLNS shares the blocks found, plain PPS leaves it with the pool.
Speeding up a stuck payment
Two tools exist. Replace-by-fee sends the same payment again with a higher fee. Child-pays-for-parent spends the unconfirmed coins onward with a fee high enough to cover both, so a miner takes the pair together.
Miners sort by such packages and not by single transactions, which is why the second method works. If neither is possible, waiting is safe. Nothing is lost while a transaction is unconfirmed.
The same knowledge saves money on payouts. Combine small coins in a quiet week, when a low rate confirms within hours.
A pool does all of this on a larger scale. When it pays a thousand members in one transaction, each output adds only about 31 virtual bytes, so the cost per person is small.
Worked example
A 140-virtual-byte transaction paying 5 sat/vB carries a fee of 140 × 5 = 700 satoshis, or 0.000007 BTC.
Example figures, not live data.
Step by step
- Look up the present fee bands in a mempool viewer.
- Choose a rate that matches how soon you need the payment.
- Check the transaction size in your wallet.
- Multiply the two to see the fee before you sign.
Common mistakes
- Comparing fees as a percentage of the amount sent.
- Sending many tiny payouts to one wallet and consolidating them in a busy week.
- Panicking over an unconfirmed payment and sending it twice from different coins.
Common questions
Do miners set the fee?
No. Users offer a rate and miners choose what to include, usually the highest first.
Are fees higher after a halving?
Not automatically. They follow demand for block space.
Does a miner pay fees on payouts?
Either the pool includes it or takes it from the payout. The pool’s page says which.