<ul>
<li>Legacy input size: 148 bytes (compressed)</li>
<li><p>Legacy output size: 34 bytes (compressed)</p></li>
<li><p>Segwit input size: 104 bytes </p></li>
<li>Segwit output size: 32 bytes</li>
</ul>

<p>so if your transaction has two inputs and one output total size is ~ 246 Bytes, Don't forget about some more additional bytes for transaction header.</p>

CC BY-SA 3.0
2018-02-28T17:48:10.427Z
2018-02-28T17:55:15.357Z
2018-02-28T17:55:15.357Z
Tailer
<p>I am using Segwit addresses to create transactions. As per my knowledge usage of segwit addresses allows the transactions to process fast with fewer fees as it occupies less space in the block. Could anyone explain how to calculate the fee for transactions using segwit transactions?</p>

CC BY-SA 3.0
2018-02-28T17:16:42.967Z
Sameer, I added a link to your question. As your question is very generic, that should be it. If your question goes deeper, please show us what you have done so far, and where you got stuck. You can edit your question at any time!
pebwindkraft
<transactions><segregated-witness>
How to estimate the optimal fee for transaction(Segwit addresses)?
merklexy
# How to estimate the optimal fee for transaction(Segwit addresses)?

(Asked by: username_0 on 2018-02-28)

I am using Segwit addresses to create transactions. As per my knowledge usage of segwit addresses allows the transactions to process fast with fewer fees as it occupies less space in the block. Could anyone explain how to calculate the fee for transactions using segwit transactions?

**Tags:** transactions, segregated-witness

> **Comments:**
> **username_1**: Sameer, I added a link to your question. As your question is very generic, that should be it. If your question goes deeper, please show us what you have done so far, and where you got stuck. You can edit your question at any time!  

---

## 1 answers

### Answer by username_2 on 2018-02-28. Score: 1 | Accepted answer

* Legacy input size: 148 bytes (compressed)
* Legacy output size: 34 bytes (compressed)
* Segwit input size: 104 bytes
* Segwit output size: 32 bytes

so if your transaction has two inputs and one output total size is ~ 246 Bytes, Don't forget about some more additional bytes for transaction header.


---

