The short answer
Most contemporary Sunni scholars and fiqh councils permit IVF and similar treatments when the sperm comes from the husband and the egg from the wife, the embryo is placed in the wife's womb, and all of this happens during a valid, continuing marriage. Using donor sperm, eggs or embryos, or a surrogate mother, is not permitted in Sunni scholarship because it confuses lineage. Some Shia authorities take a different view on donation. Couples should seek guidance from a qualified scholar.
The detail
Infertility is a painful trial, and Islam encourages couples to seek treatment. The Quran reminds believers that Allah gives daughters to whom He wills, sons to whom He wills, both to some, and leaves others childless (42:49-50). Seeking medical help is a means, while the outcome rests with Allah.
The central principle in the scholarly discussion is the protection of lineage (nasab), one of the higher aims of the Shariah. The Quran describes Allah creating human beings and establishing ties of blood and marriage (25:54). For this reason, scholars insist that a child's biological parents must be the married couple themselves.
On this basis, many contemporary scholars and councils hold that:
- Permitted: IVF, intrauterine insemination and similar techniques using the husband's sperm and the wife's egg, with the embryo implanted in the wife, during a continuing marriage.
- Not permitted: donor sperm, donor eggs, donor embryos, and surrogacy by another woman.
- Not permitted: using a couple's frozen sperm or embryos after divorce or after the husband's death, because the marriage has ended.
Practical safeguards are also stressed: the clinic must be trustworthy to avoid any mixing of samples, and medical examination should respect modesty as far as possible. Related questions, such as what to do with surplus embryos, genetic testing of embryos and sex selection, are further areas of discussion on which a scholar should be consulted.
Primary references
The Quran and hadith this answer rests on, quoted from the stored texts with their references.
From the Quran
Quoted from the stored Quran text with the translation named below each verse.
لِّلَّهِ مُلْكُ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضِ ۚ يَخْلُقُ مَا يَشَآءُ ۚ يَهَبُ لِمَن يَشَآءُ إِنَٰثًۭا وَيَهَبُ لِمَن يَشَآءُ ٱلذُّكُورَ
Unto Allah belongeth the Sovereignty of the heavens and the earth. He createth what He will. He bestoweth female (offspring) upon whom He will, and bestoweth male (offspring) upon whom He will;
أَوْ يُزَوِّجُهُمْ ذُكْرَانًۭا وَإِنَٰثًۭا ۖ وَيَجْعَلُ مَن يَشَآءُ عَقِيمًا ۚ إِنَّهُۥ عَلِيمٌۭ قَدِيرٌۭ
Or He mingleth them, males and females, and He maketh barren whom He will. Lo! He is Knower, Powerful.
وَهُوَ ٱلَّذِى خَلَقَ مِنَ ٱلْمَآءِ بَشَرًۭا فَجَعَلَهُۥ نَسَبًۭا وَصِهْرًۭا ۗ وَكَانَ رَبُّكَ قَدِيرًۭا
And He it is Who hath created man from water, and hath appointed for him kindred by blood and kindred by marriage; for thy Lord is ever Powerful.
Further sources
Written for Islamic Portal from the Quran cited above; contemporary positions described generally as commonly reported.
What scholars say
Al-Azhar issued an influential fatwa in 1980 permitting IVF between husband and wife, and the International Islamic Fiqh Academy issued a resolution in 1986 permitting assisted reproduction within marriage while prohibiting methods involving a third party. These positions are now widely followed in Sunni-majority countries.
Some leading Shia authorities, particularly in Iran, have permitted donor eggs or sperm under certain conditions, and there is discussion among Shia jurists about the lineage of children born in this way. Scholars also continue to discuss the status of surplus frozen embryos and how far genetic testing is acceptable.
Where the schools differ
The four Sunni schools of law. Follow the school you were taught, or ask a scholar you trust.
The four classical schools did not know IVF, but contemporary scholars from all four Sunni schools have broadly agreed on the framework above: treatment is allowed between husband and wife during their marriage, and any third-party contribution of sperm, egg, embryo or womb is not allowed. Differences among Sunni scholars are mostly on detailed questions such as surplus embryos, embryo research and sex selection. Couples should ask a qualified scholar who understands the specific treatment being offered.
In practice
- A couple undergoing IVF ask the clinic how samples are labelled and tracked, to be sure no mixing can occur.
- A couple who have embryos in storage seek scholarly advice before deciding what to do with them.
- A wife whose husband has died is advised that their stored embryos may not be used after the marriage has ended.
Common misunderstandings
- Seeking fertility treatment shows a lack of trust in Allah. Seeking medical treatment is encouraged in Islam; trust in Allah means accepting the outcome.
- All forms of assisted reproduction are equally allowed. Mainstream Sunni scholarship permits only treatment that keeps lineage within the married couple.
- A childless couple is incomplete. Many righteous people in history had no children, and childlessness is a trial, not a judgement on a person's worth.
Check your understanding
Try to explain the answer in two sentences, in your own words, as if to a friend. Then read the short answer again and compare.
Suggested lessons
Courses, lessons and guides that teach this topic step by step.
Review and provenance
- Written by
- Islamic Portal editorial team
- Added
- 10 November 2026
Corrections
No corrections have been needed.
