As an affiliate, we may earn a commission from qualifying purchases. We get commissions for purchases made through links on this website from Amazon and other third parties.
Urine can be removed from a memory foam mattress if you act quickly, use as little liquid as possible, and dry the foam fully. Blot fresh urine first. Then clean the spot with a mild detergent solution or a cleaner made for urine. Memory foam holds moisture, so do not soak, scrub, or steam the mattress.
What You Will Need
Gather a few basic supplies:
- Clean white towels or paper towels
- Mild liquid laundry detergent or dish soap
- Cool or lukewarm water
- A spray bottle
- Baking soda
- A vacuum with an upholstery attachment
- A fan
- An enzyme cleaner for pet urine, if needed
- Waterproof gloves, if preferred
Check the mattress care instructions before applying any cleaner. Some memory foam mattresses have removable covers that must be washed separately.
How to Clean Fresh Urine From a Memory Foam Mattress
1. Remove the Bedding
Take off the sheets, mattress protector, and other bedding right away.
Wash washable items according to their care labels. Use the warmest water allowed by the fabric label. Do not place stained bedding in the dryer until the stain and smell are gone. Dryer heat may make the odor harder to remove.
If the mattress has a removable cover, check the manufacturer’s instructions before taking it off. Some covers are washable, while others are not.
2. Blot Up as Much Urine as Possible
Press a clean towel firmly onto the wet area. Lift the towel and repeat with a dry section.
Do not rub. Rubbing can spread the urine across the mattress and push it deeper into the foam.
For a very wet spot, place a folded towel over the area and press down using your hands. Replace the towel as it becomes damp.
Keep blotting until very little moisture transfers to the towel.
3. Apply a Small Amount of Cleaning Solution
For human urine, mix cool or lukewarm water with a small amount of mild liquid detergent. The solution should be lightly soapy, not full of suds.
Lightly mist the stained area. Do not pour the solution onto the mattress. Memory foam acts like a sponge and may take a long time to dry if it becomes saturated.
Let the solution sit briefly, then blot it with a clean towel.
Repeat with small amounts rather than using a lot of liquid at once.
4. Blot With Plain Water
Dampen a clean towel with plain water and wring it out well. Press it onto the area to lift away detergent residue.
Do not rinse the mattress by pouring water over it.
Blot again with a dry towel until the surface feels only slightly damp.
5. Cover the Area With Baking Soda
Sprinkle a generous, even layer of baking soda over the damp spot. Baking soda can help draw out moisture and reduce lingering smells.
Leave it in place until the mattress is fully dry. This may take several hours or overnight, depending on how wet the foam became.
Keep children and pets away from the area while the baking soda is sitting on the mattress.
6. Vacuum the Mattress
Once the baking soda and mattress are completely dry, vacuum the area with an upholstery attachment.
Check the spot for moisture and odor. Repeat the gentle cleaning process if needed, but allow the mattress to dry between treatments.
How to Remove Dried Urine
Old urine stains often need more than one treatment because the liquid may have dried inside the foam.
1. Find the Full Stained Area
Remove all bedding and inspect the mattress in good light. The visible mark may be smaller than the actual affected area.
Gently smell around the stain to locate the edges. Avoid pressing your face close to the mattress.
2. Lightly Dampen the Spot
Apply a small amount of mild detergent solution with a spray bottle or damp cloth. The goal is to loosen the dried residue without soaking the foam.
Let it sit briefly, then blot firmly with clean towels.
3. Treat the Odor
After blotting, cover the area with baking soda and let it sit for several hours or overnight.
Vacuum it away only after the mattress is fully dry.
A second treatment may be needed for an old stain. Several light treatments are safer for memory foam than one heavy, wet treatment.
How to Remove Pet Urine From Memory Foam
Pet urine can leave a strong odor because it contains compounds that ordinary soap may not fully remove. An enzyme cleaner made for pet urine may work better.
Enzyme cleaners break down parts of the urine that cause lingering smells. Product directions vary, so check the current label before using one on memory foam.
Before treating the full stain:
- Test the cleaner on a hidden part of the mattress.
- Check for color change or damage.
- Apply only the amount directed on the label.
- Blot away extra moisture.
- Dry the mattress fully.
Some enzyme products require enough contact time to work, but memory foam should not be flooded. Follow both the cleaner instructions and the mattress manufacturer’s guidance.
Do not apply detergent, vinegar, disinfectant, and enzyme cleaner at the same time. Other cleaners may stop the enzymes from working. Rinse or blot away one product and allow the area to dry before trying another method.
Review materials, fit, care, safety, cleaning, drying, and performance before deciding what suits your bed.
Can You Use Vinegar on a Memory Foam Mattress?
A diluted white vinegar solution is sometimes used for urine odors, but it is not suitable for every mattress cover or foam material. Check the mattress care instructions first and test a hidden area.
If the manufacturer allows it, lightly mist the affected area with a diluted solution. Blot instead of scrubbing, then apply baking soda after removing as much moisture as possible.
Do not soak the foam. Vinegar has its own strong smell and may take time to air out.
For pet urine, an enzyme cleaner is often a more practical first choice because it is made to target urine residue. Follow the product label.
What Not to Use
Memory foam can be damaged by rough cleaning, excess water, and heat.
Avoid:
- Pouring water directly onto the mattress
- Saturating the foam with cleaner
- Scrubbing with a stiff brush
- Using a steam cleaner
- Drying the mattress with high heat
- Putting the foam in a washing machine
- Using bleach unless the manufacturer clearly allows it
- Using ammonia-based cleaners
- Mixing household cleaning products
- Covering the mattress while it is still damp
Ammonia-based products may also smell similar to urine, which can be a problem in homes with pets.
Hydrogen peroxide may lighten some fabrics or foam covers. Use it only when the mattress instructions allow it, and test a hidden area first.
How to Dry a Memory Foam Mattress
Complete drying is one of the most important parts of the job. A mattress that feels dry on top may still hold moisture deeper inside.
To help it dry:
- Remove all sheets and protectors.
- Stand the mattress on its side when practical and safe.
- Point a fan across the damp area.
- Open windows if outdoor conditions are dry.
- Run a dehumidifier in the room.
- Keep the mattress uncovered.
- Avoid sleeping on it until it is fully dry.
Do not use a hair dryer, space heater, or other source of high heat. Heat may damage the foam or mattress cover.
Drying can take many hours. A deeply soaked spot may need longer.
How to Tell Whether the Mattress Is Fully Dry
Press a clean, dry towel firmly onto the cleaned area. The towel should not pick up moisture.
The foam should also feel the same temperature as the surrounding mattress. Damp areas sometimes feel cooler.
Check the sides and underside of the mattress if urine may have soaked through. Allow more drying time when you are unsure.
What to Do if the Smell Comes Back
A urine smell may return after the surface dries if residue remains deeper in the foam.
Try these steps:
- Remove the bedding and air out the mattress.
- Apply a small amount of the correct cleaner.
- Give the cleaner the contact time listed on its label.
- Blot out as much moisture as possible.
- Apply baking soda.
- Dry the mattress completely.
- Vacuum and check again.
Do not keep adding cleaner without allowing the foam to dry. Repeated soaking may spread the urine farther into the mattress.
A professional upholstery or mattress cleaner may be worth considering when the affected area is large. Ask whether their method is suitable for memory foam before booking.
When the Mattress May Need to Be Replaced
Cleaning may not fully solve the problem when:
- A large amount of urine soaked through the foam
- The accident happened several times in the same area
- The smell remains after several careful treatments
- The mattress stayed wet for a long time
- The foam has changed shape or texture
- The mattress cannot be dried fully
- Contamination reached most of the mattress depth
Replacement is more likely to be practical when the mattress has repeated, deep accidents rather than one small surface stain.
How to Prevent Future Urine Stains
A waterproof mattress protector is the easiest way to protect memory foam.
Choose a protector that:
- Covers the full sleep surface
- Fits the mattress depth
- Has a waterproof barrier
- Can be machine washed
- Does not bunch or slide
- Matches the care needs of the household
A fitted protector works well for occasional spills. A full mattress encasement covers the top, bottom, and sides, but it can take longer to remove and wash.
For kids’ beds, guest rooms, or pet-friendly bedrooms, keeping a spare protector nearby makes cleanup easier. Two thin protectors can also be rotated on laundry day.
Check the current product listing and care label before washing or drying a protector. High heat may damage some waterproof layers.
Frequently Asked Questions
Can urine ruin a memory foam mattress?
A small accident does not always ruin a memory foam mattress. Quick blotting, limited moisture, and full drying may remove the stain and smell. Deep soaking or repeated accidents can be much harder to clean because memory foam holds liquid inside its structure.
Can I wash memory foam with water?
Memory foam should not be soaked, rinsed under running water, or placed in a washing machine. Use small amounts of cleaning solution and blot away moisture. Always check the mattress manufacturer’s cleaning instructions.
Is baking soda safe for memory foam?
Baking soda is commonly used on dry or slightly damp mattresses to help absorb moisture and odors. Let the mattress dry completely before vacuuming it. Check the mattress care guide and keep baking soda away from children and pets while it is in use.
What cleaner is best for pet urine on a mattress?
An enzyme cleaner labeled for pet urine is often a practical choice. Test it on a hidden area and follow the product directions. Do not mix it with other cleaners, because some products may interfere with the enzymes.
How long does a memory foam mattress take to dry?
Drying may take several hours or longer. The time depends on how much liquid entered the foam, room humidity, airflow, and mattress thickness. Keep the mattress uncovered and use a fan or dehumidifier until it is fully dry.
Can I sleep on the mattress while it is damp?
It is better to wait until the mattress is completely dry. Bedding can trap moisture inside the foam, and pressure from sleeping on it may push moisture deeper or spread it to a wider area.
Why does the urine smell return after cleaning?
The smell may return when urine remains deeper in the foam or when the mattress was covered before it fully dried. Another light treatment with the correct cleaner may help. Avoid soaking the area during repeat treatments.
make a bed for an incontinent person. protect bedding from incontinence. disinfect a mattress after a pee accident.

