Pain when breathing—whether it is a brief twinge, a burning sensation, or sharp pain when breathing—should never be assumed to be harmless. While many cases come from strained chest-wall muscles or irritated cartilage, pain that worsens with a deep breath can also signal serious heart, lung, or blood-vessel emergencies.
If you have sudden chest pain lasting more than a few minutes, trouble breathing, pain spreading to the arm, back, neck, or jaw, fainting, coughing blood, or a rapid heartbeat, seek emergency care immediately. These can be warning signs of a heart attack or pulmonary embolism- Heart & nhsinform]
What Causes Pain When Breathing?
What causes pain when breathing is often a question about the structures involved in each breath: the lungs, pleura (the thin linings around the lungs), ribs, chest muscles, heart, esophagus, and nerves. Pain can be triggered by movement of the chest wall, inflammation, infection, reduced blood flow, or pressure changes inside the chest.
Breathing normally expands and contracts the rib cage and lungs. When any inflamed, injured, or compressed structure moves during that cycle, it can hurt—especially during a deep inhalation, cough, sneeze, or twist of the torso. Pleurisy, for example, causes sharp chest pain that becomes worse with breathing, coughing, or sneezing- Mayoclinic
The location and pattern of pain provide clues, but they cannot reliably diagnose the cause. Pain from the lungs or pleura is often sharp and breath-dependent; pain from the heart may feel like pressure or squeezing; and musculoskeletal pain may be tender when you press on the chest or move in certain ways.
What Causes Pain When Breathing Deeply?
What causes pain when breathing deeply commonly involves pleuritic pain—pain arising from irritation of the pleura, the two thin layers of tissue that separate the lungs from the chest wall. When these layers become inflamed, they rub together during breathing, producing a sharp, stabbing sensation.
Common causes include viral illnesses such as influenza, bacterial infections such as pneumonia, autoimmune conditions such as lupus or rheumatoid arthritis, and pulmonary embolism. Deep breathing can also aggravate rib injuries, costochondritis, muscle strains, and inflammation around the heart.
A key point is that “it hurts more when I breathe deeply” does not automatically mean the lungs are the source. A pulled intercostal muscle, an irritated rib joint, or inflammation of the pericardium—the sac around the heart—can all intensify with a deep breath.
However, new or worsening pain with deep breathing deserves medical assessment, particularly if it began suddenly or occurs with shortness of breath, fever, cough, leg swelling, dizziness, or fainting. Pulmonary embolism, for instance, often causes pain with deep breathing along with shortness of breath and rapid breathing.
What Causes Pain When Breathing in the Back?
What causes pain when breathing in the back can originate in the lungs and pleura, but it may also come from the spine, ribs, back muscles, or nerves. Pain in the upper back that changes with breathing can occur when inflammation near the lung lining irritates nerves shared with the chest and back.
Pleurisy and pneumonia can cause pain that is felt in the chest, side, or back, especially with a deep breath or cough. Pleurisy is inflammation of the pleura, while pneumonia is a lung infection that can cause chest pain when breathing or coughing, along with cough, chills, fever, and shortness of breath.
Back pain with breathing can also stem from a rib fracture, muscle strain, spinal joint irritation, or a pinched nerve. These causes are often linked to lifting, twisting, a fall, prolonged coughing, or repetitive upper-body activity. A clinician may consider imaging if there was trauma, persistent pain, fever, neurologic symptoms, or difficulty in breathing.
Do not dismiss upper-back pain that is sudden and severe—particularly if it occurs with shortness of breath, sweating, nausea, faintness, or pain radiating to the jaw or arms. Those symptoms can overlap with serious cardiac and pulmonary emergencies.
What Causes Pain When Breathing In and Out?
What causes pain when breathing in and out usually means the pain follows the mechanical motion of the chest. Inhalation expands the ribs and lungs; exhalation relaxes them. If pain occurs during both phases, inflammation or injury to the chest wall, pleura, lungs, or heart lining may be involved.
Pleuritic chest pain classically worsens during inhalation, but it can also be noticeable during coughing, sneezing, movement, or exhalation. NHS guidance notes that lung-related conditions can cause sharp chest pain that worsens when breathing in and out and may accompany coughing or breathlessness.
Pain that is worse when lying flat but improves when sitting upright or leaning forward is a distinctive clue for pericarditis, inflammation of the sac surrounding the heart. Pericarditis pain is often sharp or stabbing, may spread to the shoulder or neck, and can worsen with deep breaths or coughing.
By contrast, pain that is reproducible when a clinician presses on a specific spot on the chest wall is more suggestive of a musculoskeletal cause, such as costochondritis or a rib injury. Still, chest-wall tenderness does not completely rule out a dangerous cause, so new unexplained symptoms should be evaluated.
Sharp Pain When Breathing: When It Is an Emergency
Sharp pain when breathing is one of the more concerning patterns because it can accompany pulmonary embolism, pneumothorax, pneumonia, pleurisy, and pericarditis. The character of the pain matters, but timing and associated symptoms matter even more.
A pulmonary embolism occurs when a blood clot travels to the lungs and blocks blood flow. The National Heart, Lung, and Blood Institute lists shortness of breath, pain with deep breathing, rapid breathing, and a higher heart rate among common symptoms. Mayo Clinic describes the chest pain as often sharp and felt during a deep breath, sometimes preventing a person from taking a full breath.
A pneumothorax, or collapsed lung, can cause sudden chest pain and shortness of breath. Mayo Clinic advises immediate medical attention if chest pain is severe or breathing becomes increasingly difficult.
Call emergency services rather than driving yourself if you have:
- Sudden chest pain lasting 15 minutes or more.
- Pain spreading to the arms, back, neck, or jaw.
- Significant or worsening shortness of breath.
- Coughing up blood, particularly with a fast heartbeat or difficulty breathing.
- Fainting, severe dizziness, cold sweat, or confusion.
- Pain with a known clot risk, recent surgery, immobility, cancer, pregnancy, or a long trip.
1. Pleurisy: Inflammation of the Lung Lining
Pleurisy, also called pleuritis, is inflammation of the pleura—the thin layers surrounding the lungs. It is a leading explanation for sharp pain when breathing, especially when the pain is localized to one side and clearly worsens with inhalation, coughing, or sneezing.
The pleura normally allows smooth movement of the lungs within the chest. When inflamed, the layers can rub painfully against each other. People may consciously take smaller breaths to avoid the pain, which can lead to shortness of breath.
Common triggers include viral infections such as influenza, bacterial infections such as pneumonia, fungal infections, autoimmune diseases including lupus and rheumatoid arthritis, and pulmonary embolism. Pleurisy itself is not always dangerous, but it can be a sign of an underlying condition that requires treatment.
Warning features include high fever, productive cough, worsening breathlessness, coughing blood, or pain that does not improve. NHS advises urgent emergency assessment for sudden chest pain lasting 15 minutes or more, pain spreading to the arms/back/neck/jaw, breathing difficulty, or coughing blood.
Treatment depends on the cause. Viral pleurisy may improve with time and supportive care, while bacterial pneumonia requires appropriate antibiotics; autoimmune or clot-related causes require targeted treatment. Do not self-diagnose pleurisy solely from chest pain, because several emergencies can mimic it.
2. Pneumonia: Lung Infection and Inflammation
Pneumonia is an infection that inflames the air sacs in one or both lungs. It can cause pain when breathing, particularly with coughing or deep inhalation, and may produce fever, chills, cough with mucus, fatigue, and shortness of breath.
The pain may be sharp, aching, or localized to one side of the chest. It can also be felt in the upper back or shoulder area, especially when the infection involves tissue near the chest lining. The NHLBI specifically lists chest pain when breathing or coughing among pneumonia symptoms.
Pneumonia can range from mild to life-threatening. Older adults, young children, people with weakened immune systems, and those with chronic lung or heart disease are at higher risk of complications. Rapid breathing, confusion, bluish lips, severe breathlessness, or inability to keep fluids down warrant urgent medical attention.
Diagnosis may involve a physical examination, chest X-ray, pulse oximetry, blood tests, and sometimes sputum testing. Treatment depends on whether bacteria, viruses, or other organisms are responsible; bacterial pneumonia is commonly treated with antibiotics, while supportive care may include fluids, rest, oxygen, and fever control.
Seek urgent care if you have severe chest pressure, severe difficulty breathing, confusion, persistent high fever, or coughing blood. NHS notes that severe chest pain that does not go away, or pain spreading to the arms, back, neck, or jaw, needs emergency evaluation.
3. Pulmonary Embolism: A Blood Clot in the Lungs
A pulmonary embolism (PE) is a potentially life-threatening blockage in an artery supplying the lungs, usually caused by a blood clot that traveled from a deep vein in the leg or pelvis. It is one of the most important answers to what causes pain when breathing deeply.
Typical symptoms include sudden shortness of breath, sharp chest pain that worsens with a deep breath, rapid heartbeat, rapid breathing, coughing—sometimes with blood—and lightheadedness or fainting. Some people also have unilateral leg swelling, warmth, redness, or calf pain from the original clot.
Risk factors include recent surgery or major injury, prolonged bed rest or travel, cancer, pregnancy, estrogen-containing medications, inherited clotting disorders, obesity, smoking, and prior venous thromboembolism. Blood clots can develop in veins damaged by surgery or trauma or as a result of inflammation from infection or injury.
PE is an emergency because it can strain the heart and reduce oxygen delivery. Evaluation often includes assessment of oxygen levels, an ECG, blood tests such as D-dimer when appropriate, and imaging such as a CT pulmonary angiogram. Treatment may involve anticoagulant medication, clot-dissolving therapy in selected severe cases, or other procedures.
Do not wait to see whether it improves. If you have unexplained sharp chest pain with breathlessness, especially after surgery, immobility, a long flight, or new leg swelling, seek emergency care immediately.
4. Pneumothorax: A Collapsed Lung
A pneumothorax occurs when air collects in the space between the lung and chest wall, causing part or all of a lung to collapse. Its hallmark symptoms are sudden chest pain and shortness of breath.
The pain is often sharp and may begin during rest, exercise, coughing, or after a chest injury. In some cases, it occurs spontaneously—particularly in tall, thin young adults or people with underlying lung disease. Severity depends on how much of the lung has collapsed.
A small pneumothorax may sometimes be monitored, while a larger or worsening one may require oxygen, needle decompression, or a chest tube to remove air and allow the lung to re-expand. The correct approach depends on the size, cause, symptoms, and stability of the patient.
Seek emergency care for sudden one-sided chest pain with breathlessness, especially after a chest injury, scuba diving, vigorous exertion, or in someone with known lung disease. Mayo Clinic specifically advises immediate care if chest pain is severe or breathing becomes increasingly difficult.
5. Pericarditis: Inflammation Around the Heart
Pericarditis is inflammation of the pericardium, the thin sac surrounding the heart. It can cause chest pain that feels sharp or stabbing, although some people experience pressure-like or aching discomfort.
A useful pattern is pain behind the breastbone or on the left side that worsens when lying down or taking a deep breath and improves when sitting up or leaning forward. Pain may spread to the left shoulder, neck, or both shoulders.
Other symptoms can include cough, fatigue, low-grade fever, palpitations, leg or foot swelling, and shortness of breath when lying down. Pericarditis can follow a viral illness, but it may also be associated with autoimmune disease, kidney disease, heart injury, or other conditions.
Although pericarditis is sometimes self-limited, it needs medical assessment because inflammation around the heart can occasionally lead to fluid accumulation or other complications. Clinicians may use an ECG, echocardiogram, blood tests, and sometimes imaging to evaluate the heart and rule out more dangerous causes.
Do not assume that pain improving when you lean forward is “just” pericarditis. Any new chest pain—particularly with breathlessness, fainting, or radiation to the arm or jaw—should be assessed urgently.
6. Costochondritis and Chest-Wall Injury
Not all breathing-related pain comes from the heart or lungs. Costochondritis is inflammation of the cartilage connecting the ribs to the breastbone, and it is a common musculoskeletal cause of chest pain.
Typical costochondritis pain is sharp, aching, or pressure-like and is often worsened by deep breathing, coughing, upper-body movement, stretching, or exertion. It is commonly located near the breastbone and may be tender when pressed.
Causes can include repetitive strain, heavy lifting, persistent coughing, poor posture, trauma, or inflammation. The American Academy of Family Physicians notes that musculoskeletal and chest-wall conditions are among the most common reasons people present with chest pain in primary care.
Other chest-wall causes include an intercostal muscle strain, rib bruise or fracture, arthritis, fibromyalgia, herpes zoster, and slipping rib syndrome. A rib injury may cause localized pain that intensifies with breathing, twisting, laughing, or pressing on the area.
Even if the pain feels muscular, do not rely on self-diagnosis if this is your first episode, the pain is severe, or you have cardiac risk factors. A clinician can determine whether the pain is reproducible with palpation and whether testing is needed to exclude heart or lung disease.
7. Heart Attack and Other Cardiac Causes
A heart attack occurs when blood flow to part of the heart muscle is blocked. Although people often imagine crushing central chest pain, symptoms can be subtler and may include shortness of breath with or without chest discomfort.
The American Heart Association describes heart-attack chest discomfort as pressure, squeezing, fullness, or pain in the center of the chest that lasts more than a few minutes or goes away and returns. It can spread to the arms, back, neck, jaw, or stomach.
Some heart attacks begin gradually with mild discomfort, fatigue, nausea, or breathlessness rather than dramatic pain. Women, older adults, and people with diabetes may be more likely to have atypical symptoms, including shortness of breath, nausea or vomiting, back or jaw pain, and unusual fatigue.
Other cardiac causes of pain with breathing include angina, inflammation of the heart lining, arrhythmias, and heart failure. Acute coronary syndrome can cause chest pressure, tightness, burning, or aching, sometimes with shortness of breath, dizziness, or radiation to the back, neck, shoulders, arms, or stomach.
Call emergency services immediately for suspected heart symptoms. Do not drive yourself to the hospital, and do not wait to see whether symptoms resolve. The American Heart Association advises calling 911 or local emergency medical services even when you are unsure whether it is a heart attack.
Other Possible Causes of Pain When Breathing
Several additional conditions can cause pain during breathing, even though they are not among the seven primary emergency-focused causes above.
- Asthma or chronic obstructive pulmonary disease (COPD): These can cause chest tightness, wheezing, coughing, and breathlessness. Pain may occur from prolonged coughing or strained chest muscles.
- Acid reflux or esophageal spasm: Stomach acid irritating the esophagus can produce burning chest pain that may worsen after meals or when lying down. It can be confused with cardiac pain.
- Anxiety or panic attacks: Rapid breathing and chest tightness can occur during anxiety, but these symptoms should not be assumed to be anxiety until dangerous causes have been excluded.
- Shingles: Before a rash appears, nerve inflammation can cause burning or sharp pain along one side of the chest or back.
- Lung cancer or other chest tumors: Less commonly, persistent pain, unexplained weight loss, coughing blood, or progressive breathlessness may reflect a serious thoracic condition requiring evaluation.
Because symptoms overlap, it is unsafe to determine the cause based on location or pain quality alone. A clinician will consider your medical history, vital signs, oxygen level, physical examination, and appropriate tests.
What Causes Pain When Breathing in the Back? Clues to Location
Pain location can help guide the conversation with a clinician, though it cannot replace examination and testing.
| Location | Possible contributors | Especially concerning features |
|---|---|---|
| Front or center of chest | Heart attack, angina, pericarditis, reflux, costochondritis | Pressure, sweating, nausea, radiation to arm/jaw, fainting |
| One side of chest | Pleurisy, pneumonia, rib injury, pneumothorax, pulmonary embolism | Sudden onset, breathlessness, coughing blood, fever |
| Upper back | Pleural irritation, pneumonia, muscle strain, rib or spine problem | Sudden severe pain, neurologic symptoms, shortness of breath |
| Lower chest or upper abdomen | Reflux, gallbladder disease, musculoskeletal strain, lung bases | Persistent pain, vomiting, fever, breathing difficulty |
| Pain with a specific tender spot | Costochondritis, rib injury, muscle strain | Fever, trauma, worsening breathlessness, persistent symptoms |
What Causes Pain When Breathing in and Out? Patterns That Matter
The timing of pain relative to the breathing cycle can offer useful clues.
- Worse with deep inhalation: Often suggests pleuritic pain, rib or chest-wall injury, costochondritis, pulmonary embolism, or pericarditis.
- Worse with coughing, sneezing, or movement: Often points toward chest-wall or musculoskeletal causes, though lung infections can also worsen with coughing.
- Worse when lying flat, better leaning forward: Raises concern for pericarditis, though confirmation requires medical evaluation.
- Sudden pain with breathlessness: Raises concern for pneumothorax or pulmonary embolism.
- Pain with fever, cough, or phlegm: Raises concern for pneumonia or another respiratory infection.
- Pressure-like pain lasting minutes or recurring: Raises concern for a heart attack or acute coronary syndrome.
When to Seek Urgent Medical Care
Get emergency help now for any of the following:
- Chest pain or pressure lasting more than a few minutes, or pain that returns.
- Pain spreading to the arms, back, neck, jaw, or stomach.
- Shortness of breath, particularly if it is new, severe, or worsening.
- Fainting, severe dizziness, confusion, or a cold sweat.
- Coughing up blood.
- Rapid heartbeat, rapid breathing, or bluish lips.
- Sudden one-sided chest pain after injury, diving, or vigorous activity.
- Chest pain with unilateral leg swelling, recent surgery, cancer, pregnancy, or prolonged immobility.
If symptoms are less dramatic but new, persistent, recurrent, or interfering with daily life, arrange a prompt medical appointment. Do not try to “wait out” unexplained chest pain, especially if you have heart disease, lung disease, diabetes, high blood pressure, a history of blood clots, or a family history of early heart disease.
How Clinicians Evaluate Breathing Pain
A clinician will usually begin by asking when the pain began, what it feels like, whether it changes with position or exertion, and whether it occurs with coughing, fever, leg swelling, or exertion. They will check vital signs, oxygen saturation, lung sounds, heart sounds, and tenderness over the chest wall.
Depending on the suspicion, tests may include:
- ECG: To assess heart rhythm and look for evidence of reduced blood flow or pericarditis.
- Chest X-ray: To look for pneumonia, pneumothorax, rib injury, or pleural fluid.
- Blood tests: Such as inflammatory markers, blood counts, cardiac troponin, and D-dimer when clinically appropriate.
- CT pulmonary angiography: Often used when pulmonary embolism is suspected.
- Echocardiogram: To assess heart function and look for fluid around the heart.
- Pulse oximetry or arterial blood gas: To measure oxygenation and breathing efficiency.
The right test depends on the likelihood of heart, lung, clot-related, infectious, or musculoskeletal disease. AAFP notes that localized chest-wall tenderness makes musculoskeletal pain more likely, but clinicians must still consider cardiovascular, pulmonary, gastrointestinal, and other causes.
What You Can Do Safely at Home
If you have already been medically evaluated and told that your pain is due to a minor musculoskeletal strain, follow your clinician’s advice. General comfort measures may include avoiding movements that repeatedly aggravate the pain, using heat or cold as advised, pacing activity, and treating an underlying cough.
Do not take prescription medicines, blood thinners, or anti-inflammatory drugs without considering your own medical conditions and clinician guidance, especially if you have kidney disease, stomach ulcers, bleeding risk, or take anticoagulants. Avoid vigorous exercise, heavy lifting, or deep-breathing exercises that provoke significant pain until a clinician has assessed the cause.
Most importantly, do not use home remedies to rule out a heart attack, pulmonary embolism, pneumonia, or collapsed lung. Breathing-related chest pain can range from a strained muscle to a life-threatening emergency, and only an appropriate medical evaluation can distinguish between them.
Key Takeaways
What causes pain when breathing can include pleurisy, pneumonia, pulmonary embolism, pneumothorax, pericarditis, chest-wall inflammation, and heart attack. What causes pain when breathing deeply often involves pleuritic irritation, chest-wall injury, or inflammation around the heart, while what causes pain when breathing in the back may involve the lungs, pleura, ribs, spine, or muscles.
The most important rule is simple: new chest pain with breathing deserves attention. If it is sudden, severe, persistent, or paired with breathlessness, fainting, sweating, coughing blood, or radiation to the arm, jaw, neck, or back, treat it as an emergency and seek immediate help.