How to get rid of heartburn fast? The first answer is simple. You can avoid such kind of discomfort just by having limited food. There is a ring-like muscle at the joint of the esophagus and your stomach. When you eat something, it opens up to help you to swallow.