It is made by electrolysis of a potassium chloride solution. It can also be made by reacting calcium hydroxide with potassium carbonate. The calcium carbonate precipitates and is filtered, leaving potassium hydroxide.