Abstract: The invention relates to an electrochemical sensor having a porous diaphragm and an electrolyte formulation that comprises at least one solvent, at least one electrolyte from the group of alkali metal salts and at least one alkaline earth metal ion, and to an electrolyte formulation.