Why does Electrum include seemingly unnecessary inputs in a transaction? I want to make a payment of x BTC.
My Electrum wallet shows two &quot;output points&quot; in the Coins tab (with the same address). Both of these show an amount much larger than x BTC.
If go to the Send tab and start to make a payment to an address, then click &quot;Pay...&quot; and then &quot;Advanced&quot;, I can see two inputs, which seem to correspond to the two &quot;output points&quot; in the Coins tab and show the same amounts. The transaction size is 447 bytes. I abandon this transaction.
If I go to the Coins tab, right click on one of the two &quot;output points&quot; and choose &quot;Spend&quot;, Electrum shows a green banner saying &quot;Coin control active&quot;. If I start to make the same payment, the &quot;Advanced&quot; dialog now only shows one input and the transaction size is 226 bytes.
This looks to me as though I can make the same transaction and incur a smaller fee by using &quot;coin control&quot;. Am I missing something? Is there a disadvantage or risk to doing this? I'm thinking there must be, otherwise Electrum would just do it automatically.
I could understand needing two inputs to the transaction if x was more than the amount associated with each one of my two &quot;output points&quot;, but it isn't.
Thanks!
Electrum used both UTXO, even if only one was needed, to protect your privacy albeit at the expense of higher fee.
This is from the Electrum source code and explain this choice:
Attempts to better preserve user privacy.
First, if any coin is spent from a user address, all coins are.
Compared to spending from other addresses to make up an amount, this reduces
information leakage about sender holdings.  It also helps to
reduce blockchain UTXO bloat, and reduce future privacy loss that
would come from reusing that address' remaining UTXOs.
Second, it penalizes change that is quite different to the sent amount.
Third, it penalizes change that is too big.



This looks to me as though I can make the same transaction and incur a
smaller fee by using &quot;coin control&quot;. Am I missing something?

No, you are right, if you wish focus more on fee minimization instead of privacy, you can achieve better result doing so manually than rely on the Electrum coin control policy.

Is there a disadvantage or risk to doing this? I'm thinking there must
be, otherwise Electrum would just do it automatically

There are multiple goal you may want achieve with a coin selection strategy and there is no one strategy that solves all problems, so wallets adopt different strategies depending on their priorities; but these strategy are meant for unskilled user or user that don't care these things (eg. the Coins tab is hidden by default on Electrum)... If you know how bitcoin transactions works and what UTXO are, probably you prefer do your own coin selection manually based on the needs of a specific transaction.