# Why I get acidic solution at brine anode?

I have decomposed $$\ce{NaCl}$$ solution (brine) with electrolysis and yield $$\ce{NaOH}$$ at cathode, at anode I got acidic while expected was $$\ce{NaClO}$$ (alkaline) if it is $$\ce{HOCl + HCl}$$. Where does sodium ion goes, and if it doesn't, then why?

• The sodium ions go where the electric field drives them. How could they not to? – Ivan Neretin Aug 9 '20 at 8:20
• so the sodium ion goes to sodium hydroxide solution and make hypochlorus acid at the anode – Ananiya Jemberu Aug 9 '20 at 8:23
• Well, basically yes, that's about it. – Ivan Neretin Aug 9 '20 at 8:28
• what if i put the anode and cathode in the same beaker and the same brine solution – Ananiya Jemberu Aug 9 '20 at 8:33
• Then the separation will be smaller, and if you stir the solution, it won't develop at all. – Ivan Neretin Aug 9 '20 at 9:16