Coffee, caffeine and AFib

Coffee is one of the most suspected triggers. Here is what happened when researchers actually tested it.

The short version

Does coffee raise the chance of developing AFib?

Overall, the evidence doesn’t show a higher risk. Most studies that followed adults for years found no increase, though one found more AFib in coffee drinkers.

Strong evidence
What does this rating mean?

Large, consistent studies, including trials where they matter.

These studies followed people who didn’t have AFib yet and asked how much coffee they drank. In the UK, 386,258 adults were followed for about four and a half years. Each extra daily cup of coffee was linked to a 3% lower risk of developing AFib, not a higher one. In Sweden, 76,475 adults followed for 12 years were no more likely to develop AFib, even at five or more cups a day. A Danish study that counted caffeine from coffee, tea, cola and chocolate found the same.

A review that pooled 10 studies of 723,825 people found no rise in risk at any amount from one to seven cups a day.

One US study went the other way: people who drank at least a cup a week were more likely to develop AFib. It took fewer other factors into account than the studies above, and the link was seen mainly in its White and Hispanic participants.

None of these studies assigned coffee at random, so they show links rather than proof. Taken together, they don’t show a consistent rise in risk. The genetic studies in the next question found no clear link either.

Sources: Kim et al., 2021, Larsson et al., 2015, Frost & Vestergaard, 2005, Cao et al., 2022, Sehrawat et al., 2023

Does coffee protect against AFib?

Some large studies saw slightly less AFib in coffee drinkers. Studies using genes found no clear effect, so coffee itself may not be the reason.

Mixed evidence
What does this rating mean?

Studies disagree, are small, or only show a link.

Several large studies found slightly less AFib in coffee drinkers, about 2 to 3% less for each daily cup. That is a small difference, and studies like these can’t say whether coffee is the reason.

One reason for doubt is that people often drink less coffee once they feel unwell. In the Swedish study, people who already had AFib at the start drank less coffee than everyone else. That can make coffee drinkers look healthier than they are.

Genetic studies are less affected by this problem. Some people carry genes that make them drink more coffee, which they didn’t choose. If coffee protected against AFib, those people should have less of it. Two genetic studies found no clear effect either way, though they have limits too.

Sources: Kim et al., 2021, Cao et al., 2022, Larsson et al., 2015, Yuan & Larsson, 2019

Coffee intake and the risk of developing AFib

UK study of 386,258 adults, per extra daily cup

3% lower

Ten studies pooled, 723,825 adults, per extra daily cup

2% lower

Genetic study of 588,190 people, for 50% higher predicted intake

No clear difference

The first two show a link; the genetic study tests whether coffee itself is the cause.

Kim et al., 2021, Cao et al., 2022, Yuan & Larsson, 2019

Does coffee make AFib come back?

One trial after cardioversion found it didn’t. AFib or flutter came back in 47 of 100 people asked to drink coffee and 64 of 100 asked to avoid caffeine.

Some evidence
What does this rating mean?

Good studies, but limited in size, design or who took part.

The DECAF trial tested daily coffee after a shock to restore normal rhythm (cardioversion). It included 200 current or past coffee drinkers with persistent AFib, or atrial flutter and a history of AFib. Half were asked to drink at least one cup of caffeinated coffee a day. Half were asked to avoid coffee, including decaf, and all other caffeine. Each group was followed for six months.

AFib or flutter came back in 47 of the 100 coffee drinkers, compared with 64 of the 100 who were asked to avoid caffeine. There was no clear difference in adverse events, emergency visits or hospital stays, but the trial was too small to settle uncommon risks.

The trial has real limits. It was small and lasted six months. Everyone knew which group they were in. Not everyone stuck to their group: only 69% of those asked to avoid coffee drank none at all. It studied people after cardioversion; the researchers say AFib that comes and goes may not respond the same way.

One thing doesn’t explain the result away: the coffee group wore more heart monitors, which should have found more of their AFib, not less. The trial hasn’t yet been repeated by another team.

In a separate Swiss study of 3,835 people with AFib, those who drank coffee every day had fewer serious heart problems over about five years than those who didn’t drink it daily. They chose how much to drink, so this shows a link, not proof.

Sources: Wong et al., 2026 (DECAF), Iten et al., 2024

AFib or flutter came back within six months
Asked to drink coffee47 of 100
Asked to avoid caffeine64 of 100

Cups of coffee a week, during the trial

Asked to drink coffee: 7 (about one a day)
Asked to avoid caffeine: 0

People with AFib or flutter, just after cardioversion. Coffee amounts are medians.

Wong et al., 2026 (DECAF)

Could caffeine be a trigger for me, even if it isn’t for most people?

No one can say yet. When people tested caffeine on themselves, it wasn’t linked to more AFib, but studies can’t rule out a few people who react.

Unknown
What does this rating mean?

Not studied well enough to say.

Many people with AFib believe coffee sets off their episodes. In a survey of 1,295 people with AFib that comes and goes, caffeine was the second most often named trigger, after alcohol.

