Short answer
Most home guides use washing soda as the electrolyte for cast iron electrolysis. Washing soda is sodium carbonate, a common laundry booster. Its job is to dissolve in the water and make the solution conduct electricity, so current can flow between the cast iron and the anode.
Washing soda and baking soda are different
Washing soda and baking soda look alike but are different chemicals. Washing soda is sodium carbonate. Baking soda is sodium bicarbonate. Some people report success with baking soda, but the washing soda version is the one most guides recommend. Check the label before you buy, and don’t assume the two can be swapped.
How much to use
Many home guides suggest about a tablespoon of washing soda per gallon of water as a starting point. Some sources give a different ratio, so it’s worth reading a few before you mix. Start with a modest amount and dissolve it fully before power goes on.
More powder is not better. A stronger solution can carry more current, which can heat the bath, overload the charger or wear the cables. If the charger runs hot or the cables warm up, shut it off and check the setup.
Why not use salt
Table salt is often mentioned as a cheap alternative, but it is a poor choice. Salt can release chlorine gas during electrolysis, which is hazardous to breathe. Stick with washing soda and keep salt out of the bath.
Mixing and handling the solution
Use cool or warm tap water, add the washing soda, and stir until it is fully dissolved. The solution is alkaline, so wear gloves and eye protection when you handle the powder or the bath. Wash your hands afterward, and keep the powder away from children and pets.
Rinse any spills promptly. Store washing soda in its original container, with the lid closed and in a dry place.
Reusing and disposing of the bath
Many people reuse the same bath for a few runs, topping it up with water and a little washing soda when the level drops. Over time, the bath fills with rust residue and loses effectiveness. When it looks murky or the results slow down, empty the tub and mix a fresh batch.
Check local rules for disposing of the solution. Don’t pour it onto garden beds or into a storm drain.
Where this fits in the setup
The electrolyte is one piece of the bath. The container and its layout are covered in the article on how to build an electrolysis tank for cast iron. The power side is covered in the piece on whether you can use a battery charger for electrolysis, and the hazards are covered in the article on whether electrolysis is safe for cast iron.