It is extracted from them by electrolysis of potassium hydroxide or potassium chloride . Pure potassium metal may be isolated by electrolysis of its hydroxide in a process that has changed little since Davy . Thermal methods also are employed in potassium production , using potassium chloride .