Calculate the fee from virtual size
Start with two numbers: the transaction’s virtual size and its fee rate. At 12 sat/vB, a 180 vB transaction costs 2,160 sat, or 0.00002160 BTC. The same rate applied to a 350 vB transaction costs 4,200 sat. The rate prices block space, so compare the total fee only after checking the size.
Use the right size field
A transaction’s virtual size reflects how it counts toward the block weight limit. SegWit witness bytes receive less weight than other serialized bytes. A wallet or decoder can report both serialized size and virtual size. Use the vsize field when a quote is in sat/vB, especially if you are checking a transaction that contains witness data.
Convert a Bitcoin Core quote
Bitcoin Core’s estimatesmartfee reports BTC per 1,000 virtual bytes. Multiply a BTC/kvB figure by 100,000 to get sat/vB: 0.00020 BTC/kvB becomes 20 sat/vB. To convert the other way, divide by 100,000. Keep the original unit beside the figure so another reader can reproduce the calculation.
Read the estimate as a target
The confirmation target is expressed in blocks. New transactions may bid for space before the next block, miners may apply different policies and block times vary. The estimate is conditional on what the node has observed. For an already broadcast transaction, read the actual on-chain fee as inputs minus outputs and divide by the transaction’s virtual size when you need its effective rate.
Sources
Prepared with AI assistance. This guide explains protocol behavior for educational use.
Editorial policy (Chinese)