Calculate a Bitcoin fee rate in sat/vB or sat/byte from the total fee and transaction size, or find the fee for a given size and fee rate.
Sat Per Byte Formula
Divide the fee in satoshis by the matching size measure. The result is sat/B for serialized bytes, or sat/vB for virtual bytes:
Variables:
- SPB is the fee rate in sat/B or sat/vB, matching the selected size basis
- F is the total fee for the transaction (sats)
- TS is serialized transaction size in B, or virtual size in vB; these measures are not interchangeable
The other directions are F = SPB ร TS and TS = F / SPB. One BTC equals 100,000,000 satoshis. The calculator retains positive fractional inputs and results as arithmetic planning quantities; actual transaction fees are whole satoshis and actual B/vB sizes are whole units. A separate whole-satoshi fee ceiling rounds upward without changing the arithmetic result or constructing a transaction.
What is Sat Per Byte?
Sat/B expresses satoshis per serialized byte; sat/vB expresses satoshis per virtual byte. BIP141 defines virtual size as transaction weight divided by four, rounded up. Weight is three times stripped size plus total serialized size, so witness transactions can have different serialized and virtual sizes. Bitcoin Core reports size, vsize and weight separately. A byte count alone cannot be converted to vbytes without more transaction information. Changing the calculator’s basis reinterprets the supplied numbers; it does not convert them. No current fee recommendation or confirmation-time prediction is supplied.
How to Calculate Sat Per Byte?
The following steps outline how to calculate the Sat Per Byte.
- First, determine the total fee for the transaction (F) in satoshis.
- Next, obtain the matching size (TS): serialized bytes for sat/B or virtual bytes for sat/vB, for example from your wallet or decoded transaction.
- Next, gather the formula from above: SPB = F / TS.
- Finally, calculate the rate and retain its matching unit, sat/B or sat/vB. For another direction, select total fee or size explicitly.
- After inserting the variables and calculating the result, check your answer with the calculator above.
Example Problem :
Use the following variables as an example problem to test your knowledge.
Total fee for the transaction (F) = 300 sats
Transaction size (TS) = 225 serialized bytes. The rate is 300 / 225 = 4/3 โ 1.33333333 sat/B, and the fee is 0.000003 BTC. This example supplies serialized size; it does not establish the transaction’s virtual size.
