What Causes a Crackling Sound When Coughing?

Crackling sounds when you cough are produced by small airways in your lungs snapping open or shut as air forces its way through them. The sounds themselves are brief, explosive, and non-musical, distinguishing them from the whistling of wheezes or the low rumbling of congestion. While a bit of crackling after a cold can be harmless, persistent or worsening crackles often signal that something in the lungs needs attention, from fluid buildup and infection to scarring of lung tissue.

How Airways Create That Popping Sound

Your lungs contain a branching tree of airways that get progressively smaller the deeper they go. Under normal conditions these tiny passages stay open and air flows through silently. But when disease, fluid, or mucus causes sections of those airways to collapse or become sticky, the rush of air during breathing or coughing forces them to snap open or slam shut. Each snap produces a single, tiny acoustic burst. String dozens or hundreds of those bursts together in rapid succession and you hear what clinicians call “crackles” and what you experience as a crackling or popping sound.

Research into the physics of these sounds supports what is known as the stress-relaxation quadrupole hypothesis. In plain terms, when you breathe in, closed airways pop open explosively, generating relatively loud crackles. When you breathe out or cough, the same airways can slam shut again, producing a quieter version of the same burst. The opening events during inspiration tend to be more energetic than the closing events during expiration, which is why crackling is often louder when you inhale deeply than when you exhale or cough.1PubMed. Mechanism of inspiratory and expiratory crackles Coughing adds a blast of high-velocity air that can force open stuck airways all at once, sometimes making the crackles more dramatic or briefly clearing them.

Fine Crackles Versus Coarse Crackles

Not all crackling sounds are alike, and the distinction matters for figuring out what is going on. Clinicians broadly separate crackles into two types based on their pitch and duration. Fine crackles are short, high-pitched, and soft. They sound a bit like tearing apart strips of hook-and-loop fastener (which is why doctors sometimes call them “Velcro crackles”). Coarse crackles are longer, lower-pitched, and louder, more like bubbling or gurgling.

Studies comparing waveforms from patients with different lung diseases have shown that these two types can be reliably distinguished by their acoustic properties. Fine crackles have significantly shorter waveform durations and higher peak frequencies than coarse crackles. When researchers averaged these measurements per patient, there was no overlap between the two groups, meaning the sound characteristics cleanly separated fibrosis-type crackling from bronchitis-type crackling.2PubMed Central. Spectral and waveform characteristics of fine and coarse crackles This matters because fine and coarse crackles tend to point toward different underlying problems.

Common Conditions That Produce Crackling

A wide range of lung and heart conditions can cause crackling sounds, but the most frequent culprits fall into a few categories.

  • Pneumonia: Infection fills the small air sacs and surrounding tissue with fluid and inflammatory debris. As you breathe or cough, air pushing through these partially flooded passages creates crackles. The crackling in pneumonia tends to be localized to the area of the lung that is infected.
  • Heart failure: When the heart cannot pump efficiently, fluid backs up into the lungs. This pulmonary edema causes crackles that are often heard in both lungs, particularly at the bases. Crackles from heart failure can be fine or coarse depending on how much fluid has accumulated.
  • Chronic bronchitis and COPD: Ongoing inflammation and excess mucus production in the airways create coarse, bubbly crackles. These often change or temporarily clear after coughing, because coughing can move mucus out of the larger airways.
  • Interstitial lung disease and pulmonary fibrosis: Scarring and stiffening of lung tissue generate characteristic fine, Velcro-type crackles that tend to persist regardless of coughing.

Crackles are described as short, explosive, and non-musical, produced by patients with parenchymal lung diseases such as pneumonia, pulmonary fibrosis, and pulmonary edema.3PubMed Central. Respiratory sound classification for crackles, wheezes, and rhonchi in the clinical field using deep learning That non-musical quality is what separates crackling from wheezing, which has a whistling, sustained pitch and points more toward asthma or airway narrowing than toward fluid or scarring.

Why Coughing Sometimes Changes the Sound

If you notice that the crackling gets louder, softer, or disappears after you cough, that itself can be a clue. Coarse crackles caused by mucus in the larger airways are the most likely to clear or change with coughing. A productive cough physically moves the secretion that was blocking the airway, so the snap-open, snap-shut cycle stops until more mucus accumulates. Low-pitched rumbling sounds called rhonchi, which can accompany coarse crackles, are especially prone to clearing after a good cough.3PubMed Central. Respiratory sound classification for crackles, wheezes, and rhonchi in the clinical field using deep learning

