~/cameron

Minimum UTXO Value

Metadata
  • Last Updated:
  • Published:
  • Tags: #bitcoin
  • Summary: A look at what Bitcoin dust is, historical fee rates, how fees are calculated, and a decision on a minimum UTXO value to stay above the dust threshold.

Due to recent high fee rate periods, many were advocating for consolidating low-value UTXOs to ensure they wouldn’t become dust. I was curious whether I had UTXOs that were in danger of becoming dust.

While there is a technical definition of dust built into Bitcoin Core’s code, I am more broadly referring to the colloquial definition of dust: UTXOs with a value less than the transaction fees required to spend them, which have become uneconomical to move.

Because fee rates are the primary variable determining the dust threshold, whether a UTXO is considered dust can change over time. I took a look at historical fee rates, how fees are calculated, and included qualitative projections of future block space demand to determine a UTXO value that will stay above the dust threshold for myself.

TL;DR;

Taproot UTXO, 65k sats

Historical Fee Rates

The highest fee periods in Bitcoin history have been 2018, 2021, and 2023:

Historical graph of Bitcoin mempool by vBytes
Source: mempool.space

I’ve selected 4 blocks to deep dive, based on their proximity to mempool peaks in those three years, as well as a more “normal” current block:

Box and whisker plot of fee rates across blocks
Outliers removed
Fee Rate (sats/vB)504000680000782400801171
Minimum111955
Median1192692712
Mode1182692712
Maximum109935783011280

The first visible difference based on the box and whisker plot is the noticeable decrease in fee rate variance, likely attributable to better fee estimations. Second, is the 86% decline in median fee rate with an average 194 sats/vB between blocks 504000 and 680000 vs. 27 sats/vB in block 782400.

Note

I’m taking a naïve view of transactions, so transactions pushed through using CPFP aren’t coalesced into a single transaction with a blended, “effective” fee rate. In theory, this should reduce fee rate spread, but will be relatively centered around the median.

I don’t expect to see major differences in fee rates by script type, but since I have the data available here’s what that looks like (it’s as expected):

Box and whiskper plot of fee rates by script type
Fee Rate axis capped at 50 sats/vB to better show the differences between script types.

Transactions are shifting towards the newer P2WPKH, P2WSH, and P2TR script types:

Transactions (%)504000680000782400801171
P2PKH97%51%22%32%
P2SH3%41%28%26%
P2WPKH0%7%38%38%
P2WSH0%0%1%1%
P2TR0%0%12%3%

Where the script types do differ is in the total size of the transaction and therefore, the total fees paid.

Box and whisker plot of total fees by script type
Fee Rate axis capped at 300000 sats/vB to better show the differences between script types.

P2WSH and P2TR transactions appear to be paying higher median fees than other script types.

Box and whisker plot of total fees by script type, zoomed
Fee Rate axis capped at 18000 sats/vB to better show the differences between script types.

To better understand the cause of this, we have to know how vBytes are allocated during the construction of a transaction.

Calculating Transaction Size

The total fees paid to move a given UTXO depend on the vBytes needed to construct a transaction. Jameson Lopp has a transaction size calculator you can use to see how differing script types, numbers of inputs/outputs, and other variables will impact the resulting transaction size. Bitcoin OpTech has a transaction size calculator that breaks out how each component of a transaction relates to an amount of vBytes.

The table below shows the amount of vBytes required by a transaction consisting of a single input being spent to a single output.

Output →
Input ↓
P2PKHP2SHP2WPKHP2WSHP2TR
P2PKH192190189201201
P2SH (2-of-3)341339338350350
P2WPKH112.5110.5109.5121.5121.5
P2WSH (2-of-3)149147146158158
P2TR (Keypath)10210099111111

So in ideal dust spending conditions, you would hold a P2TR UTXO and spend it to a P2WPKH output. An input requires more vBytes than an output, so the ideal will change if you are spending few inputs to many outputs.

Note

Surprisingly, despite P2SH and P2PKH inputs being the most expensive (in terms of total fees), the fee data above doesn’t bear that out. Without doing further digging, I assume it’s due to multi-sig being more common with other script types.

Choosing a Minimum UTXO Value

Putting everything together, here are my assumptions for choosing my minimum UTXO value:

  1. I want to be able to send the UTXO to any type of output: assume I’m spending to a P2WSH or P2TR output which are the most expensive
  2. Although median fee rates have come down since the last peaks, I’ll assume a pretty high fee rate: 300 sats/vB
    1. Additional Bitcoin adoption in the future will put upward pressure on block space demand. Current adoption is estimated in the low single-digit percentage (~2.5%) of the world’s population.
    2. Non-Bitcoin changes could also affect block space demand (e.g., Ordinals)
  3. Bitcoin changes slowly and updates that reduce vBytes needed to spend a UTXO may not come. They could require more vBytes.

Given the above, I want to hold a P2TR UTXO so my projected dust threshold would be 33,301 sats. That’s just the threshold at which I’m able to spend the UTXO without requiring an additional input. To make the UTXO useful, it requires excess value. I’ve settled on 65,000 sats as a minimum UTXO value for a round number that (at current USD exchange rates) would leave me with ~$10 in spending power.