This question already has an answer here:
We have an almost 2-year-old spayed female cat. She was 10 months old when she came to live with us (me and my husband). She was really stressed out the first couple of months and she went into hiding most of the time until she got used to us.
She went into heat as soon as we got her, and she peed all around the house beginning with our bed. The peeing continued a little while after spaying. According to the vet, it must have been due to the hormones left in her system and it should have eventually ceased. In the meanwhile, we stopped letting her inside the bedroom. After a couple of months, the peeing outside the litter box stopped, so we decided to let her into the bedroom. But she peed on the bed again. We tried this a couple of times, and saw that every time we let her inside the bedroom, she pees on the bed. And she does it when we are in the bed. The smell is almost as bad as if she was in heat. Otherwise, there is no peeing in other parts of the house, except for some small accidents around the litter box.
By the way, she is more affectionate with my husband, prefers to sleep on his side of bed when allowed and loves his sweaty clothes. Both of us tend to her needs (playing, food, cleaning of the litter box), but my husband is doing these more lately.
We don't know how she was raised, how she was treated before she came to us or what kind of environment she was in. We are also not sure if something is wrong with her spaying. Because she becomes more affectionate in certain days of the month as if she was in heat (minus the moaning) and I believe that this peeing thing may correspond to these periods.
Nothing has changed in the house, apart from the fact that we spend more time in the house with her lately, especially my husband. Her litter box is always clean (twice a day) and so far she's never had problem with the litter we prefer.
I tried to be specific as much as I could. Any suggestion about this peeing problem would be really appreciated. Thank you!