Why Do I Have Chest Pain That Comes and Goes?

Chest pain that comes and goes is one of the most common reasons people visit a doctor or emergency room, and in most cases, the cause is not the heart. Between 52% and 77% of people who show up to an emergency department with chest pain are ultimately discharged without a cardiac diagnosis. That doesn’t mean the pain isn’t real or worth investigating, but it does mean the list of possible explanations is long, and most of them are treatable.

The key to narrowing down what’s behind your pain is paying attention to the details: what triggers it, where exactly you feel it, how long each episode lasts, and what makes it better or worse.

The Most Common Cause: Acid Reflux

Gastroesophageal reflux disease (GERD) accounts for 50% to 60% of all non-cardiac chest pain. Stomach acid washing back into the esophagus produces a burning sensation in the chest that can feel alarmingly similar to heart pain. The telltale pattern is that it tends to flare after eating, while lying down, or when bending over. Many people notice it at night, especially if they ate within a couple of hours of going to bed.

Reflux-related chest pain often comes with a sour taste in the mouth, a feeling of food rising into the throat, or both. Antacids typically bring relief within minutes, which is a useful clue that acid is the culprit. Other esophageal problems, including spasms of the esophageal muscles, account for another 15% to 18% of non-cardiac chest pain cases. These spasms can cause sudden, intense squeezing in the chest that mimics a heart attack but resolves on its own.

Chest Wall and Muscle Pain

Costochondritis, an inflammation where the ribs attach to the breastbone, is one of the most common musculoskeletal causes of recurring chest pain. The hallmark is that you can reproduce the pain by pressing on a specific spot on your chest, usually near the sternum. It also tends to get worse with movement: deep breaths, coughing, stretching, or twisting your torso.

Unlike heart-related pain, costochondritis is localized. You can usually point to exactly where it hurts with one finger. There’s no shortness of breath, no sweating, no radiating pain down an arm. It can last days or weeks but is fundamentally harmless. Muscle strain from exercise, heavy lifting, or even a bout of persistent coughing can produce a similar pattern of chest pain that comes on with certain movements and fades with rest.

Anxiety and Panic Attacks

Anxiety is a surprisingly physical experience. A panic attack can cause sharp or stabbing chest pain, a racing heart, tingling in the hands, and a genuine feeling that something is seriously wrong. In one Northern Ireland study, nearly 59% of all chest pain presentations to emergency departments over three years were ultimately attributed to anxiety, panic, or chest pain with no identifiable medical cause.

The chest pain from a panic attack typically stays in the chest rather than radiating to the arm, jaw, or neck. Episodes usually peak within minutes and resolve within an hour, after which you feel noticeably better. That “all clear” feeling afterward is a distinguishing feature. Heart attack pain, by contrast, doesn’t fully let up. It may wax and wane in intensity, but it persists.

When the Heart Is the Cause

About 15% of people who see a doctor for chest pain do turn out to have a cardiac cause. The classic pattern for stable angina is chest pressure or tightness brought on by physical exertion, emotional stress, or anything that makes your heart work harder. Episodes typically last 2 to 5 minutes and ease when you stop the activity and rest. The pain often feels like squeezing or heavy pressure rather than a sharp stab.

Heart-related chest pain is more likely to radiate outward to the shoulders, neck, jaw, or arms, particularly the left arm. It may also come with shortness of breath, cold sweats, lightheadedness, or nausea. If your episodes follow a predictable pattern tied to exertion and consistently resolve with rest, that pattern itself is important information for your doctor, because it suggests the heart may not be getting enough blood flow during periods of increased demand.

Lung-Related Chest Pain

Pleurisy, an inflammation of the lining around the lungs, causes sharp, well-localized chest pain that gets noticeably worse with each deep breath, cough, or sneeze. It can also flare when you laugh or change positions. This “breathing-dependent” quality sets it apart from most other chest pain. Pleurisy often follows a respiratory infection and resolves as the underlying illness clears, though it can signal other conditions like pneumonia or, less commonly, a blood clot in the lung.

Symptoms That Need Immediate Attention

Intermittent chest pain deserves a medical evaluation, but certain features call for calling emergency services rather than scheduling an appointment:

  • Pressure, squeezing, or tightness in the center of the chest that lasts more than a few minutes or keeps coming back in waves
  • Pain spreading to the shoulders, neck, jaw, or one or both arms
  • Cold sweat or clammy skin alongside the chest discomfort
  • Shortness of breath, especially if it comes on at rest
  • Lightheadedness, dizziness, or nausea paired with any of the above

Some heart attacks don’t produce the dramatic crushing pain people expect. Jaw pain alone, unexplained shortness of breath, or pain that waxes and wanes can all be cardiac in origin, particularly in women, older adults, and people with diabetes.

How Doctors Figure Out the Cause

An evaluation for intermittent chest pain usually starts with an electrocardiogram (EKG), a quick, painless test that records your heart’s electrical activity and can reveal signs of reduced blood flow or prior damage. If your risk for heart disease is low to moderate, the next step is often a stress test, where your heart is monitored while you walk on a treadmill to see how it responds to exertion. Some doctors opt for a CT scan of the coronary arteries instead, which can visualize blockages directly.

If cardiac testing comes back normal, the focus shifts to other systems. Your doctor may explore reflux with a trial of acid-suppressing medication, check for musculoskeletal causes through a physical exam, or screen for anxiety if your symptom pattern fits. Because the causes span multiple organ systems, it sometimes takes more than one visit and more than one type of testing to pin down the answer. Keeping a log of when your pain occurs, what you were doing, how long it lasted, and what helped can speed this process significantly.