TeachMeBitcoin

Data Capacity & vBytes

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

Data Capacity & vBytes

In the early days of Bitcoin, a byte was just a byte. If your transaction was 200 bytes, you paid for 200 bytes. However, with the activation of SegWit, the relationship between a physical byte and its "Cost" changed.

1. Physical Bytes vs. Virtual Bytes

When you save a transaction to a hard drive, it takes up Physical Bytes. When the Bitcoin network calculates your fee, it uses Virtual Bytes (vBytes).

2. Why the distinction?

The network wants to encourage users to use the "Witness" area (for signatures) because that data doesn't need to be kept in the UTXO set forever.

3. The 1MB Legacy Limit

Old nodes still only accept blocks that are 1,000,000 physical bytes in the "Base" area.

4. Measuring "Efficiency"

A transaction's efficiency is often measured by its vSize to Weight ratio.

5. The Byte-Cost of Privacy

Every byte you add to a transaction increases your fee.

Transaction Type Physical Size Virtual Size (vSize)
Legacy (P2PKH) 226 bytes 226 vBytes
Native SegWit 222 bytes ~141 vBytes

In the next section, we will analyze Raw Byte Mapping (ASCII vs. Binary).

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