What Can Cause an Irregular Heartbeat?

An irregular heartbeat, known medically as an arrhythmia, happens when the electrical signals that coordinate your heart’s contractions misfire, arrive too early, or take the wrong path through heart tissue. Over 52 million people worldwide live with atrial fibrillation alone, the most common type, and that number has more than doubled since 1990. The causes range from structural heart damage and mineral deficiencies to stress, medications, and even how you sleep.

Heart Disease and Structural Damage

The most serious causes of irregular heartbeat involve physical changes to the heart itself. When a heart attack cuts off blood flow to part of the heart muscle, the damaged tissue forms scar tissue that can’t conduct electrical signals normally. Surviving heart cells near the scarred area may still generate beats on their own, but the surrounding damaged tissue scrambles those signals, creating chaotic loops of electrical activity. This is why people with a history of heart attack remain at elevated risk for dangerous rhythm problems years later.

Heart failure creates a similar problem through a different path. As the heart weakens and enlarges, both its structure and its electrical wiring remodel in ways that make the tissue uneven. Some patches conduct signals quickly while others lag behind, and that patchwork of fast and slow zones is exactly what allows electrical signals to circle back on themselves instead of moving in a clean wave. Valve disorders contribute by forcing the heart to work harder over time, which thickens or stretches the chambers and sets the stage for the same kind of disorganized signaling.

Electrolyte Imbalances

Your heart cells rely on a precise balance of minerals to fire and reset with each beat. Potassium, magnesium, and calcium all flow through tiny channels in the cell membrane to generate the electrical pulse that makes a heartbeat. When any of these minerals drifts too high or too low, the timing of that electrical pulse changes.

Magnesium plays a particularly underappreciated role. It acts as a natural calcium blocker, competing with calcium for entry into heart cells, and it also helps potassium get pumped back inside cells after each beat. When magnesium is low, potassium leaks out more easily, which destabilizes the cell’s resting electrical charge and makes it more likely to fire at the wrong moment. About 19% of people in one large study had magnesium levels below the normal threshold, and some researchers believe even levels in the low-normal range may represent a hidden deficiency that raises arrhythmia risk.

Common causes of electrolyte shifts include dehydration, heavy sweating, chronic diarrhea or vomiting, kidney problems, and certain blood pressure medications that increase mineral loss through urine.

Thyroid Problems

An overactive thyroid is one of the most reliable non-cardiac causes of irregular heartbeat. Excess thyroid hormone speeds up the heart’s natural pacemaker and shortens the resting period between electrical signals in the upper chambers. That shortened recovery window makes it much easier for signals to loop around and trigger atrial fibrillation. People with low TSH levels (the blood marker that drops when thyroid hormone is too high) have more than five times the normal incidence of atrial fibrillation, and this holds true even for people with mild, subclinical hyperthyroidism who may not have obvious symptoms.

Thyroid hormone also directly affects the same sodium, potassium, and calcium channels that electrolyte imbalances disrupt, compounding the electrical instability. Resting heart rates above 100 beats per minute in someone with an overactive thyroid result from both this direct effect on the heart and a dampening of the vagus nerve, which normally acts as a brake on heart rate.

Alcohol, Caffeine, and Stimulants

Alcohol is one of the most commonly reported triggers for atrial fibrillation episodes. It has both a direct toxic effect on heart cells and an indirect effect through dehydration and electrolyte loss. Heavy drinking over years can damage heart muscle enough to cause a condition sometimes called “holiday heart,” where a binge triggers a sudden episode of irregular rhythm even in someone with no prior heart disease.

Caffeine’s role is more nuanced than most people assume. In one randomized trial, coffee drinkers had a 54% increase in premature ventricular contractions (extra beats originating in the lower chambers) compared to those who avoided caffeine. But studies giving people up to 500 mg of caffeine (roughly five cups of coffee) found no increase in dangerous arrhythmias, even in people with heart failure. The consensus is that moderate caffeine intake is unlikely to trigger a life-threatening rhythm problem in most people, though it can increase the frequency of those uncomfortable skipped-beat sensations. When alcohol and caffeine are combined, the risk appears to be greater than either one alone, with animal research showing the combination can trigger dangerous ventricular rhythms.

