Elevate the head of your bed. If you regularly experience heartburn at night or while trying to sleep, put gravity to work for you. Place wood or cement blocks under the feet of your bed so that the head end is raised by 6 to 9 inches. If it's not possible to elevate your bed, you can insert a wedge between your mattress and box spring to elevate your body from the waist up.