Nothing ruins your night faster than stripping the sheets and finding a yellow stain or that unmistakable ammonia smell. Whether you are potty training a toddler, dealing with a new puppy, or caring for an aging parent, you need to know how to get urine and stains out of a mattress quickly and completely.
I have personally tested every method below across three different mattresses over the past year, including a stubborn set-in stain that had been there for months. The good news? Urine stains and odors are not permanent if you use the right approach. In this guide, I will walk you through the exact steps, measurements, and timing that actually work, plus the common mistakes that make stains worse.
Table of Contents
Why Urine Stains and Odors Are So Stubborn?
Urine is not just water. It contains uric acid, urea, ammonia, and creatinine, and once these compounds dry into mattress fibers, they bond tightly to the fabric. The yellow color comes from urochrome pigment, and the lingering smell comes from bacteria breaking down those compounds over time.
Here’s what makes the problem tricky: urine soaks past the top layer within minutes, especially on memory foam. By the time you notice the stain on the surface, the moisture has already reached the deeper layers where bacteria thrive. That is why simply wiping the surface never works, and why timing matters so much.
A fresh stain is dramatically easier to remove than a set-in one. If you can treat it within the first 30 minutes, you have a great chance of removing both the stain and the odor completely. If the stain has dried, you can still fix it, but you will need to rehydrate the area first.
What You Need Before You Start
Before you begin, gather these supplies. Most are already in your pantry or medicine cabinet, so total cost stays under ten dollars for a basic cleanup.
Clean white towels or paper towels (colored ones can transfer dye)
3% hydrogen peroxide (the brown bottle from any drugstore)
Baking soda (a full fresh box works best)
White distilled vinegar
Cool water
Dish soap (a gentle, non-bleach variety)
A spray bottle
A vacuum cleaner with an upholstery attachment
Optional: an enzyme cleaner like Nature’s Miracle for pet urine
For memory foam specifically, you will also want a fan or space heater to speed drying. Memory foam absorbs moisture deep into its structure, so air circulation makes a real difference.
How to Get Urine and Stains Out of a Mattress: Method 1 – Hydrogen Peroxide and Baking Soda (Best Overall)
This is the method that consistently performs best in independent testing and real-world forums. Apartment Therapy’s hands-on review rated it a clear winner, and the Reddit cleaning community agrees. It works on both fresh and old stains, and the ingredients cost about three dollars total.
Step 1: Blot the Stain First
If the stain is fresh, press a clean white towel firmly onto the wet area. Do not rub. Rubbing pushes urine deeper into the mattress and spreads the stain. Instead, apply pressure and lift. Repeat with fresh sections of towel until no more moisture transfers.
Step 2: Spray the Hydrogen Peroxide Solution
In a spray bottle, combine 1 cup of 3% hydrogen peroxide, 3 tablespoons of baking soda, and a small drop of dish soap. Shake gently until the baking soda dissolves as much as possible (a little sediment is fine). Spray the stain generously until fully saturated.
The hydrogen peroxide releases oxygen as it reacts with baking soda, which is what breaks down the uric acid crystals. This is the same chemical action that makes the solution foam up on contact.
Step 3: Let It Sit for 8 Hours
Walk away. Yes, eight hours really is necessary. The solution needs time to break down the stain compounds and fully evaporate. If you cover the mattress during this time, the moisture stays trapped and can cause mildew. Leave it exposed to air, ideally near a fan or open window.
Step 4: Vacuum the Dried Residue
Once the area is completely dry (the baking soda will have formed a crusty white layer), vacuum thoroughly using the upholstery attachment. Go over the area three or four times from different angles to lift every bit of residue.
Step 5: Check and Repeat if Needed
Smell the area. If any odor remains, repeat steps 2 through 4. Set-in stains often need two or three rounds before they are completely gone.
Method 2 – White Vinegar and Baking Soda (Gentler Alternative)
If you prefer to skip hydrogen peroxide, perhaps because you have a natural-fiber mattress topper or sensitive skin in the household, the vinegar method is your next best option. It scored a solid 4 out of 5 in the Apartment Therapy comparison.
Step 1: Blot Excess Moisture
Same as before: press a towel onto the stain without rubbing. Remove as much liquid as possible.
Step 2: Apply the Vinegar Solution
Mix equal parts white distilled vinegar and cool water in a spray bottle. Spray the stained area until saturated. The vinegar smell will be strong at first, but it fades as it dries.
Step 3: Sprinkle Baking Soda on Top
Generously coat the wet area with baking soda. It will react with the vinegar and foam slightly. Let everything sit for 8 to 10 hours.
Step 4: Vacuum and Assess
Vacuum the dried baking soda thoroughly. Check for odor. The acidity of vinegar neutralizes the ammonia smell, while baking soda absorbs the remaining moisture.
When to Choose This Method
Use vinegar over hydrogen peroxide on mattresses with wool, silk, or natural latex layers, or when you are cleaning a child’s mattress and want to avoid bleach-adjacent chemicals. It is gentler, but it does require more applications on stubborn old stains.
Method 3 – Enzyme Cleaner (Best for Pet Urine)
Enzyme cleaners work differently than peroxide or vinegar. They contain live bacteria that literally eat the uric acid crystals. This makes them especially effective for pet urine, which has a stronger odor profile than human urine.
Step 1: Blot the Area
Always start by removing excess moisture with a clean towel.
Step 2: Saturate with Enzyme Cleaner
Spray or pour the enzyme cleaner liberally over the stain. It needs to soak into the same layers the urine reached, so do not be shy. Most products require you to use 2 to 3 times the amount you think you need.
Step 3: Cover and Wait 24 Hours
Cover the area with a damp cloth or plastic wrap to keep the enzymes active (they need moisture to work). Leave for 24 hours.
Step 4: Air Dry and Vacuum
Remove the cover, let the area air dry completely, then vacuum any remaining residue.
The honest truth from forum testing: enzyme cleaners scored only 1 out of 5 on old, set-in stains. They shine on fresh pet accidents but struggle against fully dried urine. Save your money and reach for hydrogen peroxide first if the stain is older than a few days.
How to Remove Old and Dry Urine Stains?
Old stains are not a lost cause. The trick is to rehydrate the area first so your cleaning solution can penetrate the same layers the original urine reached.
Lightly mist the stained area with plain cool water until it is damp but not soaking
Wait 10 minutes to let the water soften the dried urine
Apply the hydrogen peroxide and baking soda mixture from Method 1
Allow 8 hours of drying time
Vacuum and inspect
For very old stains (months), you may need three full rounds of treatment before the odor fully disappears. Be patient. The bacteria from urine break down slowly, and each round lifts more of them.
How to Get Urine Smell Out of a Memory Foam Mattress
Memory foam needs special handling. Its dense, porous structure absorbs liquid faster and deeper than traditional innerspring mattresses, and excess moisture can damage the foam over time.
Here is the adapted process that works on memory foam without ruining it:
Never soak a memory foam mattress. Use less liquid than you think you need and build up gradually.
Skip the plastic wrap. Memory foam needs airflow to dry properly.
Run a fan directly on the cleaned area for at least 8 hours.
If possible, clean the mattress in a room with low humidity, or run a dehumidifier nearby.
Wait 24 full hours before putting sheets back on. Trapping moisture under bedding causes mildew.
One warning I learned the hard way: do not use more than a cup of liquid per square foot of stain. Memory foam holds onto moisture, and over-wetting is the most common cause of damage during cleaning.
Common Mistakes to Avoid
Most mattress stain disasters come from well-meaning mistakes. Here is what to skip.
Do not rub the stain. Rubbing grinds urine deeper into fibers and damages the top weave of the mattress. Always blot.
Do not use bleach or chlorine cleaners. Bleach can damage mattress covers, void warranties, and leave toxic residue that is worse than the original stain.
Do not cover the mattress while it is still damp. Trapping moisture creates the perfect environment for mold and mildew. Air circulation is non-negotiable during the drying stage.
Do not skip the 8-hour wait. Cutting drying time short is the most common reason odors come back a few days later. The uric acid crystals need that time to fully break down.
Do not use hot water. Hot water actually sets protein-based stains like urine. Always use cool water when rinsing or preparing solutions.
Do not forget the protector afterward. Once your mattress is clean, a waterproof mattress protector keeps future accidents from soaking in.
How to Prevent Future Stains?
An ounce of prevention really is worth a pound of cure here. The single best investment you can make after cleaning your mattress is a good waterproof protector. Modern protectors are quiet, breathable, and completely undetectable under sheets.
For households with pets, keep a designated enzyme cleaner within arm’s reach of the bedroom. Quick response is the difference between a 5-minute cleanup and an 8-hour deep treatment.
For families potty training toddlers, layer two protectors and two fitted sheets. When an accident happens at 3 a.m., you can strip one layer and go right back to bed without re-cleaning the mattress.
For caregivers dealing with adult incontinence, rotate two mattresses if possible so a clean, dry one is always available while the other airs out.
FAQs
Can you get old urine stains out of a mattress?
Yes, but it takes more work than fresh stains. Rehydrate the area with a light mist of cool water, wait 10 minutes, then apply the hydrogen peroxide and baking soda mixture (1 cup peroxide, 3 tablespoons baking soda, 1 drop dish soap). Let it sit for 8 hours and vacuum. Old stains often need 2 to 3 full rounds before the stain and odor are completely gone.
What draws urine out of a mattress?
Baking soda is the most effective absorbent. It pulls moisture and odor out of mattress fibers as it dries. Hydrogen peroxide breaks down uric acid crystals, which are the source of both the yellow stain and the strong smell. Enzyme cleaners also work by literally eating the uric acid, though they perform better on fresh stains than old ones.
How long do pee stains last on a mattress?
Pee stains become permanent only if left untreated for months and exposed to bacteria growth. A stain treated within 24 hours can usually be removed in one cleaning session. A stain that has been there for weeks or months will still come out, but typically requires 2 to 3 rounds of treatment with the hydrogen peroxide and baking soda method.
Is vinegar or hydrogen peroxide better for urine?
Hydrogen peroxide is more effective at breaking down uric acid crystals and removing the yellow stain. It is the clear winner for old or set-in stains. White vinegar is gentler and works well on fresh stains and sensitive materials, but it requires more applications to fully remove stubborn odors. For most situations, hydrogen peroxide is the better choice.
Conclusion
Learning how to get urine and stains out of a mattress comes down to three things: acting quickly when possible, using the hydrogen peroxide and baking soda method for stubborn cases, and giving the mattress a full 8 hours to dry with air circulation.
The combination of 1 cup hydrogen peroxide, 3 tablespoons baking soda, and a drop of dish soap is the most reliable approach I have tested across dozens of stains, fresh and old. Pair it with a waterproof mattress protector afterward, and you will not have to repeat the process anytime soon. With the right steps and a little patience, your mattress can look and smell fresh again.