Memory foam reacts to the pressure and heat of your body. Regardless of your sleeping position or body weight, it will keep your spine aligned by sinking deeper at pressure points like your hips and shoulders and less so in other places like your stomach. This reactive contouring makes memory foam mattresses excellent at reducing back pain, especially for side sleepers.