The invention relates to a protection method for charging and discharging of a battery. The protection method comprises the following steps of: S1, sampling an output voltage value of the rechargeable battery according to a set sampling time interval to obtain a sampled value; S2, comparing the sampled value with the set minimum value, if the sampled value is less than the set minimum value, deleting the sampled value, and if the sampled value is more than the set minimum value, entering S3; S3, comparing the sampled value with the set maximum value, if the sampled value is more than the set maximum value, deleting the sampled value, and if the sampled value is less than the set maximum value, entering S4; S4, carrying out averaging on the sampled value to obtain an average sampled value; S5, comparing the average sampled value with charging protection voltage and discharging protection voltage to generate a compared result; and S6, carrying out protection or charging and discharging operation on the compared result. The invention also relates to a protection circuit for charging of the battery. By the adoption of the protection method and the protection circuit, the influence of fluctuation caused by accidental factors or hardware on charging and discharging of the charging battery is reduced or eliminated by deleting abnormal values.