user106281: I would like to know how inputs and outputs affects my bitcoin transaction fee using legacy address, and how using a segwit address will decrease the same  transaction?
and how they will be calculated?
if input and outputs affects how can avoid that, apart of segwit address method?
thanks a lot.

user106165: The number of inputs and outputs affect transaction size (bytes). The more inputs/outpus you have, the larger is the transaction size. Segwit addresses reduces transaction size.
So the best is to always consolidate your inputs when the fees are low, so that we the network is congested you can make a transaction with a single input and two outputs (one for change).
To consolidate inputs just make a transaction with the inputs you want to consolidate to an address of yours. Electrum wallet allows you to choose which input you want to expend.
At this website you can play around with the number of inputs, outputs and address type, and the respective fee for the transaction.
https://www.buybitcoinworldwide.com/fee-calculator/

106281: <p>I would like to know how inputs and outputs affects my bitcoin transaction fee using legacy address, and how using a segwit address will decrease the same  transaction?</p>

<p>and how they will be calculated?
if input and outputs affects how can avoid that, apart of segwit address method?</p>

<p>thanks a lot.</p>
 106165: <p>The number of inputs and outputs affect transaction size (bytes). The more inputs/outpus you have, the larger is the transaction size. Segwit addresses reduces transaction size.</p>

<p>So the best is to always consolidate your inputs when the fees are low, so that we the network is congested you can make a transaction with a single input and two outputs (one for change).</p>

<p>To consolidate inputs just make a transaction with the inputs you want to consolidate to an address of yours. Electrum wallet allows you to choose which input you want to expend.</p>

<p>At this website you can play around with the number of inputs, outputs and address type, and the respective fee for the transaction.
<a href="https://www.buybitcoinworldwide.com/fee-calculator/" rel="nofollow noreferrer">https://www.buybitcoinworldwide.com/fee-calculator/</a></p>
