Why is my cat peeing outside the litter box?
Start with a vet visit. Urinary tract inflammation, crystals, bladder stones, kidney disease, diabetes and arthritis can all cause accidents.
If the cat is healthy, look at the box: too few boxes, dirty boxes, scented litter, covered boxes, a box in a noisy spot, or stress from a new pet or a move. Never punish your cat, since that adds stress and makes it worse.