Thanks for the query.
Alcohol consumption and excessive smoking, excessive masturbation and stress are common causes for an erection dysfunction. Avoid them. You may consult a doctor for an examination to rule out any specific causes and treat you accordingly. Ibuprofen has not been known to interfere with an erection.
Hope this helped.
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.