The lifespan of a mattress depends on the materials and construction, but generally, a child’s mattress should be replaced every 5 to 7 years. It is also recommended to check the mattress for signs of wear and tear, such as sagging or unevenness, and replace it if necessary.