Researchers also took bacteria samples from mattresses that ranged in age from one to seven years. As expected, the number of bacteria on a mattress multiplies as it gets older, leaving the oldest mattresses with more than 16 million colony-forming units of bacteria per square inch. By the time your mattress reaches this milestone, it's time to consider buying a new one.