Fresh or dried? That decides everything, so figure that out before you grab a bottle.
If you walked in and it's still wet, you're in the easy version. Get a thick stack of paper towels or an old bath towel, lay it over the spot, and stand on it. Full weight, shift your feet around. Lift, fold to a dry side, do it again. Keep going until the towel comes up almost dry. Don't scrub. Scrubbing spreads it sideways and frays the carpet fibers so the spot looks worn forever.
A puddle on the surface is smaller than the puddle in the pad underneath. Urine goes straight down, hits the pad, and spreads. So blot an area about twice the size of what you can see.
Then water. Pour cool water over the spot, maybe a cup for a small dog's puddle, more for a big dog, and blot it all back up the same way. You're diluting what's left in the pad. Two rounds of this is usually enough.
Now the enzyme cleaner. This is the part people rush. Enzyme cleaners (there are plenty to choose from) don't mask the smell, they digest the proteins and uric acid that cause it. They need two things to work: contact and time. Soak the spot so the cleaner reaches as deep as the pee did. If a cup of pee went in, something close to a cup of cleaner needs to go in. Then leave it wet. Lay a damp towel or a sheet of plastic wrap over it so it doesn't dry out, and give it a full night. Eight to twelve hours is not too long. If it dries in twenty minutes the enzymes stop before they've finished.
In the morning, blot up what's left and let it air dry. If you want to speed that up, a fan pointed at it is fine. Heat is not. Which brings us to the thing people do that makes it permanent.
Don't steam it
A steam cleaner, or the hot water setting on a carpet machine, cooks the protein in urine into the fibers. The smell gets locked in and the yellow tint sets. If you want to use a carpet machine, use cold or cool water only, and only after the enzyme cleaner has done its work. Rinse with plain water, no detergent, because leftover detergent leaves a sticky residue that attracts dirt and you end up with a gray spot where the pee was.
Skip ammonia-based cleaners too. Urine contains ammonia, and to a dog's nose an ammonia-cleaned spot smells like a place that has already been marked. You've basically put up a sign.
Vinegar is a mixed bag. Diluted white vinegar on a fresh spot isn't harmful and can help a little with the smell, but it's not an enzyme and it won't fix a spot that has soaked into the pad. Baking soda dumped on wet carpet turns into a paste that's hard to vacuum out. Hydrogen peroxide works on the stain but will lighten dark carpet. Test any of these on a hidden corner first, under a couch or inside a closet. With the baking soda box already open on the counter, here is more on baking soda for dog pee smell.
Wool rugs are their own thing. Don't soak them. Wool holds water for days, the backing can mildew, and some dyes bleed. Blot, use a small amount of enzyme cleaner, blot again, and dry it fast. If it's a rug you care about, a rug cleaner who handles wool is cheaper than replacing it.
Old spots you can smell but can't find
A dried spot is harder, mostly because you can't see where it is. Get a UV flashlight. They're cheap, and in a dark room old urine glows a dull yellow-green. You'll probably find more spots than you expected, and some will be bigger than you'd guess. Mark the edges with a bit of painter's tape so you can find them with the lights on.
Dried urine is concentrated, so you need to rewet it before the enzymes can do anything. Pour cool water, blot, then saturate with enzyme cleaner as above, cover it, and give it the full overnight. Old spots often take two or three rounds. The smell comes back on humid days when the crystals in the pad rehydrate, so if you can still smell it a week later on a damp morning, that's not failure, it's a sign to go again.
If the same patch has been peed on for months, the pad is done. Pull the carpet back from the tack strip in that corner, cut out the stained pad, and look at the subfloor. If it's stained, clean it, let it dry completely, and seal it with a stain-blocking primer before you put new pad down. Enzyme cleaner from the top will never fully reach wood that has soaked up urine for a season. When the smell lingers even after the stain is gone, here is more on getting dog pee smell out of carpet.
Why the dog keeps going back
Dogs pee where it already smells like pee. That's the whole reason cleaning matters beyond the obvious. A spot that smells clean to you can still smell like a bathroom to a dog, which is why the enzyme step and the overnight soak aren't optional.
The other half is just management. For the next couple of weeks, block the spot. Put a chair over it, or a laundry basket, or close the door to that room. Take the dog out more than you think you need to, especially after waking, eating, drinking, and playing. If you catch the dog mid-squat, say something neutral, pick up or lead the dog outside, and if anything comes out there, reward it. If you find a puddle after the fact, just clean it. Rubbing a nose in it or scolding teaches the dog not to pee in front of you, which is how you get a dog that sneaks behind the couch.
Write down each accident: time, room, what happened in the hour before. After a week there's almost always a pattern, and the pattern tells you which trip outside you're missing. We built a free accident log for exactly this, if you'd rather not keep a notebook.
One more thing. If this is an adult dog who was reliably housetrained and has started having accidents, or a dog who's suddenly peeing small amounts often, check with your vet before you treat it as a training problem. Bladder infections, kidney issues, and some medications show up this way, and no amount of carpet work fixes that.
For a cleaned carpet, the test is simple. Get down and smell the spot on a humid day. If you can't smell anything, the dog probably can't either, or at least not enough to care.
If the accidents are part of a bigger picture, a dog who's unsettled in the house generally, our guide Calm Home in 21 Days walks through the daily routine we use with new dogs and dogs who've lost the plot a bit.

Calm Home in 21 Days
The 21-day re-house-training plan for adult and adopted dogs: accidents, marking, excited peeing and what to do when they are left alone. Vet-first, reward-based, 6 printable tools.
See the plan →Not sure yet? Take the free 2-minute quiz
Educational content from the CalmHome team. Not veterinary or behavioral advice for your specific dog. If your dog has bitten, or behavior changed suddenly, see your veterinarian and a certified professional.











