The time needed to relieve heartburn after drinking coffee generally varies due to the different physical conditions of individuals, and can be gradually relieved after 30-60 minutes of rest. In addition, you can drink more water to promote coffee metabolism, in order to reduce the nervous excitability of the heart and relieve the symptoms of panic. The performance of panic after drinking coffee is usually due to the large amount of caffeine in coffee, which easily leads to central nervous excitement and increased heart rate, thus causing panic. The metabolism of caffeine usually takes 30-60 minutes, so it can be relieved after a period of time. If the concentration of coffee is high or the amount of coffee consumed is large, it may take more than 1 hour of metabolism time for the heartburn to be gradually relieved. Drinking coffee in moderation has the effect of refreshing the brain. But if you drink too much, it is easy to cause excessive excitement, palpitations, insomnia, etc.. Long-term excessive coffee consumption will also stimulate the gastric mucosa, easy to induce inflammation of the stomach, heart disease, etc., causing discomfort. In addition to coffee, strong tea also contains a large amount of caffeine, which can also lead to palpitations, so it should be consumed in moderation. For people with heart disease, it is usually not recommended to drink coffee to avoid discomfort. In addition, it should be noted that if the panic cannot be relieved for a long time, or if the discomfort of panic occurs frequently, then consider whether there are other diseases, such as arrhythmia, anemia, hyperthyroidism, etc., you need to seek timely medical attention to improve the relevant examination to clarify the cause, so as to carry out targeted treatment.