Through out foreplay it's no problem. But when it comes to intercourse I can't stay hard.
If you somehow still have a "negativity tape" running in your head during intercourse this may be affecting your ability to stay hard.
Ask the Sexpert
Losing My Erection
Dear Dr. Kat,
I am a 43 yr old man. I am just out of a 9 yr relationship, the problem is about three years ago she started the rejection thing with me as far as sex. Not sure if it has anything to do with it or not, but it is hard to keep an erection. Through out foreplay it's no problem. But when it comes to intercourse I can't stay hard. With that said, if I masturbate I do not have this problem but it seems that sometimes I have to use a cock ring. Any suggestions of what my problem might be. Rejection, age, or what? Any help would be great.
There could be several factors affecting your erections. I would first suggest that you go get a medical workup by a doctor to rule out any health issues. Hormones and sexual function change throughout out life spans and it would be good to know if this is a factor for you.