· By Steven Wong
Why Did My Dog Pee on My Bed All of a Sudden? Causes and How to Stop It
Your dog almost certainly didn't do it out of spite. When a house-trained dog suddenly pees on your bed, the cause is usually a bladder infection, a leak while it sleeps, stress, or marking. Vets at VCA Animal Hospitals put it plainly: "If your dog is house soiling, particularly if the behavior has started suddenly, it is important to ask your veterinarian to check for a physical illness" (VCA Animal Hospitals, Dog Behavior Problems: House Soiling).
This guide helps you work out which cause fits your dog, with separate sections for female dogs, male dogs and older dogs, and then covers how to stop it.
Why did my dog pee on my bed all of a sudden?
Because something changed, in its body or in its world. The Merck Veterinary Manual says house soiling can be caused by pain, poor mobility, failing senses, cognitive decline, or any medical condition that makes a dog produce more urine, go more often, hurt when it goes, or lose control (Merck Veterinary Manual, Behavior Problems of Dogs, 2025). Behaviour causes come after those: anxiety, marking, over-excitement and gaps in house training.

The common causes, roughly in the order a vet would think about them:
-
A urinary tract infection. Merck lists the signs as "frequent urination, painful urination, accidents in the house, and sometimes bloody urine."
-
Incontinence. The dog leaks without knowing it, often while asleep. This is most common in spayed females.
-
Drinking and peeing more than usual. Merck lists "increased thirst and urination" among the common signs of diabetes in dogs (Merck Veterinary Manual, Disorders of the Pancreas in Dogs, 2026), and a kidney infection can do the same. More urine means more urgent trips, and the bed is close by.
-
Anxiety. Being left alone, a move, a new baby or pet, or loud noise.
-
Marking. More common in intact males, and beds are a natural target.
-
Excitement or submissive urination. Small dribbles during greetings or play.
-
Age. Weaker bladder control and cognitive decline in senior dogs.
Medical and behaviour causes can also overlap. The American Animal Hospital Association (AAHA) notes that "medical and behavioral conditions can exist concurrently and exacerbate each other" (AAHA, 2015 Canine and Feline Behavior Management Guidelines, p. 215). A stressed dog with a bladder infection is common, so fixing one rarely means ignoring the other.
Was it a leak or a pee? What the wet spot tells you
Look at where and when it happened before you call the vet. The answer narrows the list quickly, and it's the first thing your vet will ask.
|
WHAT YOU NOTICE |
WHAT IT OFTEN POINTS TO |
FIRST STEP |
|---|---|---|
|
A wet patch where your dog was sleeping, dribbles on its fur or bedding |
Incontinence (a leak it can't feel) |
Vet visit; don't scold, your dog didn't choose it |
|
Squatting on the bed while awake, small amounts, lots of trips outside |
A bladder infection or other urinary problem |
Vet visit with a fresh urine sample if you can get one |
|
Large puddles, drinking much more water than usual |
A condition that raises urine output, such as diabetes or a kidney infection |
Vet visit; note roughly how much your dog drinks |
|
A small amount on a pillow or your side of the bed, leg lifted |
Marking |
Rule out medical causes, then clean, restrict access and supervise |
|
Only when you're out, alongside pacing, barking or chewing |
Separation anxiety |
Vet visit; it may need medication and a behaviour plan |
|
Small dribbles when you come home or reach for your dog |
Excitement or submissive urination |
Calm, low-key greetings; never startle or punish |
The table is a guide to what to tell your vet, not a diagnosis. Several of these can happen at once.

Which medical problems make a dog pee on the bed?
Bladder infections, incontinence and anything that makes a dog drink and pee more. Merck's guidance for dog owners says signs of a bladder infection "include frequent urination, painful urination, accidents in the house, and sometimes bloody urine," and that some dogs show no signs at all, "especially if they also have certain diseases, like diabetes, kidney disease, or excess steroid hormone production" (Merck Veterinary Manual, Infectious Diseases of the Urinary System in Dogs, 2026).
Don't wait it out. Merck warns that "untreated infections can spread to the kidneys" or contribute to bladder stones. Your vet will usually test a urine sample, which is quick and tells them far more than guesswork can.
Increased drinking is worth tracking on its own. Merck's vets separate incontinence from "other disorders that result in inappropriate urination, such as polyuria/polydipsia, urinary tract infections, and behavioral problems." Polyuria and polydipsia simply mean peeing a lot and drinking a lot. If you've been refilling the water bowl more often, say so at the appointment.
Why is my female dog peeing on my bed all of a sudden?
The two most likely reasons are a bladder infection and spay incontinence. On infections, Merck is direct: "Female dogs are more likely than male dogs to get urinary infections."

Spay incontinence is the other big one. Its medical name is urethral sphincter mechanism incompetence, or USMI: the muscle that keeps the bladder closed weakens, usually after spaying. AAHA's canine life stage guidelines say "Urethral sphincter mechanism incompetence (USMI) is more common overall among spayed females" (AAHA, 2019 Canine Life Stage Guidelines, p. 283). Merck puts the numbers on it: "It is most common in large-breed spayed female dogs (11%–20% incidence)" (Merck Veterinary Manual, Pharmacotherapeutics in Urinary Incontinence in Dogs and Cats, 2023).
It also tends to show up later in life. Merck notes USMI "may be more apparent in middle-aged to older dogs." So a spayed female who was spayed years ago can still start leaking now. The good news is that it's often manageable with medication your vet can prescribe.
Unspayed females can also mark. Merck notes marking "also occurs in females (especially when in heat)," so check whether the timing lines up with a season.
If your dog is due to be spayed and you're weighing up the timing, our guide to spaying and neutering covers the trade-offs to discuss with your vet.
Why is my male dog peeing on my bed all of a sudden?
Marking is the first behaviour cause to consider, but rule out medical problems before you assume it. For older intact males, that includes the prostate: Merck says "An infected or enlarged prostate can put pressure on the urethra, making urination difficult or painful."
Beds attract marking for a simple reason. According to Merck, "Common targets of urine marking are places that other pets have urinated, as well as items (such as blankets) that have the residual odor of other dogs, people, or cats." Your bed smells strongly of you. If a new partner, guest or pet has been sleeping there, it also smells of someone new.
Marking is usually a small amount, often on a vertical edge or a pillow, and often with a lifted leg. It's most common in intact males, but Merck notes it also happens in neutered dogs of both sexes.
Neutering helps. Merck states that "Neutering intact males decreases marking behavior, and good supervision can prevent or inhibit most marking." VCA adds that "Supervision is an important tool for the prevention and management of marking," so the practical fix is to keep your dog off the bed when you can't watch it, while you and your vet work on the cause.
Can anxiety make a dog pee on the bed?
Yes. AAHA lists urination among the signs of separation anxiety: it "usually presents as signs of clinical distress such as pacing, panting, vocalizing, urination, destruction of property, and salivation" (AAHA, 2015 Canine and Feline Behavior Management Guidelines, p. 215). The same guidelines say "This condition should be considered to be a behavioral emergency." If the accidents happen only when you're away, especially alongside barking or chewing at doors, talk to your vet soon rather than hoping it passes.

Two other behaviour causes are easy to confuse with "naughtiness":
-
Excitement urination. Merck's owner guide describes it as "the release of a small amount of urine that occurs when a dog is active and excited, but not afraid" (Merck Veterinary Manual, Behavior Problems in Dogs, 2026). It often happens during greetings.
-
Submissive urination. "Submissive urination occurs in an otherwise housetrained dog only when the dog is showing postures associated with submission (for example, head lowered, ears back)." Merck is firm that "Dogs with submissive urination should never be startled." Keep greetings calm and low-key, and don't scold the puddle.
Why is my older dog suddenly peeing in bed?
Weaker bladder control, medical conditions that become more common with age, and cognitive decline. AAHA's senior care guidelines say "Approximately 14–22.5% of dogs older than 8 yr suffer from age-related cognitive impairment" (AAHA, 2023 Senior Care Guidelines for Dogs and Cats, p. 7). One of the hallmark signs is "loss of House training and other learned behaviors," along with confusion and changes in sleep, such as napping by day and pacing at night.
That doesn't mean every older dog with accidents has dementia. Merck says cognitive dysfunction "might also lead to house soiling," but so can pain and poor mobility, which make getting outside harder, plus the medical causes and late-onset incontinence described above. A senior check-up should come first.
For the bed itself, AAHA's practical advice for incontinent pets is to "Use disposable or washable waterproof covers for bedding (fleece or mesh)" and to "Minimize use of diapers to avoid secondary infections" (AAHA, 2023 Senior Care Guidelines for Dogs and Cats, p. 17). Keep the fur around the back end trimmed and clean, too. Our guide to caring for senior pets covers more of the day-to-day changes.
How do you stop a dog from peeing on your bed?

Fix the cause first, then make the bed the wrong place to go. In order:
-
Book a vet visit. Mention when it started, where you find the wet patches, whether your dog is drinking more, and any changes at home.
-
Clean the bedding properly. VCA says "To eliminate as much of the odor as possible, it is best to use a commercially available product that contains enzymes to degrade the urine or feces." Ordinary detergent can leave enough scent to draw your dog back. Wash what you can, and treat the mattress too.
-
Close the bedroom door for now. Until you know the cause, keep your dog off the bed when you can't supervise. This isn't a punishment, just a pause.
-
Add a last potty break. Take your dog out right before bed, and again first thing in the morning.
-
Protect the mattress. A waterproof cover, as AAHA suggests for incontinent pets, saves the mattress while treatment starts working. Some owners also put a training pad under the dog's own bed as a backup layer. Ours, Pet N Pet Training Pads, are USDA Certified Biobased (48%).
-
Reward going outside. Praise or a treat the moment your dog pees in the right place. If house training has slipped, our puppy potty schedule by age works as a reset plan for adult dogs too.
What not to do: don't rub your dog's nose in it or scold it after the fact. Merck explains that "Punishing a dog after finding evidence of house soiling is ineffective because the dog will not associate the punishment with having eliminated in the house previously, and the punishment might thus cause anxiety." The American Veterinary Society of Animal Behavior agrees: "Training methods are most effective when they focus on teaching the animal what to do, rather than punishing them for unwanted behaviors" (AVSAB, Position Statement on Humane Dog Training, 2021, p. 1). For an anxious dog, punishment makes things worse.
When should you call the vet right away?
Call your vet promptly, not at the next routine check-up, if you see any of these:
-
Blood in the urine
-
Straining, crying or repeated squatting with little or nothing coming out
-
A big increase in drinking or peeing
-
Accidents together with vomiting, lethargy or loss of appetite
-
Separation-related panic: AAHA calls separation anxiety a "behavioral emergency"
If your dog strains and produces no urine at all, treat it as an emergency and go now. A blocked bladder can't wait until morning.
Frequently Asked Questions
Is my dog peeing on my bed out of spite?
No. None of the veterinary sources behind this guide list spite as a cause of house soiling. The real causes are medical problems, anxiety, marking, excitement or gaps in training. Punishing a dog for an accident it had earlier doesn't teach it anything, and Merck warns it can cause anxiety, which makes accidents more likely.
Why does my dog only pee on my bed when I'm gone?
It may be separation anxiety, which AAHA lists among the causes of urination when a dog is left alone, or simply a gap in supervision. Note whether there's also pacing, barking or chewing near doors, and tell your vet. Keep the bedroom door closed while you're out in the meantime.
Why did my dog pee on my bed while sleeping?
That pattern points to incontinence, a leak your dog can't feel. Merck says incontinent dogs "may leave a pool of urine where they have been lying." It's most common in spayed females and is often treatable with medication, so book a vet visit rather than changing its training.
Will neutering stop my male dog peeing on the bed?
It often helps. Merck says neutering intact males decreases marking, and good supervision prevents most marking. It won't fix a medical cause, an anxiety problem or a habit on its own, so pair it with enzyme cleaning and keeping the bedroom closed until the habit fades.
Can my dog sleep on my bed again?
Usually, yes, once the cause is treated and there have been no accidents for a while. Bring the bed back gradually: start with your dog on the bed while you're in the room, and keep a waterproof cover on until you're confident.
The bottom line
A dog that suddenly pees on your bed is telling you something has changed. Start with the vet, especially if your dog is female, older, drinking more, or leaving wet patches where it sleeps. While you find the cause, clean with an enzyme cleaner, keep the bedroom door closed, add a bedtime potty break and never punish after the fact. Most dogs are back to normal once the real cause is treated.
Sources: the Merck Veterinary Manual, VCA Animal Hospitals, the American Animal Hospital Association and the American Veterinary Society of Animal Behavior. Specific pages consulted are listed below.
This guide is general information, not veterinary diagnosis. If your dog is unwell, call your vet.
SOURCES & CITATIONS
VCA Animal Hospitals (Lindell E, VMD, DACVB; Horwitz D, DVM, DACVB; Landsberg G, DVM, DACVB, DECAWBM) — Dog Behavior Problems: House Soiling, retrieved 2026-11-09 https://vcahospitals.com/know-your-pet/dog-behavior-problems-house-soiling
Merck Veterinary Manual (Borns-Weil S, DVM, DACVB) — Behavior Problems of Dogs, September 2025, retrieved 2026-11-09 https://www.merckvetmanual.com/behavior/behavior-of-dogs/behavior-problems-of-dogs
Merck Veterinary Manual (Landsberg GM, DVM, DACVB) — Behavior Problems in Dogs (dog owners), April 2026, retrieved 2026-11-09 https://www.merckvetmanual.com/dog-owners/behavior-of-dogs/behavior-problems-in-dogs
Merck Veterinary Manual (Van Vertloo L, DVM, MS, DACVIM) — Disorders of Micturition in Dogs and Cats, October 2026, retrieved 2026-11-09 https://www.merckvetmanual.com/urinary-system/noninfectious-diseases-of-the-urinary-system-in-small-animals/disorders-of-micturition-in-dogs-and-cats
Merck Veterinary Manual (Roman N, DVM, MPH) — Infectious Diseases of the Urinary System in Dogs (dog owners), October 2026, retrieved 2026-11-09 https://www.merckvetmanual.com/dog-owners/kidney-and-urinary-tract-disorders-of-dogs/infectious-diseases-of-the-urinary-system-in-dogs
Merck Veterinary Manual (Bruyette D, DVM, DACVIM) — Disorders of the Pancreas in Dogs (dog owners), May 2026, retrieved 2026-11-09 https://www.merckvetmanual.com/dog-owners/hormonal-disorders-of-dogs/disorders-of-the-pancreas-in-dogs
Merck Veterinary Manual (Dowling PM, DVM, MS) — Pharmacotherapeutics in Urinary Incontinence in Dogs and Cats, full review November 2023, retrieved 2026-11-09 https://www.merckvetmanual.com/pharmacology/systemic-pharmacotherapeutics-of-the-urinary-system/pharmacotherapeutics-in-urinary-incontinence-in-dogs-and-cats
American Animal Hospital Association (Hammerle M, Horst C, Levine E, Overall K, Radosta L, Rafter-Ritchie M, Yin S) — 2015 AAHA Canine and Feline Behavior Management Guidelines, Journal of the American Animal Hospital Association 51:205-221, 2015, p. 215, retrieved 2026-10-16 https://www.aaha.org/globalassets/02-guidelines/behavior-management/2015_aaha_canine_and_feline_behavior_management_guidelines_final.pdf
American Animal Hospital Association (Creevy KE, task force chair) — 2019 AAHA Canine Life Stage Guidelines, Journal of the American Animal Hospital Association 55:267-290, 2019, p. 283, retrieved 2026-10-15 https://www.aaha.org/resources/life-stage-canine-2019/
American Animal Hospital Association (Dhaliwal R, task force chair) — 2023 AAHA Senior Care Guidelines for Dogs and Cats, 2023, pp. 7, 17, retrieved 2026-10-16 https://www.aaha.org/wp-content/uploads/globalassets/02-guidelines/2023-aaha-senior-care-guidelines-for-dogs-and-cats/resources/2023-aaha-senior-care-guidelines-for-dogs-and-cats.pdf
American Veterinary Society of Animal Behavior — Position Statement on Humane Dog Training, 2021, p. 1, retrieved 2026-10-16 https://avsab.org/resources/position-statements/



