The answer is technically yes, you can drink coffee with an irregular heartbeat. However, it's not advisable to do so. Caffeine is a stimulant and can exacerbate the symptoms of an irregular heartbeat, such as palpitations and anxiety. It can also lead to dehydration, which can further worsen the symptoms. If you have an irregular heartbeat, it's best to avoid caffeine altogether or limit your intake to small amounts.