A hemofiltration system and methodfor pumping blood from a patient's blood stream intoan access line, introducing an anticoagulant solutioninto the pumped blood, filtering the pumped bloodand delivering it to a return line, introducing asub-stitution fluid into the pumped blood, introducing acalcium and magnesium solution into the bloodtrav-eling through the return line, and returning the bloodback to the patient's blood stream.