It depends on the stain.
Muriatic acid solution will remove iron stains. So will Iron Out. Test before you proceed! Acid washing often damages pools.
Bleach (liquid chlorine) will remove algae and some organic stains.
Other things, remove other stains.
Ben
Bookmarks