7 Ways to Get Yellow Stains Out of a Mattress (And What’s Actually Causing Them)

7 ways to get yellow stains out of a mattress

Yellow stains on a mattress are almost universal—pretty much everyone has them, and most people have no idea they’re there until they strip the bed for a deep clean. They’re not always a sign of neglect. Some of the most common causes of mattress yellowing happen gradually over months and years of normal use, hidden under sheets and mattress protectors.

The frustrating part isn’t the stains themselves—it’s that the wrong cleaning method can spread the stain, push it deeper into the foam, or leave its own residue. And unlike carpet or fabric, a mattress can’t be thrown in a washing machine or saturated with liquid without creating new problems.

This guide covers seven methods for removing yellow stains from a mattress, explains what type of stain each method works best on, and tells you what to avoid so you don’t make things worse.

What’s Actually Causing the Yellow Stains

Before choosing a method, it helps to identify the type of yellowing you’re dealing with—because the cause determines the treatment:

  • Sweat and body oils. The most common cause of mattress yellowing. Over time, sweat soaks through sheets and into the mattress, leaving yellowish stains that build up gradually. These often appear as large, diffuse areas of discoloration rather than defined stain outlines.
  • Urine. Leaves distinct, often outlined yellow stains with a strong odor. The uric acid in urine yellows fabric and foam, and the smell intensifies over time if not properly treated.
  • Oxidation and age. Foam and fabric materials in mattresses naturally yellow with age due to chemical reactions with oxygen, light, and heat—similar to how white shoes and paper yellow over time. This type of yellowing is uniform across the surface rather than concentrated in spots.
  • Spilled food or drinks. Drinks containing tannins—tea, coffee, juice—leave yellowish stains with a defined edge. These are often the easiest to treat if caught early.
  • Biological fluids. Breast milk, blood, and similar fluids contain proteins that bond to fabric and foam and oxidize yellow over time.

Identifying the source helps you choose the right method and set realistic expectations. Sweat and urine stains respond well to most treatments. Age-related oxidation improves but rarely disappears completely.

Before You Start: The Ground Rules

These apply to every method on this list:

  • Use cold or cool water only. Hot water sets protein-based stains—sweat, urine, blood—permanently into the foam. This applies even to stains that look old.
  • Never saturate the mattress. Excess liquid soaks into the foam and takes days to dry, creating mold and mildew in the process. Use the minimum amount of liquid necessary.
  • Always blot, never scrub. Scrubbing spreads the stain and pushes it deeper into the material. Every motion should be a firm downward press and lift.
  • Dry completely before replacing bedding. A damp mattress under sheets is a mold incubator. Use a fan, open windows, or a hairdryer on the cool setting to speed drying.

What You’ll Need (Depending on the Method)

  • Baking soda
  • Hydrogen peroxide (3% concentration)
  • White vinegar
  • Dish soap
  • Salt
  • Laundry detergent (liquid)
  • Enzymatic cleaner
  • Cold water
  • A spray bottle
  • Clean white cloths or paper towels
  • A soft brush or old toothbrush
  • A fan or cool hairdryer for drying

Method 1: Baking Soda and Hydrogen Peroxide (Best All-Around Treatment)

This is the most effective general-purpose method for yellow mattress stains—particularly sweat, body oil, and light urine staining. Hydrogen peroxide breaks down the yellow pigment compounds through oxidation while baking soda lifts residue and absorbs moisture. Together they handle both the discoloration and any associated odor.

  1. Strip all bedding and allow the mattress to air out for 15–20 minutes before treating. Fresh airflow helps surface moisture evaporate before you add cleaning solution.
  2. Mix the cleaning solution in a spray bottle: combine one cup of 3% hydrogen peroxide, three tablespoons of baking soda, and two to three drops of dish soap. Swirl gently to combine—don’t shake, as this creates excessive foam. The dish soap helps the solution penetrate the mattress surface rather than beading on top.
  3. Test on a hidden area first. Apply a small amount to a corner or edge of the mattress and allow to dry. Most mattresses tolerate hydrogen peroxide well, but this step ensures there’s no unexpected reaction with the mattress cover fabric.
  4. Spray the solution generously over the stained area, covering the entire yellow patch plus a small border around it. Don’t soak the mattress—a damp, even coating is what you’re aiming for.
  5. Allow the solution to sit for 10–15 minutes. Don’t blot or disturb it during this time. The hydrogen peroxide needs contact time to break down the yellow compounds, and the baking soda needs time to start absorbing moisture.
  6. Blot gently with a clean white cloth, working from the outer edge of the stain toward the center. Use light, lifting pressure rather than scrubbing.
  7. Sprinkle a generous layer of dry baking soda over the treated area immediately after blotting. This second baking soda application draws out the remaining moisture and cleaning solution from the foam below the surface.
  8. Leave the baking soda for several hours—ideally three to four hours minimum, or overnight for deep stains. The longer it sits, the more moisture and residue it pulls out.
  9. Vacuum the dried baking soda thoroughly using an upholstery attachment, making several slow passes to remove all powder from the surface.
  10. Assess the stain once the mattress is fully dry. Hydrogen peroxide results often look underwhelming while the mattress is still damp but show clear improvement once dried. A second treatment on the following day typically removes any remaining discoloration.

