Coughing when your heart flutters can be a symptom of a condition known as atrial fibrillation (AFib), which is a type of irregular heartbeat that can cause a range of symptoms.

AFib occurs when the upper chambers of the heart, called the atria, begin to quiver instead of contracting in a regular rhythm. This can cause the heart to beat irregularly and can lead to a variety of symptoms, including coughing, shortness of breath, fatigue, chest pain, and dizziness.
Coughing is often a reflex response to irritation or inflammation in the respiratory system, such as when there is mucus or fluid in the lungs. In the case of AFib, the irregular heartbeat can cause blood to pool in the heart and lungs, leading to a buildup of fluid and irritation in the respiratory system. This can trigger a coughing reflex, which may be more noticeable when the heart is fluttering or beating irregularly.
In addition to coughing, other symptoms of AFib may include a feeling of fluttering or racing in the chest, dizziness or lightheadedness, fatigue, and shortness of breath. Some people with AFib may not experience any symptoms at all, while others may experience more severe symptoms that interfere with daily activities.
If you are experiencing coughing or other symptoms along with heart flutters, it is important to seek medical attention. A doctor can perform an electrocardiogram (ECG) or other tests to diagnose AFib and develop a treatment plan to manage symptoms and prevent complications.
Treatment for AFib may include medications to control the heart rate and rhythm, blood thinners to reduce the risk of blood clots, and lifestyle changes such as quitting smoking, managing stress, and maintaining a healthy weight. In some cases, medical procedures such as cardioversion or ablation may be recommended to restore a regular heartbeat.
In summary, coughing when your heart flutters can be a symptom of atrial fibrillation, a type of irregular heartbeat that can cause a range of symptoms including coughing, shortness of breath, fatigue, chest pain, and dizziness. If you are experiencing these symptoms, it is important to seek medical attention to diagnose and manage the condition.