Back to search

Is it permissible to masturbate to obtain a semen sample for infertility and fertility tests, knowing that masturbation is forbidden in Islam?

1 min readAlso available in العربية

It is permissible to masturbate by hand if there is a need for it, such as to extract semen for analysis to determine the cause of infertility. In this case, there is no harm in it, unlike masturbation without need.

Summarized from the full answer at Ftawy · reviewed Sep 2, 2026

Read the full answer on Ftawy