A method and apparatus for producing purified water. An electrochemical system can be configured to pass product water through depletion compartments as well as a cathode compartment. An electrochemical apparatus may also be configured to pass concentrate through both concentrating compartments and an anode compartment.