The warranty is a good indicator of how long you can expect your mattress in a box to last. Most brands offer warranties of at least 10 years, so you can expect your mattress to last that long. If it starts to show significant defects or deterioration before then, take advantage of the warranty.