Block Weight

Bitcoin's post-SegWit size measure, where witness bytes cost a quarter of what base bytes cost.

Basically

Block weight is Bitcoin's newer way to measure how much data a block contains. It replaced the old block size limit, which simply counted bytes.

Key Takeaways

  • SegWit (BIP 141) activated in August 2017 and replaced Bitcoin's 1 MB block size limit with a 4,000,000 weight unit (WU) cap.
  • Non-witness bytes cost 4 WU each and witness bytes cost 1 WU each. This discount encourages SegWit adoption and lets blocks exceed 1 MB on disk.
  • Real blocks average roughly 1.5 to 2.0 MB, rather than the theoretical 4 MB maximum, because real transactions always mix witness and non-witness data.

What Is Block Weight?

Block weight measures how much data a Bitcoin block contains in weight units (WU), not raw bytes. Bitcoin previously capped each block at 1,000,000 bytes (1 MB). The simple byte limit contributed to congestion and high fees as the network grew and demand peaked.

BIP 141 (Segregated Witness) replaced the byte cap with a limit of 4,000,000 WU per block. The change activated at block 481,824 on 24 August 2017. Signature and witness data cost less weight than other transaction data, effectively increasing throughput without changing the block header structure or requiring a hard fork.

How It Works

Every Bitcoin transaction has two categories of data after SegWit. These categories are witness data and non-witness data.

The Weight Formula

BIP 141 defines the simple formula used to calculate block weight. The formula assigns different costs to non-witness and witness data.

Non-witness data costs 4 WU per byte, while witness data costs 1 WU per byte. A legacy transaction without witness data weighs four times its byte size. A SegWit transaction receives a discount on signature data, so it weighs less per byte of total serialised size.

Weight to Virtual Bytes

Fee estimation and mempool policy use virtual bytes (vbytes) instead of raw weight units. One vbyte equals 4 WU.

Fee rates are expressed in sats per vbyte. SegWit transactions therefore pay lower absolute fees than equivalent legacy transactions at the same fee rate. The built-in discount encourages wallet developers and users to adopt SegWit address types.

Practical Block Sizes

The 4,000,000 WU limit does not directly mean 4 MB blocks. A block could reach 4 MB only if it consisted entirely of witness data. Every transaction must include non-witness components, including inputs, outputs, version and locktime, so that is impossible in practice.

Real-world blocks contain a mix of transaction types. Average Bitcoin block size ranged from approximately 1.5 to 2.0 MB as of late 2026, with most blocks approaching the 4,000,000 WU limit. Heavy Ordinals inscription activity drove the all-time high daily average block size to roughly 2.5 MB in February 2023.

Why the Witness Discount Exists

The 75% discount for witness data was not arbitrary. It reflects fundamental differences in how witness and non-witness data affect the network.

Fee Optimisation

You can reduce transaction fees by choosing transactions with lower weight. Wallets that use native SegWit addresses (bech32 and P2WPKH / P2WSH) produce lower-weight transactions than legacy or wrapped SegWit formats. The weight reduction translates directly into lower costs during periods of high fee market activity.

The research article on Bitcoin fee market dynamics gives a deeper analysis. It explains how block weight interacts with fee dynamics.

Mining and Block Construction

Miners construct block templates to maximise fee revenue within the 4,000,000 WU weight limit. The block packing algorithm selects transactions by fee-per-weight-unit ratio (feerate), not simply fee-per-byte. A SegWit transaction paying 10 sats/vbyte is therefore more attractive per unit of block space than a legacy transaction paying the same nominal rate.

Transaction Batching

Exchanges and payment processors use transaction batching to consolidate many payouts into a single transaction. The witness discount reduces the marginal weight of each additional input signature. Batched SegWit transactions are therefore substantially more efficient than batched legacy transactions.

Layer 2 Efficiency

The witness discount directly benefits layer 2 protocols. Lightning Network channel opens and closes, splicing operations and submarine swaps require signature-heavy on-chain transactions, so lower weight reduces their fees and improves the economics of Bitcoin's scaling layers. Spark, as a Bitcoin layer 2, benefits whenever users move funds on-chain through cooperative or unilateral exits.

Block Size Debate

The introduction of block weight formed part of the broader Bitcoin block size debate that dominated 2015 to 2017. Critics argued that the weight system was an indirect capacity increase and should have been a straightforward block size raise. Supporters countered that the approach was superior because it aligned costs with actual network burden and enabled SegWit's malleability fix without a hard fork.

Complexity for Developers

The weight system is more complex than simple byte counting. Wallet and fee estimator developers must distinguish between raw bytes, weight units and virtual bytes. Incorrect transaction weight estimates can lead to overpaid fees or stuck transactions in the mempool during congestion.

Theoretical vs. Practical Capacity

The gap between the theoretical 4 MB maximum and the practical 1.5 to 2.0 MB average can cause confusion. Some commentators cite 4 MB to argue that Bitcoin has scaled sufficiently, while others cite the real-world average to argue the opposite. Actual capacity depends on each block's mix of transaction types, so simple comparisons can mislead.

Witness Data Growth

Witness-heavy protocols can push block sizes closer to the theoretical maximum because witness data is discounted. Ordinals inscriptions and certain OP_RETURN alternatives place large amounts of data in the witness section. Their use has renewed debate about whether the witness discount is being used as originally intended and whether the block space market adequately prices these data-heavy transactions.

The glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.

0

← All 1876 glossary terms