The uncomfortable symptoms of heartburn can last for two hours or longer, depending on the cause. Mild heartburn that occurs after eating spicy or acidic food typically lasts until the food has been digested. Heartburn symptoms may also return several hours after they first appeared if you bend over or lie down.