You should not whiten your teeth if you have untreated cavities. Whitening gels contain hydrogen peroxide or carbamide peroxide, and these chemicals can penetrate through decayed enamel into the inner layers of the tooth, causing significant pain and potentially damaging the living tissue inside. The standard approach is to treat cavities first, then whiten.
Why Cavities Make Whitening Risky
Healthy enamel acts as a barrier that slows how much bleaching gel reaches the inside of your tooth. A cavity breaks that barrier. Where decay has eaten through enamel and into the softer dentin layer underneath, hydrogen peroxide has a direct path toward the pulp, the soft tissue containing nerves and blood vessels at the center of the tooth.
Hydrogen peroxide penetrates toward the pulp because of its small molecular size and its ability to break down proteins in hard tooth tissue. Even in small concentrations, it can reduce the number of viable cells in the pulp and damage the layer of specialized cells (called odontoblasts) that line the inner surface of dentin. These cells play a key role in keeping the tooth alive and healthy. When bleaching gel seeps through a cavity, the exposure is far more intense than what intact enamel would allow, and the result is often sharp, deep pain rather than the mild sensitivity most people experience during whitening.
What It Feels Like When Gel Reaches Decay
Normal whitening sensitivity is a dull, temporary ache that fades after treatment. When peroxide enters a cavity or crack, the sensation is different: a sudden, sharp, or burning pain in a specific tooth. You might also notice increased sensitivity to hot and cold that lingers well after you remove the whitening tray or strip.
Beyond tooth pain, the peroxide can irritate soft tissue. Gum irritation and tooth sensitivity are the two most common side effects of bleaching agents, especially at higher concentrations. Signs of a chemical burn on the gums include soreness, redness, inflammation, and white patches where the gel made direct contact. If you feel burning or sharp discomfort during any whitening treatment, remove the product and rinse your mouth immediately.
The Correct Order: Fillings First, Then Whitening
Dentists follow a consistent sequence when a patient wants whiter teeth but also has decay. The cavity gets treated first, always. Decayed tooth structure is removed and replaced with a filling or crown before any cosmetic whitening begins. This protects the pulp from chemical exposure and gives you a stable, sealed tooth surface for the bleaching process to work safely against.
There’s a practical reason to plan ahead here. Fillings and crowns are color-matched to your existing teeth at the time they’re placed, and they do not respond to bleaching gel the way natural enamel does. That means if you get a filling matched to your current shade and then whiten your natural teeth later, the filling may look noticeably darker by comparison. If you know you want to whiten, tell your dentist before the filling is placed. They can select a slightly lighter shade for the restoration so it blends in once your surrounding teeth are whitened.
The gap between getting a filling and starting whitening doesn’t need to be long. Most dentists recommend waiting at least two weeks after a composite filling to allow the bond between the filling material and your tooth to fully mature, though your dentist may adjust this timeline based on the size and location of the restoration.
What Happens at a Pre-Whitening Exam
Any reputable whitening provider, whether a dental office or a clinic offering cosmetic treatments, should examine your mouth before starting. This exam checks for cavities, cracks, gum disease, and worn enamel that could make whitening unsafe or painful. A professional cleaning is typically done at the same appointment, since removing plaque and tartar helps the bleaching gel contact your enamel evenly.
This screening step is one reason professional whitening tends to be safer than jumping straight into over-the-counter strips or trays at home. You might have a cavity you don’t know about. Small areas of decay, especially between teeth or along the gumline, often cause no symptoms until they’re fairly advanced. Applying peroxide to a tooth you didn’t realize was compromised is how people end up with unexpected, intense pain during what they thought would be a routine cosmetic treatment.
What About Small or Early Cavities
Even a small cavity matters. The concern isn’t just about the size of the hole visible on the surface. It’s about whether the protective enamel layer has been breached enough to let peroxide through. A tiny spot of decay that barely shows up on an X-ray still represents a weak point where bleaching chemicals can seep deeper than they should. Your pulp cells are sensitive to hydrogen peroxide at any concentration, so “it’s just a small cavity” isn’t a safe reason to skip treatment before whitening.
If you suspect you have a cavity, or if it’s been more than six months since your last dental exam, getting checked before you whiten is worth the extra appointment. Treating the decay first means your whitening results will be more comfortable, more even, and you won’t risk turning a minor cavity into a bigger problem by flooding it with peroxide.

