Lithium ion cell capacity grading machine performs constant current charging, constant voltage charging, constant current discharging and other operations on the battery, records the current, voltage, time and other parameters of the battery during the charging and discharging process, and then calculates the battery capacity based on these parameters.