Taproot is far more vast than this, this is just an overview of how taproot transaction fee will look like, it will only cover the taproot transaction fee and nothing more. To know more about Taproot, you can visit the links under 'more about taproot' below.
In any comparison, I will more be using native segwit (P2WPKH) as it has the lowest fee if comparing native segwit with nested segwit, and legacy which has the highest fee, especially the uncompressed legacy address transactions.
IntroductionAs a result of schnorr signature in MuSig, keys are aggregated into a single key (master key), providing a valid signature which makes low transaction fee possible as all M-of-N transactions requires only the resulting valid key (master key) and its signature for transactions,
this makes multisig payment to have the same fee as single public key transactions.This is not only limited to multisig transactions but also
taproot makes consolidation more possible with low fee as a result of lower input virtual size. Also as a result of
lower input virtual size (vbyte), this makes transactions with many inputs but just having one or two outputs very low if compared to segwit (P2WPKH) transactions.Input and output virtual size (in vbyte)One of reasons taproot transaction is having low fee is as a result of the transaction input, the input vbyte of taproot transaction is far lower than the input vsize of segwit (P2WPKH). But, its output vsize is otherwise, its output vsize is larger than segwit (P2WPKH) output vbyte, even larger than that of nested segwit and legacy.
Transaction of
1 input and 1 output with the use of
Input*input vsize + output*output vsize + 10 +/- input to get the transaction vsize (vbyte).
Type | Input vbyte | Output vbyte | transaction vbyte
-------------------------+----------------- +----------------------+--------------------------
P2TR | 57.5 | 43 | 111
Native segwit | 68 | 31 | 109.5
Nested segwit | 93 | 32 | 134
Legacy | 140 | 34 | 192
P2TR, Pay-to-taproot
Although, taproot has low input vsize, but its output vsize is larger and will result to native segwit having slightly lower fee if a transaction is having many outputs with 1, 2 or very few inputs depending on transaction output vsize.
Larger output vsize (vs segwit)Taproot transaction has 43 vbyte per count, segwit (PWPKH) vbyte per count is 31, this will result to transaction with 1 input, two inputs or very few inputs with very many output to have higher fee if taproot transaction is compared with segwit (P2WPKH) transaction. Taken below table as an example, taproot transaction output vsize in comparison with segwit (P2WPKH) transaction output vsize while the input remain constant as 1. From the table, the more there are more output in a transaction, the more taproot transaction fee will be getting higher if compared with segwit transaction.
With 1 or few input while paying to many addresses, segwit (P2WPKH) will save much more on fee.Transaction count | P2TR (in vbyte) | Native segwit (in vbyte)
-------------------------------+----------------------------------------+-------------------------------------
1 input, 1 outputs | 111 | 109.5
1 input, 2 outputs | 154 | 140.5
1 input, 5 outputs | 283 | 233.5
1 input, 10 outputs | 498 | 388.5
Benefits of pay-to-taproot in relation to low feeAlthough, in few cases, segwit (P2WPKH) transaction fees are lesser than P2TR transaction fee which has been explained above, but there are cases P2TR transaction fee is lower. The first is in multisig transactions, while the second is during high input vsize with just very low output vsize which also result to reduced fee in input consolidation.
Low fee high-input-size transactions and consolidationP2TR input vsize is lesser than that of segwit (P2WPKH), this makes transactions with high input but low output to be cheaper. Also, this makes consolidation possible with lower fee.
P2TR will be a good option for those that often consolidate and people that receives many inputs, just like having a shopping site or a site while using bitcoin as a payment option.Transaction count | P2TR (in vbyte) | Native segwit (in vbyte)
---------------------------------+---------------------------------------+-------------------------------------
1 input, 1 outputs | 111 | 109.5
2 input, 1 outputs | 168.25 | 177.25
5 input, 1 outputs | 340 | 380.5
10 input, 1 outputs | 626.25 | 719.25
Multisig transactionsIn m-of-n P2SH and P2WSH transactions, the more the number of keys required in a transaction, the higher the fee. For example, transaction fee that will be required for 1 input and 1 output will be higher for 2-of-5 transaction than in 2-of-3 transactions because the higher the number of keys (m) involved, the higher the transaction fee. With schnorr signature in taproot, even 15-of-15 transactions with 1 input and 1 output will have the same transaction fee like single key wallets, this is as a result of key aggregation in which all the keys involved will be aggregated and produce one valid key and one signature. Only one key and one signature which is valid and help privacy as blockchain observers will not be able to distinguish between single public key transactions and pay-to-taproot multisig transactions.
Pubkey1 + Pubkey2 + Pubkey = PubkeyX
Signature1 + Signature2 + Signature3 = SignatureXThis will help in people deciding to make use of multisig wallets because they are more secure, providing a means of recovery in a way if 1 key is lost, the fund can be moved to another newly created wallet.
* Also, making consolidation possible with lower fee on multisig wallets.
Probably few people can be discouraged to use multisig wallet to consolidate, the reason is the very high input vsize. The below table shows how 2-of-3 p2sh and p2wsh input vsize are as 2 times or more higher if compared to pay-to-taproot.
Counts | P2SH | P2WSH | P2TR
--------------+-----------+--------------+---------------
1 input | 297 | 104.5 | 57.5
2 input | 594 | 209 | 115
5 input | 1485 | 522.5 | 287.5
10 input | 2970 | 1045 | 575
Yet, the transaction fee still also increasing as the number of key needed for transaction increases, this makes P2TR has lower fee while consolidating using multisig wallet.
ConclusionAs a result of keys aggregation, taproot transactions will have low fee just like wallet with single public key. Also, taproot will make input consolidation more cheaper.
Taproot proposalOpen source bitcoin transaction size calculatorMore about taprootRe: [Education] Bitcoin Privacy and AnonymityRe: Want to know about the technical changes regarding to Taproot UpgradeTaproot - The biggest upgrade for Bitcoin since 2017 & documents to read
More about bitcoin transactionsMinimizing bitcoin transaction feeMempool empty! Use this opportunity to Consolidate your small inputs!List of Bitcoin Mempool Viewers for Reference