When people tested it, the belief didn’t hold up on average. In the I-STOP-AFib trial, people chose a trigger to test on themselves, then had it or avoided it in weeks assigned at random. Caffeine was the trigger chosen most often, and it wasn’t linked to more AFib. Alcohol was the only trigger linked to more self-reported AFib when researchers analysed what people actually consumed; the comparison based on assigned weeks was inconclusive.

That still leaves room for a few people who do react. People who were sure coffee was their trigger may have stayed out of DECAF: the researchers noted that many people who declined believed coffee worsened their AFib, and only 13 of the 200 who took part said coffee had ever set it off. The researchers wrote that “it remains possible that some select individuals are truly triggered by coffee.” In their trial, the benefit of coffee was clearest in people who had never noticed it as a trigger, but the groups were too small to show a real difference.

A pattern you notice in your own life can come from many things that happen alongside coffee, like stress, poor sleep or a late night. In I-STOP-AFib, testing one trigger properly took six weeks of planned on and off periods.

Sources: Groh et al., 2019, Marcus et al., 2022 (I-STOP-AFib), Wong et al., 2026 (DECAF)

Does coffee cause extra or skipped heartbeats?

In healthy adults, coffee days brought more extra beats from the lower chambers. There was no clear rise in upper-chamber extra beats, the kind linked to AFib.

Some evidence
What does this rating mean?

Good studies, but limited in size, design or who took part.

Extra beats are early heartbeats that can feel like a skip or a thump. Those starting in the upper chambers (premature atrial contractions) are linked to a higher chance of developing AFib later. Those starting in the lower chambers (premature ventricular contractions) are a different thing.

In the CRAVE trial, 100 healthy adults were told at random, day by day, whether to drink coffee, while wearing a heart monitor for two weeks. Coffee days didn’t bring significantly more upper-chamber extra beats: about 58 a day, against 53. They did bring more lower-chamber ones: about 154 a day, against 102, or roughly two more an hour. That rise appeared in people who drank more than one coffee a day.

The researchers called these results a starting point for more research, not a firm answer. Nobody in the trial had AFib, so it can’t say what coffee does to extra beats in people who do. In a study of 1,388 older adults who wore a 24-hour monitor, how much caffeine people usually had wasn’t linked to either kind of extra beat.

Sources: Marcus et al., 2023 (CRAVE), Dixit et al., 2016, Dewland et al., 2013

Extra beats a day, in healthy adults

Upper chambers (linked to AFib)

Coffee days58
No-coffee days53

Not a significant difference

Lower chambers

Coffee days154
No-coffee days102

Bars share one scale, from 0 to 160 beats a day. 100 healthy adults without AFib.

Marcus et al., 2023 (CRAVE)

Does the amount matter?

Studies of people without AFib saw no extra risk even at several cups a day. The trial in people with AFib tested about one cup a day.

Some evidence
What does this rating mean?

Good studies, but limited in size, design or who took part.

In studies of people without AFib, risk didn’t rise even at five or more cups a day. The trial in people with AFib tested about one cup a day, so it can’t say much about drinking much more coffee.

A “cup” in DECAF was a standard cup of about 240 mL, smaller than many café sizes. The amount of caffeine also varies a lot from one coffee to the next.

Sources: Larsson et al., 2015, Cao et al., 2022, Wong et al., 2026 (DECAF), Marcus et al., 2023 (CRAVE)

What about energy drinks, caffeine pills or very large amounts?

Too little is known. AFib after energy drinks appears only in a handful of case reports, and the coffee results don’t carry over.

Unknown
What does this rating mean?

Not studied well enough to say.

Energy drinks have their own, much thinner evidence. A review of 32 published reports of heart problems after energy drinks found a few cases of AFib, mostly in young men after large amounts, sometimes with alcohol. Case reports can’t show what caused something, or how often it happens.

In a small trial, 34 healthy young adults drank about a litre of energy drink or a placebo drink. The energy drinks raised blood pressure and slightly changed the heart’s electrical timing on an ECG. These trials were too small and brief to establish the risk of AFib.

The DECAF researchers warned against applying their coffee results to high doses of caffeine or to energy drinks, which contain other ingredients. In Canada, an energy drink can have no more than 180 mg of caffeine per serving and must carry a “high caffeine content” warning.

Sources: Cao et al., 2021, Shah et al., 2019, Wong et al., 2026 (DECAF), Health Canada, energy drinks

Is decaf or tea any different?

Too few studies separate them to say. The trial in people with AFib didn’t test decaf.

Unknown
What does this rating mean?

Not studied well enough to say.

In the UK Biobank, people who drank ground or instant coffee developed AFib less often than people who drank no coffee. For decaf drinkers, there was no clear link with AFib or with heart rhythm problems overall. These were people’s own choices, so the study can’t show that one type of coffee is better.

Few studies look at tea on its own. The Danish study counted caffeine from tea, cola and chocolate as well as coffee, and found no link with AFib. The DECAF trial asked one group to avoid all coffee, including decaf, as well as other caffeine sources such as tea, so it can’t say which part of coffee made the difference.

