If cats peeing outside of the litter box is an issue in your home, follow these tips to stop the incidents:
Address any underlying medical issues with your veterinarian.
Stick to routines to the best of your ability and introduce any new pets or family members to your cat slowly.
Keep the litter box clean.
Make sure you are using a litter that your cat likes.
Keep the litter box in a location that is easily accessible for your cat and try not to move it if you can help it.
Clean all accidents properly and thoroughly to discourage repeat accidents.