Fine crackles, on the other hand, tend to be stubborn. In conditions like pulmonary fibrosis, the crackles come from stiff, scarred tissue that no amount of coughing will clear. One study measuring crackle pitch and rate in patients with pneumonia, congestive heart failure, and pulmonary fibrosis found that the average crackle pitch and rate did not change significantly following coughing across any of those three conditions.4PubMed Central. Crackle pitch and rate do not vary significantly during a single automated-auscultation session in patients with pneumonia, congestive heart failure, or interstitial pulmonary fibrosis So while coughing may temporarily reduce the number of crackles by reopening a few collapsed airways, it does not fundamentally change the character of the crackling in serious disease.

This is a useful rule of thumb: if your crackling goes away after coughing up mucus and stays gone for a while, it is more likely related to secretions in the airways. If it persists no matter how much you cough, the cause is more likely structural, meaning something about the lung tissue itself has changed.

Velcro Crackles and Pulmonary Fibrosis

Among the different crackling sounds lungs can make, the fine, dry, Velcro-like crackle deserves special attention because it is closely linked to a group of serious conditions called fibrotic interstitial lung diseases. In idiopathic pulmonary fibrosis (IPF), scar tissue gradually replaces healthy lung tissue, stiffening the lungs and making it harder for the small airways to open smoothly. The result is a distinctive, high-pitched crackling that sounds remarkably like slowly pulling apart Velcro.

These Velcro crackles are often one of the earliest physical signs of the disease. A prospective study found that on initial presentation, 93% of patients ultimately diagnosed with IPF had fine crackles detectable on examination, making it more common at first visit than cough (present in 86%), shortness of breath (80%), or several abnormal lung-function test results.5PubMed Central. Fine crackles on chest auscultation in the early diagnosis of idiopathic pulmonary fibrosis: a prospective cohort study That finding is striking: the crackling sound preceded the symptoms that usually drive people to see a doctor.

Research also shows that bilateral Velcro crackles strongly predict the specific radiologic patterns seen on high-resolution CT scans of the chest. In one study, bilateral Velcro crackles predicted fibrotic interstitial lung disease on CT imaging with an odds ratio over 13, and were even more strongly associated with the usual interstitial pneumonia pattern characteristic of IPF.6PubMed Central. “Velcro-type” crackles predict specific radiologic features of fibrotic interstitial lung disease In fact, all patients with that particular CT pattern and all patients with a final IPF diagnosis in another study had Velcro crackles on exam.7PubMed Central. Auscultation of Velcro Crackles is Associated With Usual Interstitial Pneumonia

IPF is a condition where early diagnosis genuinely changes outcomes, because treatment options work better when started sooner. Yet the average delay between first symptom and diagnosis is often measured in years. The fact that crackling can be heard so early, and that it so strongly predicts the disease, has prompted calls for primary-care doctors to listen more carefully for Velcro crackles during routine exams, especially in patients with unexplained cough or gradually worsening shortness of breath.

Crackling That Comes and Goes

Intermittent crackling is common and often less alarming than the persistent type. After a respiratory infection like a cold, flu, or COVID-19, residual inflammation and leftover mucus can cause crackling that gradually fades over days to weeks as the lungs heal. Lying in one position for a long time, such as sleeping on one side, can also cause temporary crackles in the dependent part of the lung as small airways partially collapse under the weight of the tissue above them. Taking a few deep breaths or moving around usually pops them open again.

Smokers and former smokers sometimes notice crackling, particularly in the morning. Chronic irritation from smoke causes the airways to produce more mucus, and overnight that mucus can pool in the smaller airways. The first deep breaths and coughs of the day force air through those mucus-coated passages, producing a round of crackling that may settle down once the airways have been cleared.

If crackling appears only occasionally and resolves quickly, it usually does not warrant urgent investigation. But crackling that has been present for more than a few weeks, crackling that is getting worse, or crackling accompanied by weight loss, fever, or progressive shortness of breath should prompt a medical evaluation.

How Pitch Changes During a Single Breath

There is a subtle detail in how crackling sounds evolve over the course of a single breath that reveals something interesting about lung anatomy. During inspiration, crackle pitch tends to rise progressively as the breath gets deeper. Early in the breath, when smaller volumes of air are entering, the larger, more central airways are the ones popping open. These produce lower-pitched crackles. As the breath deepens and air reaches the smallest, most peripheral airways, the crackles shift to a higher pitch because these tiny passages snap open more quickly and generate higher-frequency bursts.8PubMed Central. Crackle Pitch Rises Progressively during Inspiration in Pneumonia, CHF, and IPF Patients