Sources: Chieng et al., 2022, Frost & Vestergaard, 2005, Wong et al., 2026 (DECAF)

Do my genes change how caffeine affects AFib?

Not as far as studies can tell. Studies found no clear difference in AFib risk linked to how fast people clear caffeine.

Some evidence
What does this rating mean?

Good studies, but limited in size, design or who took part.

People clear caffeine at different speeds, partly because of their genes. In the UK Biobank, the link between coffee and AFib was the same whatever those genes were. A genetic analysis in the same study found no clear effect of caffeine on AFib.

In the CRAVE trial, genes made some difference to other effects of coffee: faster processors appeared to have more lower-chamber extra beats, and slower processors appeared to lose more sleep. The researchers found no consistent pattern overall.

Sources: Kim et al., 2021, Yuan & Larsson, 2019, Marcus et al., 2023 (CRAVE)

Does coffee affect sleep, and does that matter for AFib?

In a trial, coffee days meant about half an hour less sleep. That trial didn’t test whether the lost sleep affects AFib.

Some evidence
What does this rating mean?

Good studies, but limited in size, design or who took part.

In the CRAVE trial, people slept about 397 minutes on nights after coffee days, against 432 minutes after no-coffee days: about 36 minutes less. Sleep was measured with a Fitbit, which isn’t as accurate as a sleep lab.

Poor sleep and sleep apnea are linked to AFib, but CRAVE didn’t test whether sleep lost to coffee changes AFib. Our sleep and AFib page covers what is known about sleep itself.

Source: Marcus et al., 2023 (CRAVE)

Minutes of sleep a night, in healthy adults
After coffee days397
After no-coffee days432

Bars share one scale, from 0 to 500 minutes. Measured with a Fitbit, in 81 people.

Marcus et al., 2023 (CRAVE)

How much caffeine is in a cup?

These are Health Canada’s averages. Real drinks vary a lot, especially coffee from cafés.

Health Canada suggests healthy adults have no more than 400 mg of caffeine a day, and 300 mg when planning a pregnancy, during pregnancy or while breastfeeding. Those are general limits for those groups, not limits worked out for AFib. 400 mg is about three cups of brewed coffee by these averages.

Sources: Health Canada, Health Canada, energy drinks

Average caffeine per serving
Brewed coffee, 237 mL
135 mg
Instant coffee, 237 mL
76–106 mg
Black or green tea, 237 mL
30–50 mg
Regular cola, 355 mL can
36–46 mg
Energy drink, per serving
up to 180 mg

What the guidelines say

  • United States (2023): recommending that people with AFib give up caffeine to prevent episodes is “of no benefit”, although it may ease symptoms for people who say caffeine sets them off. This was written before the DECAF trial. (Joglar et al., 2023)
  • Canada (2020): the guideline’s chapter on risk factors doesn’t mention caffeine. A new Canadian guideline is expected in 2026–2027. (Andrade et al., 2020, Canadian Cardiovascular Society)

Questions for your next appointment

Print them, or copy them into your notes.

  1. I’ve been avoiding coffee because of my AFib. Is that still what you’d suggest for me?
  2. I think coffee sets off my episodes. How could we check whether it really does?
  3. Do any of my medicines change how my body handles caffeine?
  4. I have a heart stress test coming up. Do I need to avoid caffeine before it?
  5. Are energy drinks or pre-workout products a concern with my heart?

Caffeine and your own record

Evenbeat, coming to iPhone, shows alcoholic drinks you log in Apple Health. You can also log drinks in Evenbeat; with your permission, they’re saved to Apple Health and shown in your day. It doesn’t read caffeine for now: on average caffeine isn’t a trigger, and putting every coffee beside every episode could suggest a link that isn’t there. If you think coffee affects you, you can add a note to that day and bring your notes and ECGs to your care team.

How this page was made

I’m Josh. I live with AFib and I build Evenbeat. I’m not a doctor. I research these pages with help from AI tools, then check every number against the original study. A clinician hasn’t reviewed this page yet; when one does, their name will be here.

This is general information, not medical advice. Found a mistake or a newer study? Write to support@evenbeat.app. How these pages are written

First published · Updated

Changes to this page

  • : Updated the Evenbeat example: alcohol import and logging drinks to Apple Health with permission are now implemented. Research findings and evidence-check dates are unchanged.
  • : Corrected the DECAF population and combined AFib-or-flutter outcome, the I-STOP trigger-testing sample, and the genetic-study chart’s intake comparison. Corrected the decaf claim and clarified uncertain results and the Swiss study’s comparison group. Updated the Health Canada link and distinguished planned alcohol import from current features.

The studies behind this page

Grouped by question. Each title opens the original.

Developing AFib 5 studies
Genes and caffeine 1 study
AFib coming back 2 studies
Personal triggers 2 studies
Extra beats and sleep 3 studies
Decaf and tea 1 study
Energy drinks 2 studies
Guidelines and caffeine amounts 5 studies