TeachMeBitcoin

Feerate Calculation (sats/vB)

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

Feerate Calculation (sats/vB)

Miners do not care about the total value of your transaction (e.g., whether you are sending 1 BTC or 1,000 BTC). They care about the density of the fee—how much you are paying for every byte of data you take up in the block.

1. What is Virtual Size (vSize)?

With the SegWit upgrade, Bitcoin introduced "Weight Units" and Virtual Size (vSize).

2. The Feerate Metric

The standard unit for measuring Bitcoin fees is satoshis per virtual byte (sats/vB).

Feerate = Total Fee (sats) / vSize (bytes)

3. The Blockspace Market

Bitcoin's blockspace is a limited resource (roughly 1 vMB every 10 minutes). Miners act as rational economic actors: they sort all transactions in the Mempool by feerate and pick the highest ones first.

4. Why Size Matters

A transaction with many inputs will be much larger in bytes than a transaction with one input.

Metric Calculation
Total Fee Input Sum - Output Sum
vSize (Weight / 4) rounded up
Feerate Fee / vSize

In the next section, we will look at Miner Incentives and the coinbase transaction.

☕ 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!