Best for: Sweat stains, body oil yellowing, general discoloration, light urine staining.


Method 2: Enzymatic Cleaner (Best for Urine and Biological Stains)

For urine stains specifically—and any biological fluid stain including blood and breast milk—an enzymatic cleaner outperforms every home remedy on this list. Enzymatic cleaners contain live enzymes that biologically break down the organic compounds in urine and other biological fluids at a molecular level, eliminating both the yellow stain and the associated odor rather than just masking them.

  1. Blot up as much of the stain as possible with clean white cloths before applying the cleaner—especially if the stain is fresh. The less material in the mattress, the better the cleaner can work on what remains.
  2. Read the product label carefully. Enzymatic cleaners vary in concentration and required dwell time. Some require dilution; others are used full strength. Following the specific instructions matters more with enzymatic cleaners than with any other method.
  3. Apply the cleaner generously to the stained area, making sure it penetrates beyond just the surface. Urine soaks into foam—a superficial application won’t reach the stain or odor compounds below the surface.
  4. Cover the treated area with a clean damp cloth and leave for the dwell time specified on the label—usually 10–15 minutes, up to an hour for old or severe stains. The damp cloth prevents the cleaner from drying out before it has time to work.
  5. Blot up the excess cleaner with clean cloths, working from the outside in.
  6. Apply a layer of baking soda over the treated area and leave for several hours to absorb residual moisture and odor.
  7. Vacuum thoroughly once the baking soda has dried completely.
  8. Allow the mattress to air dry fully before replacing bedding. Use a fan directed at the surface to accelerate drying.
  9. Repeat if any stain or odor remains after the mattress is completely dry. Old urine stains in foam may need two to three treatments to fully resolve.

Best for: Urine stains, blood stains, breast milk stains, any biological fluid yellowing with associated odor.


Method 3: Dish Soap and Cold Water (Best for Fresh Food and Drink Stains)

For fresh spills—tea, coffee, juice, or other drinks that haven’t fully soaked in yet—dish soap and cold water is the fastest and most accessible response. It won’t touch old oxidation or deep urine staining, but for a recent food or drink spill caught within a few minutes, it’s often all you need.

  1. Blot up as much of the spill as possible immediately with clean paper towels or a cloth. Press firmly and absorb as much liquid as you can before introducing any cleaning solution—the less liquid in the mattress, the easier the treatment.
  2. Mix one teaspoon of dish soap with two cups of cold water. Stir gently until just combined. Cold water is essential—warm or hot water sets the stain.
  3. Apply the solution to a clean white cloth, not directly to the mattress. This prevents over-saturation of the foam below.
  4. Blot the stained area firmly, starting at the outer edge and working inward. Press down, hold for a few seconds, and lift straight up. Switch to a clean cloth section with every few blots.
  5. Continue until no more stain transfers onto the cloth. For fresh stains, this usually takes five to eight rounds of blotting.
  6. Rinse by blotting with a clean cloth dampened with plain cold water to remove all soap residue. Soap left in the mattress can cause its own yellowing or attract dust over time.
  7. Blot as dry as possible, then apply baking soda over the damp area and leave for several hours to draw out remaining moisture before vacuuming.

Best for: Fresh food and drink stains, tea, coffee, juice, light surface yellowing caught early.


Method 4: White Vinegar Spray (Best for Odor-Causing Yellow Stains)

