Sleeping on your back on a mattress of medium firmness is the best position to keep back pain at bay.