Summarize this article:

If your dog is urinating around the house, it may simply be marking. However, inappropriate urination can sometimes be a sign of a more serious problem, like a urinary tract infection. If you’re not sure what’s causing your dog’s behavior, schedule a visit with your vet.  Let your vet know when the behavior started and tell them if you’ve noticed your dog acting sick or displaying any other unusual behaviors or symptoms. Tell your vet about any recent changes in your dog’s home environment or routine, such as a move or the addition of a new pet. Sexually mature dogs that aren’t spayed or neutered are much more likely to mark than dogs that are fixed. If you haven’t already done so, schedule an appointment with your vet to get your dog fixed as soon as possible.   The earlier you neuter or spay your dog, the more likely it is that you can prevent or eliminate marking behaviors entirely.  If your dog already has a habit of marking, neutering may help, but you’ll probably need to combine it with training. Anxiety is a common cause of marking behaviors in dogs. While the best solution is usually to deal with the cause of the anxiety, medications can also help. Talk to your vet about giving your dog an anxiety medication to help it stay calm while you work on modifying the marking behavior. Your vet may prescribe an antidepressant medication, such as a tricyclic antidepressant or an SSRI (selective serotonin reuptake inhibitor), to help calm your dog and reduce marking behaviors. If other treatment approaches aren’t working or you just aren’t sure where to start, ask your vet to recommend an animal behaviorist. They can help you get to the root of the marking problem and suggest strategies for changing your dog’s behavior.  Before taking your dog straight to a behaviorist, it’s a good idea to see a vet first. Not only can they recommend a reputable behaviorist, but they can help rule out possible physical problems that a behaviorist won’t be able to diagnose or treat.  A behaviorist can also help you determine whether your dog is truly marking or if you’re seeing another type of behavior problem, such as submissive urination or poor housetraining.
See your vet to rule out underlying medical causes. Have your dog spayed or neutered. Ask your vet about medications to treat anxiety. Get a referral to a behavioral specialist if you need extra help.