Heartburn is caused when stomach acid irritates the stomach lining or backs up into the esophagus. Common contributors to heartburn are overeating, alcohol, caffeine, aspirin, ibuprofen, tobacco, and emotional stress. If heartburn is a problem for you, eating smaller portions and eating more times a day can help reduce it. Usually, heartburn doesn't require medical attention unless it lasts more than three days. Prolonged discomfort may suggest a medical condition such as a hernia or ulcer, which a doctor should evaluate.
People having a heart attack sometimes think they have heartburn.
If you experience shortness of breath, or pain in your jaw, radiating down your arm or in your back, seek medical attention immediately. Heartburn lasts more than three days. You vomit black or bloody material. Your stools are black and tar-like. Avoid vinegar, chocolate, oranges, lemons, grapefruits, pickles, peppermint, and tomatoes.