Is IVF Haram in Islam? Halal Conditions Explained

IVF is not haram in Islam when it is performed between a married husband and wife using their own egg and sperm. This has been the mainstream scholarly position since at least 1980, when Al-Azhar University in Cairo issued one of the first authoritative fatwas declaring IVF and similar technologies permissible, provided they do not involve any form of third-party donation. The key distinction is not the technology itself but whose genetic material is used and whether the couple is still married at the time.

The Core Conditions That Make IVF Halal

Islamic scholars across the major Sunni and Shia schools of thought agree on a basic framework: all assisted reproductive technologies are allowed as long as the sperm, egg, and uterus all belong to a legally married couple during the span of their marriage. No third party should intrude on the marital functions of sex and procreation. Marriage in Islam is understood as a contract between two people, and reproduction is meant to happen exclusively within that contract.

In practical terms, this means a married couple struggling with infertility can pursue IVF, intracytoplasmic sperm injection (ICSI), and other fertility treatments without any religious issue, as long as the husband’s sperm fertilizes the wife’s egg and the embryo is placed in the wife’s uterus. The procedure itself, including hormone stimulation, egg retrieval, and laboratory fertilization, is not considered problematic. Islam generally encourages seeking medical treatment, and infertility treatment falls under that principle.

Why Donor Sperm and Eggs Are Prohibited

The line that cannot be crossed, according to the overwhelming majority of scholars, is the introduction of a third party’s genetic material. Using donor sperm, donor eggs, or donated embryos is considered equivalent to zina (adultery) in Islamic jurisprudence, even though no sexual contact occurs. The reasoning centers on two concerns: the sanctity of the marital bond, and the preservation of clear lineage.

Lineage (nasab) holds enormous importance in Islamic law. It determines inheritance rights, family obligations, and identity. When a donor’s sperm or egg enters the process, the resulting child’s biological parentage becomes confused. A global survey of Muslim-majority countries in the mid-1990s, covering Egypt, Iran, Kuwait, Jordan, Lebanon, Morocco, Qatar, Turkey, Indonesia, Malaysia, and Pakistan, found that sperm donation in IVF and all other forms of gamete donation were strictly prohibited in every country surveyed.

Sperm banks are also explicitly forbidden under this framework. The concern is that widespread anonymous donation would undermine family structures and make it impossible to trace lineage accurately.

Surrogacy Is Not Permitted

All forms of surrogacy are forbidden in mainstream Islamic jurisprudence. This applies even when the embryo is created from the married couple’s own egg and sperm and simply carried by another woman. The prohibition rests on the same principle: a third party’s body is being used in the reproductive process, which violates the exclusivity of the marital relationship.

There is also a practical lineage problem. Islamic law holds that the woman who gives birth is the child’s mother, regardless of genetic origin. If a surrogate carries a baby, a direct conflict arises between genetic parentage and birth motherhood. Scholars have concluded that even a contractual agreement between the parties cannot resolve this confusion, making surrogacy impermissible regardless of the circumstances.

What Happens to Extra Embryos

IVF often produces more embryos than are transferred in a single cycle, which raises its own set of questions. The European Council for Fatwa and Research has ruled that excess embryos may be frozen for future use by the same couple, or they may be disposed of. Disposal is actually considered the preferred option. What you cannot do is donate them to another couple.

Freezing embryos comes with an important condition: you must be confident you will maintain control over them. If the couple separates or the husband dies, any remaining embryos become impermissible to use and should be destroyed. The logic is straightforward. Once the marriage ends, the contract under which those embryos were created no longer exists.

After Divorce or a Husband’s Death

A widow cannot use her late husband’s stored sperm or previously frozen embryos to conceive after his death. Once the husband passes away, the marital relationship ends, and his genetic material becomes off-limits for reproduction. Malaysia’s National Fatwa Committee addressed this directly in 1981, ruling that stored semen of a deceased man should be destroyed.

The same principle applies after divorce. If a couple divorces, any frozen embryos from their marriage cannot be implanted. The embryos were permissible only within the context of an active marriage, and that context no longer exists. This means couples undergoing IVF should think carefully about how many embryos to create and what happens to them if circumstances change.

Where Sunni and Shia Views Diverge

The positions described above represent the Sunni consensus, which governs the majority of the world’s Muslim population. Shia jurisprudence agrees with most of these principles but has shown more flexibility in certain areas. Some Shia scholars have permitted forms of third-party egg donation under specific conditions, though this remains debated even within Shia circles. Iran, which follows Shia jurisprudence, has allowed some forms of donor-assisted IVF in practice, making it an outlier among Muslim-majority countries.

The Sunni position has remained largely unchanged since the original Al-Azhar fatwa of 1980. Across dozens of countries and multiple decades, Sunni scholars have held firm on the prohibition of any third-party involvement in reproduction.

Genetic Testing of Embryos

Preimplantation genetic testing, where embryos are screened for genetic diseases before being transferred, is generally accepted when performed to prevent serious hereditary conditions. The more controversial question is sex selection. Using genetic testing purely to choose a boy or a girl based on preference is widely discouraged, and scholars have explicitly prohibited it when applied on a population-wide scale, as it could disrupt the natural balance between males and females.

Some scholars allow sex selection in narrow circumstances, such as a family that has only daughters and needs a son for caregiving and financial support in old age, or vice versa. Shia scholars tend to be somewhat more open to this when a genuine hardship exists. However, using genetic disease screening as a pretext to select sex when no medical need exists is considered deceitful and contrary to Islamic principles.