White vinegar is a mild acid that neutralizes alkaline odor compounds—particularly effective on urine stains where odor is as much of an issue as the visible yellowing. It won’t dramatically whiten a deep stain on its own, but it deodorizes effectively and works well as a pre-treatment before baking soda or as a complement to Method 1.

  1. Mix equal parts white vinegar and cold water in a spray bottle.
  2. Spray the solution lightly over the stained area—damp rather than saturated. Mattresses absorb liquid quickly; too much vinegar solution soaking into the foam creates a lengthy drying time and potential mildew risk.
  3. Blot gently with a clean cloth to work the solution lightly into the surface without pushing it deeper.
  4. Allow to air for 10–15 minutes so the vinegar can neutralize odor compounds before covering.
  5. Apply baking soda generously over the vinegar-treated area. The baking soda absorbs the remaining moisture and vinegar while continuing to neutralize odor.
  6. Leave the baking soda for several hours or overnight, then vacuum thoroughly.
  7. Follow up with Method 1 (hydrogen peroxide paste) if the yellow stain remains after the baking soda has been vacuumed and the mattress is dry. Vinegar addresses the odor; hydrogen peroxide addresses the discoloration.

Best for: Urine stains with strong odor, older yellow stains with a smell component, pre-treatment before baking soda application.


Method 5: Baking Soda and Salt Paste (Best for Sweat Stains)

Sweat stains are protein and mineral-based, and they respond well to a salt-based treatment. Salt draws moisture and dissolved solids out of the mattress material through osmosis while baking soda absorbs odor and residue. This method is gentler than the hydrogen peroxide treatment and works particularly well on the large, diffuse yellowing that comes from years of sweat absorption.

  1. Mix equal parts baking soda and table salt with just enough cold water to form a thick paste—a consistency similar to wet sand. For a full mattress section, you may need a cup of each.
  2. Apply the paste generously over the yellowed area, spreading it in an even layer about half a centimeter thick.
  3. Press the paste lightly into the mattress surface with a clean cloth or gloved hand so it makes contact with the stained fibers rather than just sitting on top.
  4. Leave for a minimum of 30 minutes, up to several hours for deep sweat staining. The paste will dry and harden as it absorbs moisture from the mattress.
  5. Brush off the dried paste with a soft brush once fully hardened, working from the outer edges inward.
  6. Vacuum thoroughly to remove all residue from the surface.
  7. Assess the stain. For mild to moderate sweat yellowing, improvement should be visible. For deep, long-term sweat staining, follow up with Method 1 for a whitening treatment after the salt paste has removed surface residue.

Best for: Sweat stains, body oil yellowing, large diffuse yellowing from long-term use.


Method 6: Laundry Detergent Paste (Best for Defined Stain Outlines)

Liquid laundry detergent applied as a concentrated paste works well on stains with a defined outline—the kind left by coffee, tea, or juice. The surfactants in laundry detergent break down the tannins and pigments in these types of stains more effectively than dish soap or vinegar.

  1. Apply a small amount of liquid laundry detergent directly to the stain—just enough to cover the yellowed area without spreading beyond it. Don’t dilute it at this stage; the concentrated detergent needs direct contact with the stain.
  2. Work it gently into the stain with a soft toothbrush using small circular motions. Stay within the bounds of the stain—working beyond it risks spreading the dissolved pigment into the surrounding mattress fabric.
  3. Leave it for 10 minutes to allow the surfactants to break down the stain compounds.
  4. Blot with a clean damp cloth to lift the stain and detergent, working from the outside in.
  5. Rinse carefully by blotting with a cloth dampened with cold water—multiple rinse passes to ensure all detergent is removed. Detergent residue left in mattress fabric yellows over time, which defeats the purpose.
  6. Apply baking soda to absorb remaining moisture and leave for several hours before vacuuming.

Best for: Tea, coffee, juice stains, defined outline stains, tannin-based yellowing.


Method 7: Sunlight and Fresh Air (Best for Age-Related Oxidation Yellowing)

Age-related mattress yellowing—the uniform discoloration that develops over years simply from oxidation and use—doesn’t respond to cleaning treatments the same way stains do because there’s no specific compound to target. However, UV light breaks down some of the oxidized compounds responsible for the yellow color, and airing a mattress outdoors on a dry, sunny day is one of the most effective ways to address this type of yellowing and eliminate the general mustiness that accompanies it.

  1. Strip all bedding and remove the mattress from the bed frame. This method requires the mattress to be moved, which is heavy work—have a second person help.
  2. Carry the mattress outside on a dry, sunny day and lean it upright against a wall, fence, or railing where both sides can receive airflow.
  3. Expose the most yellowed side to direct sunlight first for two to three hours. UV light breaks down some oxidized compounds and kills bacteria and mildew that contribute to discoloration.
  4. Flip the mattress to expose the other side for another two to three hours.
  5. Sprinkle baking soda over both sides during the sun exposure for additional deodorizing—brush off or vacuum before bringing the mattress back inside.
  6. Bring the mattress in before evening when dew begins to form. Moisture reintroduced to a mattress you’ve just aired out undoes the work and can encourage mildew.
  7. Repeat every few months as ongoing maintenance. Regular airing prevents the buildup of moisture, odor, and the conditions that cause yellowing to worsen.

