Individuals who sleep on their back need a medium-firm mattress. Meanwhile, those who sleep on their side need a slightly softer mattress to cushion their hips and shoulders. And for those who sleep on their stomach, a firmer mattress is required to keep them afloat.