This progressive pitch rise has been observed in pneumonia, heart failure, and pulmonary fibrosis patients alike. It reflects the orderly, sequential reopening of airways from large to small as the lungs fill. For clinicians, the timing and pitch pattern of crackles during a breath can offer additional clues about which parts of the lung are affected.

When Crackling Is Not Actually Coming from the Lungs

Not every crackling sound a doctor hears through a stethoscope originates in the lungs. There are several extrapulmonary sources worth knowing about.

Chest-wall crackles can occur when the stethoscope picks up the sound of skin, hair, or subcutaneous tissue moving against the chest piece during breathing. These are artifacts, not lung sounds, but they can sound convincingly like fine crackles. Research on electronic stethoscopes has shown that even the device’s diaphragm can produce fake crackle noise when it slightly lifts off the skin during chest expansion, particularly over the lower lungs where thoracic movement is greatest.9PubMed Central. Regularity and mechanism of fake crackle noise in an electronic stethoscope This kind of artifact is important to recognize because it could lead to unnecessary worry or testing if mistaken for genuine lung crackles.

Upper-airway sounds can also be confused with lung crackles. Secretions in the throat or nasal passages can generate crackling noises that transmit down into the chest. Swallowing, clearing the throat, or asking the patient to breathe through the mouth can help sort out whether the sound is truly pulmonary.

Digital Stethoscopes and AI-Assisted Listening

Listening for crackles has always depended on the skill and hearing of the person holding the stethoscope, which introduces variability. Two doctors listening to the same patient can disagree on whether crackles are present and whether they are fine or coarse. This subjectivity has driven interest in using digital stethoscopes combined with artificial intelligence to automatically detect and classify lung sounds.

Modern approaches convert recorded lung sounds into visual spectrograms and then feed those images into deep learning models trained to recognize patterns associated with crackles, wheezes, and other abnormal sounds.10PubMed Central. Deep learning-based lung sound analysis for intelligent stethoscope One system using a lightweight neural network architecture achieved about 84% accuracy in detecting crackles from recordings made with electronic stethoscopes and even mobile phones.11Biocybernetics and Biomedical Engineering. Automated detection of abnormal respiratory sound from electronic stethoscope and mobile phone using MobileNetV2 That is not perfect, but it is consistent, meaning it does not have good days and bad days the way a fatigued or distracted human listener might.

The promise of these tools is not to replace clinical judgment but to serve as a screening layer. A digital stethoscope that flags probable crackles could prompt a more thorough evaluation in settings where a specialist is not immediately available, such as rural clinics or telehealth visits. It could also help track changes over time more objectively, catching a gradual increase in crackle density that a human ear might not notice visit to visit.

That said, the fake-crackle problem discussed above is a real challenge for these systems. If the algorithm cannot reliably distinguish a true lung crackle from an artifact caused by the stethoscope lifting off the skin, automated detection could generate false positives. Ongoing research is working to train models to recognize and filter out these artifacts, but it remains an active area of development.

What to Tell Your Doctor

If you hear or feel crackling in your chest when you cough, the details you can share with a doctor go a long way toward narrowing down the cause. Useful things to note include when the crackling started, whether it happens with every cough or only at certain times of day, whether it changes when you shift positions, whether coughing clears it or it persists, and whether you have other symptoms like fever, mucus production, weight loss, or worsening shortness of breath.

A doctor evaluating crackling will typically listen to your lungs with a stethoscope in multiple positions to determine where the crackles are loudest and whether they are fine or coarse. Crackles limited to one area might suggest pneumonia or a localized process, while crackles spread across both lower lungs raise suspicion for heart failure or interstitial lung disease. If the history and exam point toward something beyond a simple respiratory infection, imaging with a chest X-ray or CT scan is usually the next step, sometimes alongside blood work or lung function tests.

For most people recovering from a standard respiratory infection, mild crackling that improves over a week or two is part of the normal healing process and does not require additional workup. The sounds worth taking seriously are the ones that do not go away, that worsen over time, or that appear without an obvious trigger like a recent cold. This is especially true if you are over 50, have a history of smoking, or have occupational exposure to dust or chemicals, all of which raise the risk of chronic lung conditions where early detection matters.