The invention provides a memory service life test algorithm. A calculator unit is added into a memory service life test program; a rated service life upper limit is set according to a memory data manual; then, an ultimate service life upper limit being at least twice of the rated service life upper limit is set; if the number of read-write times is greater than the ultimate service life upper limit, the condition that a memory fails is judged; if the number of the read-write times does not exceed the ultimate service life upper limit, the total number of test times obtained through adding one test time number to the ultimate service life upper limit is tested; then, a storage region of the memory is continuously subjected to read-write operation; data, with the fixed lengths, written in each time is different; the total number of operation times, the total number of write-in error times and the total number of read error times are recorded; after the test on the total number of test times is completed, whether the number of read-write error times exceeds 60 percent of the total number of test times or not is judged; if so, the condition that the memory fails is judged; and if not, the condition that the memory does not fail is judged. The invention provides the reliable and powerful basis for mass cargo supply memory service life inspection, electric energy meter data reliability test and meter storage algorithms.