Mixtures of aluminum and magnesium ions can be analyzed automatically using potentiometric titration. The excess DCTA is back-titrated with copper(II) sulfate solution after the addition of 1,2-diaminocyclohexanetetraacetic acid (DCTA) and complex formation. The ion-selective copper electrode is used here as the indicator electrode. First, the aluminum is determined in acidic solution and then the magnesium in alkali solution.