Note: This method improves age-related yellowing noticeably but won’t fully reverse it. For the best result on an older mattress, combine with Method 1 before the outdoor airing.

Best for: Age-related uniform yellowing, general mustiness, ongoing maintenance, mattresses that have never been aired.


Method Comparison at a Glance

MethodBest ForAddresses OdorSafe for All Mattresses
Baking soda + hydrogen peroxideSweat, body oil, general yellowingYesYes (test first)
Enzymatic cleanerUrine, blood, biological stainsFullyYes
Dish soap + cold waterFresh food and drink stainsPartiallyYes
White vinegar sprayOdor-causing stains, urineYesYes
Baking soda + salt pasteSweat stains, large diffuse yellowingYesYes
Laundry detergent pasteTea, coffee, defined outline stainsPartiallyYes
Sunlight and fresh airAge-related oxidation, mustinessYesYes

What Not to Do When Cleaning Mattress Yellow Stains

A few common mistakes that make yellowing worse rather than better:

  • Don’t use hot water. Hot water permanently sets protein-based stains—sweat, urine, blood—into foam. Always cold or cool water.
  • Don’t oversaturate the mattress. Excess liquid soaks into the foam layers and takes days to dry. Moisture trapped in foam grows mold and mildew far faster than the original stain damages anything.
  • Don’t scrub. Scrubbing spreads the stain into a larger area, pushes it deeper into the foam, and can damage the mattress surface fabric. Blot only.
  • Don’t use bleach. Bleach degrades foam and fabric over time, weakens the mattress structure, and can react with urine residue to create harmful fumes. Even on visible yellowing, bleach causes more long-term damage than the stain itself.
  • Don’t replace bedding before the mattress is fully dry. Sheets trapping moisture in a freshly cleaned mattress is one of the most common ways mildew develops inside the foam—and mildew smell is significantly harder to remove than the original yellow stain.

How to Prevent Yellow Stains from Returning

  • Use a waterproof mattress protector. This is the single most effective prevention measure—full stop. A good waterproof protector keeps sweat, spills, and biological fluids from ever reaching the mattress. It’s washable, inexpensive relative to a mattress, and eliminates the majority of staining causes entirely.
  • Wash bedding weekly. Sheets and pillowcases that go two or more weeks between washes allow sweat and oils to transfer into the mattress rather than being contained in the washable bedding.
  • Air the mattress regularly. Strip the bed and leave the mattress uncovered for a few hours every month—even just in a well-ventilated room. This allows accumulated moisture to evaporate before it can contribute to yellowing and odor.
  • Rotate the mattress every three to six months. Rotating distributes wear and sweat absorption more evenly, preventing concentrated yellowing in the areas where you sleep most heavily.

FAQ

Can old yellow stains be fully removed from a mattress? It depends on the type. Sweat and urine stains—even old ones—respond well to enzymatic cleaners and hydrogen peroxide treatments with multiple applications. Age-related oxidation yellowing improves significantly but rarely disappears completely. Set realistic expectations: old stains almost always require more than one treatment and may not fully vanish.

Is hydrogen peroxide safe for memory foam? 3% hydrogen peroxide (standard drugstore concentration) is generally safe for memory foam when used sparingly and rinsed out thoroughly. Avoid soaking memory foam—it takes much longer to dry than standard coil mattresses and is more susceptible to mildew if left damp.

Why does my mattress smell after cleaning? Usually means moisture is still trapped in the foam. Make sure the mattress is completely dry before replacing bedding—this can take six to eight hours for a thick foam mattress. A fan directed at the surface significantly speeds drying. If the smell persists after complete drying, residual organic compounds remain in the foam and need enzymatic treatment.

How do I clean yellow stains from a mattress topper? Most mattress toppers can be treated with the same methods above. Thinner toppers dry faster, but the same rule applies—don’t saturate. Some mattress toppers have removable covers that can be machine washed, which handles surface yellowing more thoroughly than spot treatment.

The Bottom Line

Yellow mattress stains are almost always treatable—the key is matching the method to the cause. Hydrogen peroxide and baking soda handle most general yellowing. Enzymatic cleaner is the right tool for urine and biological stains. Vinegar addresses the odor component. And sunlight handles what no cleaning product can fully reverse on its own. Whatever method you use, use as little liquid as possible, blot rather than scrub, and don’t replace the bedding until the mattress is completely dry. Then put a waterproof protector on it—and you’ll rarely need to do this again.

Scroll to Top