TeachMeBitcoin

The Witness Discount & Block Weight

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

The Witness Discount & Block Weight

SegWit did not just change how transactions are structured; it changed how we measure the size of a Bitcoin block. It replaced the 1MB "Size Limit" with a 4 million "Weight Unit" (WU) Limit.

1. What is Block Weight?

To encourage users to move to SegWit and to make the network more efficient, the developers introduced a Witness Discount.

2. The Calculation

The "Weight" of a transaction is calculated as: $$Weight = (BaseSize \times 3) + TotalSize$$

Or, more simply: $$Weight = (BaseSize \times 4) + (WitnessSize \times 1)$$

3. Why the discount?

Signatures are the heaviest part of a transaction, but they are also the part that nodes can discard (prune) after they have been verified.

4. Virtual Size (vSize)

Since we still want to think in "bytes" for fee calculation, we use Virtual Size: $$vSize = Weight / 4$$

5. Economic Impact

Users paying with Native SegWit addresses (bc1q) pay up to 30-40% lower fees than users on Legacy addresses (1...) for the exact same transaction. This is a direct result of the Witness Discount.

Measurement Unit Limit
Traditional Size Bytes N/A (Obsolete)
Block Weight Weight Units (WU) 4,000,000
Virtual Size vBytes ~1,000,000

In the next section, we will compare Nested vs. Native SegWit.

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