TeachMeBitcoin

Stripped Size vs. Total Size

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

Stripped Size vs. Total Size

One of the most elegant parts of the SegWit upgrade was its backward compatibility. To achieve this, Bitcoin nodes actually handle two different versions of the same transaction size.

1. Total Size

The Total Size is the full count of every single byte in the transaction, including the SegWit Marker and Flag bytes and the entire Witness stack.

2. Stripped Size (Base Size)

The Stripped Size is the size of the transaction after removing all witness data.

3. The 1MB Compatibility Trick

Because witness data is "stripped" out before being sent to old nodes, a block that actually contains 2.5MB of data will only look like 0.9MB to an old node. This is why SegWit was a Soft Fork—it didn't require old nodes to upgrade to stay on the network; they just see transactions as having "empty" signatures.

4. Size Metrics Comparison

Metric Includes Witness? Node Compatibility
Total Size Yes SegWit Nodes
Stripped Size No Legacy Nodes
Weight Yes (Discounted) Consensus Rules

5. Identifying Bloat

By comparing Stripped Size to Total Size, analysts can determine how "witness-heavy" a transaction is.

In the final section, we will build a Python Weight Calculator.

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