Short answer
Sound cast iron usually comes through a well-watched electrolysis run without lasting harm. The risks rise when a piece is left in too long, run at high current, or already has deep pits or cracks. Electrolysis removes rust and old seasoning, and it can take a small amount of the surface in aggressive cases.
What it removes
Electrolysis converts rust into a softer form that can be scrubbed off. It also strips old seasoning. In most home runs, the iron underneath stays largely in place. The bath is not designed to remove large amounts of metal, but it can take a little of the surface if it runs too long.
What it does not fix
Electrolysis does not repair cracks, warping, broken handles or other structural problems. It also does not fill in deep pits. A pit that was there before the bath will usually still be there after, and it may look more pronounced once the rust around it is gone.
Etching and roughness
Over-long runs or high current can etch or roughen bare iron. Some residue can also remain on the surface and feel slightly gritty until it is scrubbed. The safest approach is to check often, stop when the rust is gone and avoid leaving the piece in the bath overnight without a clear reason.
Electrolysis does not polish the surface. If you want a smooth cooking surface after a bath, plan a smoothing pass and then season the pan well.
Enameled pieces
Most guides keep electrolysis for bare cast iron. Enamel is a glass-like coating, and the bath is not a good fit for it. If a piece is enameled, check the manufacturer’s advice before you put it in a bath.
Vintage and collectible pieces
Some people hold vintage skillets to a higher standard, because the original surface and maker’s marks have value to collectors. In that case, a conservative approach keeps the original surface detail. Run the bath gently, check often and be ready to stop early. If the piece matters to you, consider asking an expert before you start.
What to expect afterward
Once the piece is out, it will be bare iron and will rust quickly. Rinse, dry, oil and season it promptly. Expect a few passes of seasoning before the surface cooks well. The step-by-step is in the article on cleaning up after electrolysis.
Where to read more
For the timing side, see the article on how long to electrolysis cast iron. For a broader look at restoring a worn pan, read the piece on how to restore a cast iron skillet.