J.R. S. answered 02/05/19
Ph.D. University Professor with 10+ years Tutoring Experience
Well, it isn't really the soap that causes the decomposition of H2O2, but the soap is put in there so you can see a rather dramatic visual. It looks like a toothpaste snake, or a volcano of foam. But the decomposition of H2O2 usually requires a catalyst such as iodide ion (I-), otherwise the reaction is too slow and takes a long time.
The decomposition reaction is: 2 H2O2 (aq) ==> 2 H2O (l) + O2 (g) + heat
The decomposition of hydrogen peroxide in the presence of iodide ion occurs in two steps:
H2O2 (aq) + I- (aq) ==> H2O (l) + OI- (aq)
H2O2 (aq) + OI- (aq) ==> H2O (l) + O2 (g) + I- (aq)
Other catalysts are yeast, catalase, etc.