<p><a href="https://en.bitcoin.it/wiki/Transaction_fees" rel="noreferrer">https://en.bitcoin.it/wiki/Transaction_fees</a></p>

<ol>
<li><p>A fee may not be required at all, if the priority of the transaction is high enough. Generally 1 BTC, one day old, is enough age and balance that you can send without a fee.</p></li>
<li><p>If any of the individual payments are below 0.01 BTC, a minimum fee will always be required.</p></li>
<li><p>The minimum fee, when required, is 0.0005 BTC per 1000 bytes of total transaction.</p></li>
<li><p>The contribution of each input and each output to the total size is somewhat consistent, it only varies largely if there are compressed keys (standard for newly generated addresses on a recent client version), some examples:</p></li>
</ol>

<p>A) 1 input/1 output (sending exact balance of one input) = 191 bytes
B) 1 input/2 output (sending money from single input with some change) = 258 bytes
C) 2 input/1 output (consolidating two address balances to one output) = 404 bytes
D) 12 input/2 output (sending from many inputs with change) = 1851 bytes</p>

<p>The easiest way to empty a wallet is to attempt to spend the entire balance with the transaction you desire, attempt to send it, and look at the "exceeds your balance after a 0.0xxx fee is included" message. Subtract the fee from the amount you are sending, and you should now be sending the entire wallet balance including the fee.</p>

CC BY-SA 3.0
2013-02-15T12:49:06.030Z
2013-02-15T12:49:06.030Z
James Fenway
<p>First of all, this refers to </p>

<ul>
<li><a href="https://bitcoin.stackexchange.com/questions/1195/how-to-calculate-transaction-size-before-sending">How to calculate transaction size before sending</a></li>
<li><a href="https://bitcoin.stackexchange.com/questions/3400/what-is-the-exact-formula-for-calculating-transaction-fees">What is the exact formula for calculating transaction fees?</a></li>
</ul>

<p>I want to estimate the TX-Fee I would have to pay in a simple scenario where my wallet contains only 1 address Z that has received X payments.</p>

<p>I then want to pay all the wallets balance to Y different addresses at once.</p>

<p>Because I want to spent all of its balance, it would be great to know the transaction-fee, so that I can reduce Y, or pay the fee to Z in advance.</p>

<p>Since I prefer a worst-case-calculation, is it legit to count every incoming payment to my address as Input?</p>

<p>Is the following calculation correct?</p>

<pre><code>normal_fee := 0.0005                            // Taken from Bitcoin-QT
size := X * 148 + Y * 34 + 10 +- X
fee := normal_fee / (1 - size / 500kB)
</code></pre>

CC BY-SA 3.0
2013-05-31T05:50:45.973Z
It would be awesome if a client told you how long you will have to wait (or how much to increase the transaction) to eliminate the fee.
Brian Low
CC BY-SA 3.0
2015-10-08T11:11:55.380Z
Most clients are better about it now.    There is also now http://CoinTape.com which gives a per-byte estimate.
Stephen Gornick
<transaction-fees>
Calculator for estimated TX-Fees
Gundon
# Calculator for estimated TX-Fees

(Asked by: username_0 on 2013-02-10)

First of all, this refers to

* [How to calculate transaction size before sending](https://bitcoin.stackexchange.com/questions/1195/how-to-calculate-transaction-size-before-sending)
* [What is the exact formula for calculating transaction fees?](https://bitcoin.stackexchange.com/questions/3400/what-is-the-exact-formula-for-calculating-transaction-fees)

I want to estimate the TX-Fee I would have to pay in a simple scenario where my wallet contains only 1 address Z that has received X payments.

I then want to pay all the wallets balance to Y different addresses at once.

Because I want to spent all of its balance, it would be great to know the transaction-fee, so that I can reduce Y, or pay the fee to Z in advance.

Since I prefer a worst-case-calculation, is it legit to count every incoming payment to my address as Input?

Is the following calculation correct?

```
normal_fee := 0.0005                            // Taken from Bitcoin-QT
size := X * 148 + Y * 34 + 10 +- X
fee := normal_fee / (1 - size / 500kB)

```

**Tags:** transaction-fees

> **Comments:**
> **username_1**: It would be awesome if a client told you how long you will have to wait (or how much to increase the transaction) to eliminate the fee.  
> **username_2**: Most clients are better about it now.    There is also now http://CoinTape.com which gives a per-byte estimate.  

---

## 1 answers

### Answer by username_3 on 2013-02-15. Score: 6

<https://en.bitcoin.it/wiki/Transaction_fees>

1. A fee may not be required at all, if the priority of the transaction is high enough. Generally 1 BTC, one day old, is enough age and balance that you can send without a fee.
2. If any of the individual payments are below 0.01 BTC, a minimum fee will always be required.
3. The minimum fee, when required, is 0.0005 BTC per 1000 bytes of total transaction.
4. The contribution of each input and each output to the total size is somewhat consistent, it only varies largely if there are compressed keys (standard for newly generated addresses on a recent client version), some examples:

A) 1 input/1 output (sending exact balance of one input) = 191 bytes
B) 1 input/2 output (sending money from single input with some change) = 258 bytes
C) 2 input/1 output (consolidating two address balances to one output) = 404 bytes
D) 12 input/2 output (sending from many inputs with change) = 1851 bytes

The easiest way to empty a wallet is to attempt to spend the entire balance with the transaction you desire, attempt to send it, and look at the "exceeds your balance after a 0.0xxx fee is included" message. Subtract the fee from the amount you are sending, and you should now be sending the entire wallet balance including the fee.


---

