Heart palpitations after surgery are common, and in most cases they resolve without lasting harm. About seven percent of patients develop a new heart-rhythm disturbance after major non-cardiac surgery, and many more notice isolated skipped beats, a racing pulse, or a fluttering sensation in the days following an operation.1PubMed Central. Postoperative arrhythmias in general surgical patients The spectrum ranges from brief episodes that feel strange but pose no real danger, all the way to sustained rhythm problems that require treatment. Understanding why palpitations happen after surgery and what separates the harmless from the worrisome can help you know when to simply ride it out and when to call your surgical team.
Why Surgery Makes Your Heart Race
Any operation, from a knee replacement to an abdominal procedure, sets off a chain reaction in the body often called the surgical stress response. The brain registers tissue injury and responds by flooding the bloodstream with stress hormones that boost heart rate, raise blood pressure, and mobilize stored energy to help you heal.2PubMed Central. Surgical Stress Response: A Physiological Review of the Endocrine, Immune, and Metabolic Changes That hormonal surge is protective in the short term. It keeps blood flowing to vital organs during and immediately after the procedure. But it also puts the heart into a higher gear than usual, which is why you may feel your pulse pounding or notice your heart beating faster than normal in the first few days of recovery.
Pain amplifies the effect. Uncontrolled postoperative pain activates the same branch of the nervous system that kicks in during a fight-or-flight reaction, driving heart rate up even further and increasing how hard the heart squeezes with each beat.3Anesthesia & Analgesia. Acute Postoperative Pain Is Associated With Myocardial Injury After Noncardiac Surgery Anxiety about the surgery itself, unfamiliar hospital surroundings, and disrupted sleep all pile on. None of this means the heart is damaged. It means the heart is responding the way it was designed to under stress. In most patients, once pain is controlled and the stress hormone levels taper off, the racing and fluttering settle down.
Other Triggers in the Postoperative Period
The stress response is only one piece of the puzzle. Several other factors can nudge the heart into irregular territory during recovery.
- Blood loss and anemia: When hemoglobin drops during or after surgery, the heart compensates by beating faster to keep delivering enough oxygen to tissues. Heart rate rises in a roughly linear fashion as hemoglobin falls, and patients often sense this as palpitations or a pounding chest.4PubMed Central. High Oxygen Partial Pressure Decreases Anemia-Induced Heart Rate Increase Equivalent to Transfusion
- Electrolyte shifts: Potassium and magnesium levels frequently dip after surgery because of fluid shifts, IV fluids, and diuretic use. Both minerals are critical for the electrical signals that keep the heart beating in rhythm, and even modest drops can trigger extra beats or short runs of an abnormal rhythm.5PubMed. Postoperative arrhythmias and myocardial electrolytes in patients undergoing coronary artery bypass grafting
- Medication changes: Patients who take beta-blockers at home and miss doses around the time of surgery can experience a rebound increase in heart rate. One study found that patients who skipped their beta-blocker before surgery arrived with a resting heart rate about 13 beats per minute higher than their usual baseline.6PubMed Central. Beta-blocker withdrawal among patients presenting for surgery from home That kind of jump is enough to make the heart feel noticeably different.
- Anesthesia aftereffects: Rhythm disturbances during anesthesia itself are extremely common, occurring in a large majority of patients. Most are fleeting and benign, but the medications used to keep you unconscious, manage pain, and relax muscles can linger in the body for hours, and some can sensitize the heart to extra beats during early recovery.
Most of these triggers are temporary. Once fluid balance stabilizes, hemoglobin recovers, electrolytes are corrected, and regular medications resume, the extra beats and racing tend to fade.
Atrial Fibrillation, the Most Closely Watched Rhythm Problem
Among all the rhythm disturbances that can follow surgery, atrial fibrillation (often shortened to AF) gets the most medical attention. AF is a fast, chaotic rhythm in the upper chambers of the heart that can feel like a sustained flutter or an irregular gallop in the chest. After non-cardiac surgery, AF typically shows up within the first four days.7Journal of Thrombosis and Haemostasis. Postoperative atrial fibrillation in non‐cardiac and cardiac surgery: an overview In one study of patients undergoing major cancer surgery, about one in ten developed AF during their hospital stay, and strikingly, the vast majority of those patients, roughly 83 percent, had no symptoms at all. Their AF was caught only because they were on a heart monitor.8PubMed Central. Incidence and complications of perioperative atrial fibrillation after non-cardiac surgery for malignancy
Doctors pay close attention to postoperative AF because even when it causes no symptoms, it carries real risk. A large meta-analysis pooling data from over 2.6 million patients found that AF after non-cardiac surgery was linked to roughly a three-fold higher chance of stroke within the first month and about a four-fold higher long-term stroke risk. It was also associated with a three-fold rise in death from any cause within 30 days of surgery.9PubMed. Major Adverse Cardiovascular Events Associated With Postoperative Atrial Fibrillation After Noncardiac Surgery Those numbers sound alarming, but context matters. The absolute risk is still low for most individuals. Among patients without AF in that analysis, the 30-day stroke rate was well under one percent. AF pushes it higher, but the baseline is small. Still, the association is strong enough that most surgical teams will start treatment if AF is detected.
Worth noting is that in the cancer-surgery study, about half the time AF appeared, it was actually preceded by some other complication, like an infection or a blood clot. In other words, AF was sometimes a signal that something else was going wrong, rather than the primary problem itself.10PubMed Central. Incidence and complications of perioperative atrial fibrillation after non-cardiac surgery for malignancy – Section: Results
Who Faces the Highest Risk
Not everyone has equal odds of developing palpitations or a sustained arrhythmia after surgery. After cardiac surgery specifically, a study of 156 patients found that those over 75 were significantly more likely to develop AF compared with younger patients. High blood pressure, an enlarged left atrium on pre-surgery imaging, and the use of certain diuretics or calcium channel blockers before surgery were also linked to higher AF rates. In that cohort, about a third of all patients developed AF, with the first episode typically appearing around postoperative day two.
Across the broader surgical population, pre-existing heart disease, diabetes, obesity, chronic lung disease, and a history of prior arrhythmias all raise the likelihood. If you have been told you have any of these conditions, your surgical team will usually keep you on a heart monitor for longer after the procedure.
Why Cardiac Surgery Is Different
If the roughly seven percent rate after non-cardiac surgery seems low, the picture changes dramatically after heart operations. AF develops in roughly a third of patients following coronary artery bypass grafting, and the rates climb even higher after valve surgery. The heart is directly handled, stretched, and sometimes stopped and restarted during these procedures, all of which can irritate the electrical tissue that governs rhythm. Inflammation around the heart, temporary swelling, and changes in the pericardial fluid that cushions it add to the risk. For cardiac surgery patients, rhythm disturbances are almost an expected part of recovery rather than an unusual event.
A Cochrane review covering 118 studies with over 18,000 cardiac surgery patients found that prophylactic treatment, given before or immediately after the operation, cut the rate of AF from about 32 percent down to about 18 percent.11Cochrane Database of Systematic Reviews. Interventions for preventing post-operative atrial fibrillation in patients undergoing cardiac surgery That is a substantial reduction, but it still leaves nearly one in five patients experiencing AF even with preventive treatment, which underscores how difficult these rhythms are to fully prevent when the heart itself is the surgical target.
Preventing Postoperative Rhythm Problems
For patients considered at high risk, several approaches can lower the odds. Beta-blockers are the best-studied option. They slow the heart rate, dampen the stress-hormone surge, and have consistently reduced postoperative AF across many trials.12PubMed. Mechanisms, prevention, and treatment of atrial fibrillation after cardiac surgery The most straightforward preventive step for patients who already take a beta-blocker is simply not to stop taking it around the time of surgery. As the beta-blocker withdrawal data showed, even brief non-adherence can meaningfully raise heart rate.6PubMed Central. Beta-blocker withdrawal among patients presenting for surgery from home
For higher-risk patients, especially those undergoing cardiac surgery, amiodarone is sometimes added on top of beta-blockers. Magnesium supplementation has also shown some promise, which makes sense given the electrolyte shifts that occur after surgery.12PubMed. Mechanisms, prevention, and treatment of atrial fibrillation after cardiac surgery The evidence for statins, fish oil, and corticosteroids as AF preventives is thinner, and none of these are routine recommendations yet. The overall message from the research is that prophylactic treatment works: it does not eliminate postoperative arrhythmias, but it meaningfully reduces them.13PubMed Central. Prevention of Atrial Fibrillation After Cardiac Surgery: A Review of Literature and Comparison of Different Treatment Modalities
When to Be Concerned vs. When to Wait It Out
The occasional skipped beat or brief episode of a fast pulse in the first few days after surgery is, in most cases, something your body will sort out on its own. It tends to happen when you stand up too quickly, when pain spikes, when you are dehydrated, or during the first few nights of poor sleep in a hospital bed. These episodes are usually short, lasting seconds to a few minutes, and they do not come with other alarming symptoms.
You should contact your surgical team promptly if palpitations come with any of the following:
- Sustained fast heart rate: A pulse that stays above 120 for more than a few minutes at rest, especially if it feels irregular rather than just fast.
- Dizziness or near-fainting: Feeling like you might pass out suggests your heart rhythm is not pumping blood efficiently enough.
- Chest pain or pressure: Pain in the chest that accompanies a racing heart can signal that the heart muscle is not getting enough oxygen.
- Shortness of breath at rest: Difficulty breathing while sitting still, unrelated to incision pain, is a red flag.
- Swelling or new leg pain: Combined with palpitations, these may point to a blood clot, a known postoperative complication.
The reason that seemingly innocent palpitations sometimes warrant urgent attention is that new-onset arrhythmias after surgery are often associated with other underlying complications.1PubMed Central. Postoperative arrhythmias in general surgical patients The arrhythmia itself may not be dangerous, but it can be the heart’s way of signaling that something else, like an infection, fluid imbalance, or bleeding, needs attention. Treating the underlying problem often resolves the rhythm issue on its own.
Palpitations After Bariatric Surgery
People who have had stomach-reducing operations sometimes experience a distinctive pattern of palpitations that is not really an arrhythmia at all. Dumping syndrome occurs when food moves too quickly from the stomach into the small intestine, pulling fluid out of the bloodstream and into the gut. The result is a drop in blood volume that triggers a compensatory surge in heart rate, sweating, dizziness, and sometimes nausea, typically within 30 minutes of eating.14PubMed Central. Pathophysiology, diagnosis and management of postoperative dumping syndrome A late form can also occur one to three hours after a meal, when a rebound drop in blood sugar causes similar symptoms.
If you notice your heart racing specifically after meals following gastric bypass or sleeve gastrectomy, dumping syndrome is the more likely explanation than a primary heart problem. Eating smaller meals, avoiding concentrated sugars, and lying down briefly after eating can all help. The distinction matters because the treatment for dumping syndrome is dietary, not cardiac.
How Long Until Your Heart Rhythm Normalizes
For minor operations, most people notice their heart rate and rhythm returning to normal within a few days to a week, roughly tracking with the resolution of pain and the return to normal activity. After cardiac surgery, the timeline is longer. A study of patients recovering from coronary artery bypass grafting found that heart rate variability, a measure of how flexibly the heart adjusts its rhythm, was still reduced at the time of hospital discharge compared to pre-surgical levels. However, participation in an early mobilization program, starting with gentle movement on the first postoperative day and progressing to stair climbing by day five, was associated with measurable improvements in heart rate variability by discharge.15PubMed. Recovery of linear and nonlinear heart rate dynamics after coronary artery bypass grafting surgery
Full recovery of the heart’s normal rhythm dynamics can take weeks to months after major surgery. During that time, you may notice that your resting heart rate is a bit higher than it was before, that you tire more easily during exertion, or that you occasionally feel a skipped beat. Gradual, supervised increases in physical activity tend to speed the normalization process. Sitting still for extended periods, paradoxically, can slow it down.
Sleep-Disordered Breathing and Nighttime Palpitations
Some patients notice palpitations mainly at night or when lying down during recovery. There are several possible explanations, from positional changes in blood flow to the heightened awareness that comes with lying quietly in a dark room. But one underappreciated contributor is sleep-disordered breathing. Patients who have obstructive sleep apnea, even undiagnosed, experience repeated drops in oxygen during the night, and each dip can trigger a burst of extra heartbeats. In a study of cardiac surgery patients, those with significant sleep-disordered breathing were far more likely to have frequent nighttime premature ventricular contractions, the beats that feel like a “thud” or a “flip” in the chest, and their maximum nighttime heart rates were significantly higher.
If you had palpitations mainly at night before surgery and they are worse afterward, it is worth mentioning this to your doctor. Surgery and the medications used around it can worsen sleep apnea temporarily, and treating the breathing problem with a CPAP or similar device may reduce the extra beats.
Wearable Monitors and At-Home Detection
Consumer wearable devices like the Apple Watch have drawn interest as potential tools for catching postoperative AF early, especially once patients leave the hospital. A study tested continuous heart rate monitoring with Apple Watches on cardiac surgery patients over a two-week period after discharge, using machine learning to detect AF from the wrist sensor’s signal. The system achieved an overall accuracy of about 94 percent for identifying AF, with sensitivity around 91 percent and specificity near 84 percent.16PubMed Central. Wearable heart rate variability and atrial fibrillation monitoring to improve clinically relevant endpoints in cardiac surgery
Those numbers sound impressive, but the researchers acknowledged that distinguishing AF from other irregular rhythms under real-world postoperative conditions remains difficult. Movement artifacts, the various rhythm oddities that are normal in the days after heart surgery, and poor sensor contact all introduce noise. A wearable can be a useful early-warning system, flagging something that your doctor should then confirm with a proper ECG. It is not a substitute for medical-grade monitoring, and a false alarm from a wrist device should not send you into a panic. If your watch flags an irregular rhythm, the right move is to call your surgical team and describe what you are feeling, not to self-diagnose based on an app notification alone.