When measuring water treated with water softeners, high levels of total dissolved solids do not correlate to hard water, as water softeners do not reduce TDS; rather, they replace magnesium and calcium ions, which cause hard water, with an equal charge of sodium or potassium ions, e.g. Ca2+ ⇌ 2 Na+, leaving overall TDS unchanged or even increased. Hard water can cause scale buildup in pipes, valves, and filters, reducing performance and adding to system maintenance costs. These effects can be seen in aquariums, spas, swimming pools, and reverse osmosis water treatment systems. Typically, in these applications, total dissolved solids are tested frequently, and filtration membranes are checked in order to prevent adverse effects.