An electrolytic cell (1) for producing hydrogen peroxide comprises an anode (5), a cathode (6) and an intermediate membrane (4). The anode is associated with a first electrolyte (11) and the cathode is associated with a second electrolyte (10). The provision of two electrolytes associated with the respective electrodes permits the user to select the most suitable salt solutions for each electrode and so avoid production of gases and by-products unsuitable for a domestic environment. Thus, the invention is suitable for use in an automatic dishwasher.