Electrogravimetry is a method used to separate and quantify ions of a substance, usually a metal, through electrolysis. The analyte solution is electrolyzed, causing the analyte to deposit on the cathode. The cathode is weighed before and after the experiment, and the mass difference is used to calculate the amount of analyte originally present. There are two types of electrogravimetry - constant current electrolysis, where the current is kept constant, and constant potential electrolysis, where the potential is kept constant. In both cases, the deposited analyte on the cathode is measured through changes in mass to determine the concentration in the original solution.