Ibuprofen effectively treats certain types of chest pain, particularly those caused by inflammation, but it is not appropriate for all chest pain and can actually be harmful if the pain is cardiac in origin. The critical distinction is what’s causing your chest pain. Inflammatory conditions like pericarditis and costochondritis respond well to ibuprofen, while heart attack pain requires emergency treatment, and ibuprofen can make cardiovascular situations worse.
If your chest pain is new, severe, lasts longer than five minutes, or comes with sweating, shortness of breath, nausea, or pain radiating to your jaw, arm, or back, that’s a potential heart attack. Call 911 immediately. Do not take ibuprofen for chest pain you haven’t had evaluated.
Chest Pain That Ibuprofen Treats Well
Ibuprofen works by blocking the production of molecules called prostanoids, which are responsible for the redness, swelling, increased blood flow, and heightened pain sensitivity that define an inflammatory response. When chest pain is caused by inflamed tissue rather than a blocked artery, ibuprofen targets the root of the problem.
The two most common inflammatory causes of chest pain that respond to ibuprofen are pericarditis and costochondritis. Pericarditis is inflammation of the thin sac surrounding the heart. It produces a sharp, stabbing chest pain that often worsens when you lie down or take a deep breath, and improves when you lean forward. The European Society of Cardiology lists ibuprofen as a first-line treatment for acute pericarditis, typically prescribed at 600 mg every eight hours for one to two weeks, then gradually tapered down.
Costochondritis is inflammation of the cartilage connecting your ribs to your breastbone. It causes a localized, tender pain in the front of your chest that you can usually reproduce by pressing on the area. Over-the-counter ibuprofen at standard doses often resolves it within a few days to a couple of weeks. Musculoskeletal chest pain from muscle strains or rib injuries also responds well to ibuprofen for the same anti-inflammatory reasons.
Chest Pain That Ibuprofen Can Worsen
If chest pain is coming from your heart due to reduced blood flow (angina) or a heart attack, ibuprofen is not just unhelpful. It’s actively dangerous. A large meta-analysis published in The BMJ found that ibuprofen use was associated with roughly a 48% increased risk of heart attack, with the elevated risk appearing within the first week of use. The probability that ibuprofen increases heart attack risk was 97% based on the pooled data.
This doesn’t mean ibuprofen causes heart attacks in healthy people taking it occasionally for a headache. But if you have existing heart disease, a history of heart attacks, or undiagnosed cardiac chest pain, ibuprofen can promote blood clotting and raise blood pressure in ways that compound the problem. The FDA requires a black box warning on all NSAIDs stating they increase the risk of serious cardiovascular events including heart attack and stroke, and that this risk may appear early in treatment.
The Aspirin Interaction Problem
Many people with heart disease take daily low-dose aspirin to prevent blood clots. Ibuprofen interferes with aspirin’s ability to do this job. Both drugs compete for the same binding site on platelets, and if ibuprofen gets there first, it blocks aspirin from working properly.
The FDA has issued specific timing guidance for people who need both: take ibuprofen at least 30 minutes after your aspirin dose, or at least 8 hours before your next aspirin dose. This spacing allows aspirin to bind to platelets before ibuprofen can interfere. If you’re on daily aspirin for your heart, this timing matters every single time you take ibuprofen.
Protecting Your Stomach During Treatment
When ibuprofen is prescribed for inflammatory chest pain like pericarditis, the doses are higher than typical over-the-counter use and the treatment lasts one to two weeks. This combination increases the risk of stomach irritation, ulcers, and in rare cases, internal bleeding or perforation of the stomach lining.
To reduce this risk, take ibuprofen at the end of a full meal or with an antacid. Limit alcohol, which compounds stomach irritation. For longer courses of treatment, your doctor may prescribe a proton pump inhibitor, a type of acid-reducing medication that substantially lowers your risk of developing an ulcer. Signs of a stomach problem include persistent nausea, dark or tarry stools, or stomach pain that doesn’t go away.
How to Tell What’s Causing Your Chest Pain
The challenge with chest pain is that several very different conditions can feel similar. Some patterns help distinguish them, though none are perfectly reliable without medical evaluation.
- Inflammatory chest pain (pericarditis, costochondritis) tends to be sharp, localized, and affected by position or breathing. Pressing on the chest wall often reproduces the pain with costochondritis. Pericarditis pain typically eases when you sit up and lean forward.
- Cardiac chest pain is more often described as pressure, tightness, or squeezing rather than sharp or stabbing. It may radiate to the arm, jaw, neck, or back, and commonly comes with sweating, nausea, shortness of breath, lightheadedness, or a rapid irregular heartbeat.
- Musculoskeletal chest pain usually follows an injury, strain, or repetitive motion. It’s tender to the touch and worsens with specific movements.
Cardiac chest pain that lasts longer than five minutes and doesn’t improve with rest requires emergency care. A rapid or irregular heartbeat, fainting, or vomiting alongside chest pain are additional red flags that point away from a simple inflammatory cause.
The Bottom Line on Ibuprofen and Chest Pain
Ibuprofen is a proven, first-line treatment for chest pain caused by inflammation, especially pericarditis and costochondritis. For these conditions, it directly addresses the underlying problem and typically brings relief within days. But for cardiac chest pain, ibuprofen offers no benefit and carries real cardiovascular risk. The only way to know which category your chest pain falls into is to have it evaluated. If you’ve already been diagnosed with an inflammatory cause, ibuprofen is one of the best tools available. If you haven’t been evaluated, treating chest pain on your own with ibuprofen means gambling that it’s not your heart.

