For millions of people, that morning cup of coffee is non-negotiable. Now, a major new report from the American Heart Association confirms what many had hoped: for most adults, a few cups of coffee a day is perfectly safe — and might even help the heart.

The research, published in the journal Circulation, found that up to 400 milligrams of caffeine daily is generally safe for healthy adults. That works out to roughly three to five 8-ounce cups of plain black coffee, without sugar, cream, or flavoring. The statement was written by a team of researchers led by Dr. Gregory M. Marcus, a professor of medicine at the University of California, San Francisco.

"For most adults, intake of up to 400 mg of caffeine per day, the equivalent of up to five cups of caffeinated coffee per day without added sugars or fillers, is safe and does not increase cardiovascular risk," Marcus said.

The news gets better. The research found that drinking plain coffee was linked to lower risks of Type 2 diabetes, heart disease, stroke, heart failure, and certain irregular heart rhythms. Coffee contains hundreds of substances, and some of these appear to have antioxidant and anti-inflammatory properties that may protect the heart.

But the picture changes with concentrated caffeine sources. Energy drinks — including popular energy shots — were flagged as potentially risky. These products can contain 40 to 69 milligrams of caffeine per fluid ounce, which is three to four times more than regular brewed coffee, which typically has 9.4 to 20.6 milligrams per fluid ounce. The higher doses found in energy drinks were associated with elevated blood pressure and irregular heart rhythms.

"High doses of caffeine, such as those found in energy drinks including energy shots, may have harmful effects on the heart and should be avoided," Marcus warned.

The report also notes that what you add to your coffee matters. Sugar, flavored syrups, milk, and cream may weaken coffee's potential health benefits. Researchers say more studies are needed to understand exactly how these additions affect long-term health.

The findings are based on a review of the latest evidence on caffeine and cardiovascular health, including research on blood pressure, cholesterol, diabetes, heart disease, stroke, and heart rhythm conditions.

Caffeine affects people differently depending on genetics, metabolism, age, and how much coffee someone typically drinks. Regular coffee drinkers may develop a tolerance, while others can feel strong effects from smaller amounts. Short-term side effects can include increased heart rate, elevated blood sugar, difficulty sleeping, and heart palpitations in some people.

The bottom line: if you're sticking to plain coffee and keeping it to a few cups a day, the evidence suggests you can feel good about your habit.