<blockquote>
  <p>When you pay from a P2SH address, does its change go into a P2SH address too?</p>
</blockquote>

<p>No. Not necessarily. You can include p2pkh/p2sh/p2wpkh/p2wsh outputs.</p>

<blockquote>
  <p>Because that means you must always keep the redeem script around to make the change addresses</p>
</blockquote>

<ul>
<li><p>If you consume <code>P2(W?)SH UTXOs</code> to produce new <code>P2(W?)SH</code> outputs, you generally keep the redeem script or communicate them well in advance with the recipient (if not yourself).</p></li>
<li><p>If you consume <code>P2(W?)SH UTXOs</code> to produce new <code>P2(W?)PKH</code> outputs, you do not need to communicate the redeem script as the recipient can work it out themselves.</p></li>
</ul>

CC BY-SA 4.0
2018-06-25T13:01:33.087Z
2018-06-25T13:01:33.087Z
rny
<p>No, the change output can go to any kind of address.</p>

<p>There is no link between the input and output address types. Some wallets, however, do make the change address a P2SH one if you are sending from a native segwit address to a regular P2SH or P2PKH address to help obfuscate which output is the change a bit more.</p>

CC BY-SA 4.0
2018-06-25T13:00:12.633Z
2018-06-25T13:00:12.633Z
Raghav Sood
<p>Because that means you must always keep the redeem script around to make the change addresses, and if it's a multisignature script, then you'll need to have the script with those public keys around, ready to go too.</p>

<address><p2sh>
When you pay from a P2SH address, does its change go into a P2SH address too?
randomshinichi
# When you pay from a P2SH address, does its change go into a P2SH address too?

(Asked by: username_0 on 2018-06-25)

Because that means you must always keep the redeem script around to make the change addresses, and if it's a multisignature script, then you'll need to have the script with those public keys around, ready to go too.

**Tags:** address, p2sh


---

## 2 answers

### Answer by username_1 on 2018-06-25. Score: 1 | Accepted answer

> When you pay from a P2SH address, does its change go into a P2SH address too?

No. Not necessarily. You can include p2pkh/p2sh/p2wpkh/p2wsh outputs.

> Because that means you must always keep the redeem script around to make the change addresses

* If you consume `P2(W?)SH UTXOs` to produce new `P2(W?)SH` outputs, you generally keep the redeem script or communicate them well in advance with the recipient (if not yourself).
* If you consume `P2(W?)SH UTXOs` to produce new `P2(W?)PKH` outputs, you do not need to communicate the redeem script as the recipient can work it out themselves.


---

### Answer by username_2 on 2018-06-25. Score: 0

No, the change output can go to any kind of address.

There is no link between the input and output address types. Some wallets, however, do make the change address a P2SH one if you are sending from a native segwit address to a regular P2SH or P2PKH address to help obfuscate which output is the change a bit more.


---

