Memory foam mattresses and other foam types need a solid, rigid surface to maintain shape and support. Platform beds or solid foundations work better than box springs for memory foam.