Foaming at the mouth happens when excess saliva mixes with air, creating a buildup of small, tight bubbles. Think of it like brushing your teeth with twice as much toothpaste as you need: the extra paste froths up and spills out. The same thing happens when something causes your body to produce far more saliva than normal, or when fluid from the lungs reaches the mouth and gets aerated by breathing. Several serious medical conditions can trigger this, and the cause determines how dangerous it is.
How Foam Actually Forms
Your salivary glands normally produce saliva at a controlled rate. When certain conditions overstimulate those glands, or when the muscles that control swallowing stop working properly, saliva pools in the mouth and throat. As you breathe, air passes through that pooled fluid and whips it into foam, the same way blowing air through soapy water creates bubbles. The foam itself isn’t a distinct substance. It’s just saliva (or sometimes lung fluid) plus air.
The color of the foam matters. White foam typically points to excess saliva or mucus. Pink or blood-tinged foam suggests fluid is leaking from the lungs or that someone has bitten their tongue or cheek. Both are signals worth paying close attention to.
Seizures
Tonic-clonic seizures (sometimes called grand mal seizures) are one of the most common reasons people foam at the mouth. During the tonic phase, every muscle in the body contracts forcefully, including the muscles around the lungs, sometimes forcing air out with enough pressure to produce a cry or moan even though the person is unconscious. The jaw clamps shut, and the salivary glands go into overdrive from the intense nerve stimulation.
Because the person can’t swallow during the seizure, saliva accumulates and mixes with air from labored breathing. If the tongue or inner cheek gets bitten during the clenching, blood mixes in, giving the foam a pinkish tint. The foaming typically stops once the seizure ends, usually within one to three minutes, as normal swallowing reflexes return.
Drug Overdose
Opioid overdoses can cause foaming through a different pathway: the lungs themselves fill with fluid. Opioids suppress breathing, and as oxygen levels drop, pressure changes in the chest allow fluid to leak from blood vessels into the air sacs of the lungs. This condition, called pulmonary edema, produces a frothy, often pink-tinged sputum that rises into the throat and mouth.
This type of foam is distinct from seizure-related foam because it originates in the lungs rather than the salivary glands. It’s often accompanied by extreme difficulty breathing, bluish skin, and unresponsiveness. Overdoses involving fentanyl, heroin, and prescription painkillers are the most frequent culprits, though other drugs like stimulants can also trigger pulmonary edema in some cases.
Chemical Poisoning
Exposure to organophosphates, chemicals found in certain pesticides and nerve agents, causes some of the most dramatic foaming. These chemicals block an enzyme that normally clears a signaling molecule called acetylcholine from your nerve endings. Without that cleanup, acetylcholine accumulates and massively overstimulates glands throughout the body.
The result is a cascade of uncontrolled secretions: excessive saliva, tears, sweat, urination, and heavy bronchial secretions that flood the airways. Emergency responders learn this pattern through the mnemonic DUMBELS, which stands for defecation, urination, miosis (pinpoint pupils), bronchospasm, emesis (vomiting), lacrimation (tearing), and salivation. The combination of profuse salivation and bronchial fluid mixing with air produces severe, persistent foaming. Without rapid treatment, the airway obstruction from all that fluid can be fatal on its own.
Rabies
Rabies is the condition most people picture when they think of foaming at the mouth, and the biology behind it is striking. The rabies virus travels along nerves from the bite wound to the brain, then spreads back outward to various tissues. The salivary glands are its primary target, because the virus replicates there and relies on saliva (through biting) to spread to new hosts.
The infection of salivary glands causes heavy, constant drooling. Meanwhile, roughly 80% of rabies patients develop the “furious” form of the disease, which includes violent spasms of the throat muscles triggered by the sight, sound, or even thought of water. This is the classic hydrophobia. Because swallowing becomes excruciatingly painful and sometimes physically impossible, saliva has nowhere to go. It pools, froths with each breath, and drips from the mouth. The foaming in rabies is essentially the virus engineering the perfect conditions for its own transmission.
Heart Failure and Lung Conditions
Pulmonary edema doesn’t only happen during overdoses. Congestive heart failure is a far more common cause. When the heart can’t pump efficiently, blood backs up into the lungs, and fluid seeps into the air sacs. The resulting foam can be white or pink depending on severity, and it’s typically accompanied by worsening shortness of breath, a cough that gets worse when lying flat, and fatigue.
Severe asthma attacks and COPD flare-ups can also produce white, foamy sputum, though this comes from mucus overproduction in the airways rather than fluid leaking from blood vessels. The distinction matters for treatment, but from the outside, the foaming can look similar.
What to Do If Someone Is Foaming
If you see someone foaming at the mouth and they’re unresponsive, call emergency services immediately. While waiting, the most important thing you can do is protect their airway. Roll the person onto their left side into what’s called the recovery position: place one of their arms up so their head rests on it like a pillow, position their other hand against their face for support, and bend one or both knees to keep them stable on their side.
This position lets foam, saliva, vomit, or blood drain out of the mouth instead of sliding back into the throat, where it could block breathing. If the person is having a seizure, don’t try to hold them down or put anything in their mouth. Just clear the area around them, get them on their side once the convulsions stop, and wait for help. If you suspect an opioid overdose and have access to naloxone (Narcan), administer it while keeping the person in the recovery position.
Foaming at the mouth is always a sign that something significant is happening in the body, whether it’s a seizure, a poisoning, a lung problem, or an infection. The foam itself isn’t dangerous, but the underlying cause almost always needs urgent medical attention.

