The safest way to get smell out of a mattress is to identify the source first, strip the bed completely, and use the lightest cleaner that fits the smell. If you soak the mattress, odor can return later because moisture stays trapped in foam or batting. The method below helps you clean it without making it wetter, harsher-smelling, or harder to dry. It also shows when the smell is truly gone.
Quickly identify what kind of smell you’re dealing with
The first step is to match the smell to the likely source. Sweat, urine, mildew, smoke, and general stale odor do not all respond the same way. If the smell gets stronger when the room warms up or when the bed is remade, the source is often still in the mattress, not just in the air.
- Sweat or body odor: sour, salty, or musty; usually strongest where someone sleeps most.
- Urine: sharp, ammonia-like, or sweet-sour; often becomes more obvious after the mattress dries a bit.
- Mildew or musty odor: damp, basement-like, or earthy; usually points to moisture that got into the mattress.
- Smoke smell: stale, ashy, or sharp; it can cling to the mattress and the room itself.
- General stale odor: flat, old, or stuffy with no clear spot; often from dust, body oils, or trapped air.
A common mistake is to treat every smell like a surface odor. If the mattress smells worse after a few hours, that usually means the source is still inside the material or the mattress is still damp.
If you can smell urine or mildew, handle that as a moisture problem first. If the smell is only light and dry, you can usually stay with vacuuming, a light spot treatment, and dry deodorizing.
What you need before you start
You need a clear work area, the right cleaning supplies, and enough air flow before you begin. Strip the bed completely, then gather what you need so you can work without stopping. Remove sheets, blankets, mattress protectors, toppers, and any other layers that may be holding the smell. Wash those separately if they also smell.
Gather a vacuum with an upholstery tool, clean towels, baking soda, and a fan. If you have it, a window or other fresh-air source helps. For spot treatment, you may also need a mild dish soap solution, white vinegar, hydrogen peroxide, or an enzyme cleaner, depending on the odor source.
Check the mattress care label or warranty instructions before using any liquid cleaner. Some materials and covers have limits on moisture or certain cleaners, and that can change the right approach. A mattress protector is useful after the mattress is clean and fully dry, but it should not be used to cover up a smell you have not removed.
The safest step-by-step way to get smell out of a mattress
Follow the steps in order and use as little liquid as possible. The goal is to remove the source, not soak the mattress. Keep the surface dry between steps, and stop if cleaner starts moving into the layers.
- Strip the bed and air out the mattress.
Remove all bedding and any topper. Open windows if you can and run a fan so fresh air moves across the mattress. This gives you a clean surface to work on and helps clear loose odor from the room before you add any cleaner.
- Vacuum the mattress surface.
Use the upholstery attachment and vacuum the entire surface, seams, edges, and tufts. You are removing dust, skin cells, hair, and other loose debris that hold odor. The mattress should look cleaner right away, even before you use any deodorizer.
- Spot-treat the source, not the whole mattress.
Use the lightest cleaner that fits the smell. Dab, do not soak. A clean towel should come away damp, not wet. If the area darkens deeply or you feel liquid moving into the layers, stop and blot it back out.
- Deodorize the dry surface.
Sprinkle a thin, even layer of baking soda over the dry mattress. Let it sit for several hours. If the smell is stubborn but the mattress is dry, leaving it longer can help, as long as the room stays dry too. Baking soda helps with surface odor, but it will not fix a wet source inside the mattress.
- Vacuum again.
Remove all the baking soda with the vacuum. If powder is caught in the seams, keep vacuuming until the surface feels clean and free of grit.
- Dry the mattress fully.
Keep the fan running and leave the mattress uncovered until it is completely dry. Drying is part of odor removal, not a separate cleanup step. If the mattress still feels cool, damp, or heavy, it needs more time.
- Remake the bed only after the smell and moisture are gone.
Put clean, dry bedding back on only when the mattress feels dry all the way through. If you cover it too early, you can trap a weak odor and make it harder to tell whether the fix worked.
If the smell is urine, sweat, or mildew
Urine, sweat, and mildew need slightly different treatment because the source is different in each case. For urine, use an enzyme cleaner if you can. For sweat, keep the treatment very light. For mildew, airflow and drying matter most.
For urine odor, use an enzyme cleaner if you can. Enzyme cleaners are made to break down organic waste, which is why they often work better than vinegar or soap alone on urine smell. Apply only as directed on the label, because more liquid does not make it work better. If the area is still wet, blot first, then treat. Expect the smell to fade as the cleaner works and the area dries, but don’t judge it too early. A common failure is cleaning the top layer and assuming the odor is gone when it is still deeper in the mattress.
For sweat odor, start with vacuuming and baking soda, then spot-treat with a very light dish soap solution if needed. Sweat and body oils usually sit near the surface, so you do not need a wet treatment. Use as little liquid as possible, then blot the area dry right away. Too much soap can leave residue that holds odor.
For mildew or musty odor, focus on drying and airflow first. If the mattress got damp, the smell may not disappear until the moisture is gone. You can use a light vinegar solution on a cloth for a surface area, but do not saturate the mattress. If the musty smell keeps returning after the mattress is dry, the issue may be inside the mattress, not just on the cover.
Avoid steam, heavy shampooing, or large amounts of liquid for any of these odors. Over-wetting is one of the fastest ways to make the problem worse.
For pet odor, treat it like urine first if there was any accident. If it is just general pet smell from fur or body oils, vacuum thoroughly, clean lightly, and dry the mattress fully before you deodorize it.
What not to use on a mattress
Some common shortcuts cause more trouble than they solve. Keep the cleaning simple and targeted, and skip anything that adds moisture or masks the smell without removing it.
- Do not soak the mattress with water, soap, or cleaner.
- Do not use steam unless the mattress maker specifically allows it.
- Do not cover a still-smelly mattress with a protector or fresh bedding and hope it fades on its own.
- Do not use strong fragrance sprays as a fix; they can mask the smell without removing it.
- Do not scrub hard enough to push the stain or odor deeper into the layers.
- Do not apply cleaner to the whole mattress when only one area smells.
The goal is to remove the source and dry the mattress out, not to make it smell like a stronger product.
How to dry the mattress completely
A mattress is not done until it is dry through the surface and upper layers. That means it should feel dry to the touch, not cool or damp, and it should not give off a hidden musty smell when the room warms up.
Use a fan aimed across the mattress, not just at one spot, and keep windows open if the weather allows. Airflow matters as much as the cleaner. If you can safely lift the mattress edge to improve air circulation, do that, but do not bend it in a way the manufacturer warns against.
Drying time depends on how much liquid was used and how much air movement you have. A lightly treated area may dry in a few hours. A deeper wet spot can take much longer. If you press a dry towel to the mattress and it picks up moisture, or if the mattress still feels cool in the treated area, it needs more drying time before you cover it.
Do not remake the bed just because the surface looks dry. Hidden dampness is what brings the smell back.
How to tell if the smell is actually gone
The smell is probably gone when the mattress smells neutral both at room temperature and after the room warms up. A quick sniff right after cleaning can be misleading, because fresh air, baking soda, or vinegar can mask the real odor for a while.
Check three things: the smell, the feel, and the surface. The mattress should smell clean or nearly neutral, feel completely dry, and not leave residue on your hand or towel. If the odor returns after the room closes up or after you make the bed, the source is still there.
A simple test is to leave the mattress uncovered for a while, then come back later and smell it again. If it still smells only faintly of the cleaner you used, that is better than a hidden urine, mildew, or sweat smell. If the original odor is still obvious, repeat the right treatment instead of adding another strong fragrance over it.
When to stop DIY and call a pro
Stop trying to clean it yourself if the mattress has deep mold, a strong smell that keeps coming back, or contamination that has soaked far into the core. If you see spreading stains, dark mold spots, or the mattress stays damp for a long time after cleaning, the problem may be beyond a surface fix.
A pro is also a smarter move if the mattress has been hit by a large amount of urine, smoke, or water, or if the odor is spreading into the room. In those cases, the smell may be inside the mattress or in the base below it. If the mattress is old, heavily damaged, or still smells bad after careful cleaning and full drying, replacement can be the more practical answer.
If the mattress is under warranty, check the current care rules before using stronger cleaners or any method the manufacturer forbids. Warranty terms and approved cleaning methods can change, so the current official instructions matter more than general advice.
Conclusion
When the fix has worked, the mattress should be dry, neutral-smelling, and quiet when you leave it uncovered for a while. If the original odor comes back after the room warms up, or after you put the bedding back on, the source is still there and you need another round of source-specific cleaning or a professional look. If the mattress stays damp, smells like mildew, or still has a strong urine, smoke, or waste odor after careful drying, replacement may be the better call.
Frequently Asked Questions
Can I use baking soda alone to get smell out of a mattress?
Yes, if the odor is light and the mattress is already dry. Baking soda can help with surface smell, but it will not fix urine, mildew, or deep moisture on its own. If the source is still wet or inside the mattress, you need spot treatment and full drying too.
Why does my mattress smell worse after I clean it?
That usually means the odor source is still trapped or the mattress is still damp. A smell that gets stronger after the room warms up is a common sign that cleaning masked the odor instead of removing it. Drying and source-specific treatment usually work better than more fragrance.
Is vinegar safe to use on a mattress?
White vinegar can help with some surface odor problems if used lightly on a cloth, but it should not be poured on or used to soak the mattress. Too much liquid can trap moisture and make the smell return later. Check the mattress care label before using it.