It doesn’t matter whether the material is in gel or powder form. Usually for hard water one should check the detergents which encompass water softening agents.