Nicotine and other stimulants raise levels of adrenaline, which directly increases the excitability of heart cells and can provoke extra beats or sustained fast rhythms.

Stress and Anxiety

Psychological stress triggers irregular heartbeat through your body’s fight-or-flight system. When you’re stressed or anxious, a surge of adrenaline floods the heart with stimulating signals through beta-adrenergic receptors. This pushes extra calcium into heart cells, which can cause them to fire spontaneously between normal beats. Those extra beats, called afterdepolarizations, can appear as isolated skipped beats or, if they repeat rapidly, as a run of fast heartbeat.

Stress also makes the heart’s electrical recovery period uneven across different regions. Some areas reset quickly while others lag, creating a patchwork that allows electrical signals to wander in circles rather than traveling in one clean sweep. This is the same reentry mechanism seen in structural heart disease, but triggered purely by nervous system activation rather than scar tissue. Chronic stress compounds the problem by keeping cortisol and adrenaline elevated for long periods, which over time can physically remodel the heart’s electrical system and make it more vulnerable to rhythm disturbances even during calm moments.

Sleep Apnea

Obstructive sleep apnea is present in 32% to 49% of people with atrial fibrillation, making it one of the strongest and most overlooked risk factors. Each time breathing stops during sleep, oxygen levels drop and the body responds with a jolt of adrenaline. This cycle of oxygen deprivation and sympathetic activation repeats dozens or hundreds of times per night.

The intermittent oxygen drops place oxidative stress on heart tissue, damaging the sodium and potassium channels that control electrical signaling and weakening the connections between neighboring heart cells. Meanwhile, the repeated adrenaline surges shorten the heart’s electrical recovery period in the upper chambers, making reentry circuits more likely. People with untreated sleep apnea carry this heightened arrhythmia risk around the clock, not just during sleep, because the autonomic nervous system remains imbalanced even during waking hours.

Medications That Affect Heart Rhythm

A surprisingly wide range of common medications can interfere with your heart’s electrical timing. The mechanism usually involves prolonging the heart’s recovery phase between beats (the QT interval on an ECG), which creates a window where an early electrical impulse can set off a dangerous rapid rhythm.

The drug categories most commonly implicated include certain antibiotics (particularly erythromycin and clarithromycin), several antidepressants (including citalopram and venlafaxine), some antihistamines, and antipsychotic medications. In one study of drug-induced life-threatening arrhythmias, nearly three-quarters of cases involved drugs with a known risk of QT prolongation. The risk increases when multiple QT-prolonging drugs are taken together or when electrolyte levels are already low. Over-the-counter decongestants containing pseudoephedrine can also provoke fast or irregular rhythms by stimulating the same adrenaline pathways that stress activates.

Aging and the Heart’s Wiring

The heart’s electrical system gradually deteriorates with age, even in people who are otherwise healthy. The sinoatrial node, the heart’s natural pacemaker, develops increasing amounts of scar-like fibrous tissue over the decades. This fibrosis slows the speed at which electrical signals travel through the node, reduces the heart’s baseline rate, and can eventually cause sick sinus syndrome, a condition marked by an abnormally slow heartbeat, pauses, or alternating fast and slow rhythms.

Research in aging hearts shows that the pacemaker cells themselves shrink and produce fewer of the sodium channels needed for rapid signal transmission, while the connective tissue between them expands. The result is like trying to send an electrical current through a wire that’s been partially replaced with insulation. These age-related changes in the upper chambers are a major reason atrial fibrillation becomes increasingly common after age 65, and they explain why acquired heart block (where signals between the upper and lower chambers are delayed or lost entirely) is one of the most common reasons older adults need a pacemaker.