To sleep comfortably with back pain, find a position that supports your spine and reduces pressure on your back. Sleeping on your side with a pillow between your knees, or on your back with a pillow under your knees, are often recommended. Avoid sleeping on your stomach, as it can strain your back.