Fees are based on the "size" of a transaction. The size of a transaction is determined as follows:
(Number of Inputs * 148 bytes) + (Number of Outputs * 34 bytes) + 10 bytes
[Note: this is assuming compressed keys, for old uncompressed keys it is (Number of Inputs * 180 bytes) + (Number of Outputs * 34 bytes) + 10 bytes]
Notice, that it is based on the number of inputs... NOT the number of addresses... you can have 10 inputs from 1 address or 1 input from 10 addresses... it will still work out to be 10 inputs and the transaction size will stay the same. If you have more inputs, the size is increased and so is the fee.
Hi i would like to ask because i notice something that can affect the fee.. Because i was transfer my funds to other wallet but the fee is really high but use only 1 address right now in electrum and the old addresses i was used them before but now i want to use only 1 single address all my bitcoin is in 1 address and trying to send it to other wallet but the fee is really high because the other wallet address also in my transaction but i tried to backup the private key and install it again in electrum just to use only 1 single bitcoin address the result of fee is reduced.
My question what actually the reason why reduces the fee when i am using only a single wallet address?
If I'm reading this correctly... you transferred all your coins to one address... and then imported that private key into Electrum? If you did this, then when you attempt to send coins, you will have only 1 input... as all your coins got "merged" into one Unspent Transaction Output (aka UTXO) so the transaction size is smaller and the fee is less.
If you then receive another 10 different payments to that same address, you'll find that if you attempt to send all your coins somewhere else, you will be faced with high fees again, because you would have 11 inputs and your transaction size would be increased again... and the fee would go up.