← Academy library

Crypto / Evergreen

Virtual size explains why transaction formats affect fees

Bitcoin's weight and virtual-size measures account for transaction data under the protocol's rules rather than treating every serialized byte identically.

THE IDEA TO KEEP

Transaction-format efficiency affects the space being purchased, while the market determines the price per relevant unit.

The distinction that matters

Bitcoin's weight and virtual-size measures account for transaction data under the protocol's rules rather than treating every serialized byte identically. A transaction's fee is the difference between the value of its inputs and the value assigned to its outputs, while its fee rate relates that fee to its weight-adjusted size. Miners normally have incentives to consider the revenue available from the transactions they include, subject to validity and dependencies. A large payment need not consume much more space than a small payment.

How the mechanism works

Witness data receives different weight treatment from other transaction data, making the composition of a transaction relevant to its fee calculation. A fee estimate is a forecast about competition for inclusion, not a reservation of future block space. New transactions arrive, blocks occur at variable intervals, and miners can apply differing policies. The useful unit of analysis is therefore the transaction or transaction package at a particular fee rate.

A worked situation

Consider this hypothetical situation: A hypothetical wallet compares two spending formats that transfer the same value but use different arrangements of signatures and other authorization data. The constructions can have different virtual sizes, and therefore different total fees at the same quoted fee rate.

Where interpretation can fail

A raw byte count from one interface may not match a wallet's fee-estimation denominator, creating an apparent discrepancy that is purely definitional. Identify whether the displayed unit is bytes, weight units, or virtual bytes before applying a fee rate or comparing examples. Transaction-format efficiency affects the space being purchased, while the market determines the price per relevant unit.

The wider technical implication

Virtual size is derived from transaction weight under Bitcoin's serialization rules. It is a resource-accounting measure rather than a separate physical file that must be stored somewhere. Wallets convert the transaction's relevant size into a fee budget using an estimated rate, and explorers may display both raw size and virtual size. A reader comparing those fields should not assume a discrepancy means missing data. The distinction reflects how the protocol prices different portions of the transaction for block-capacity purposes, particularly the separation of witness and non-witness data.

A global perspective

Network fees are separate from exchange withdrawal charges, service fees, and tax treatment. Compare which party sets each charge before comparing providers.

Sources & further reading

Bitcoin Developer Guide — Transactions ↗Bitcoin Developer Guide — Payment processing ↗

Sources checked Oct 27, 2026. Educational examples. Historical observations are attributed to their sources. No affiliation with cited organizations.

Make the idea stick.

Mark complete when you are ready. Reaching the end alone does not mark a lesson complete.

What assumption in this guide would change the result in a different situation? Revisit the example and explain that change in your own words.

Explore crypto →

KEEP THE CONNECTION

Your next useful question.

Your saved guides →