Is IVF Halal in Islam? (2026 Scholarly Guide)
Quick Answer
Yes — IVF is halal in Islam when it uses the husband’s sperm and the wife’s egg, and the embryo is placed in the wife’s own womb while the marriage is intact. This is the position of the Islamic Fiqh Academy (OIC), Al-Azhar, and the overwhelming majority of contemporary scholars and fatwa councils.
It becomes haram when a third party is involved — donor sperm, donor eggs, or a surrogate mother — because it confuses lineage (nasab), which the Shariah protects as one of its five core objectives (maqasid al-shariah).
Bottom line: Your own gametes + your own marriage + your own womb = permissible. Anyone else’s involvement = not permissible.
What IVF Actually Is (In Plain Words)
IVF — in vitro fertilization, often called the “test-tube baby” procedure — works in four steps:
- The wife’s eggs are collected after hormonal stimulation.
- The husband’s sperm sample is taken.
- Fertilization happens in a laboratory dish.
- The resulting embryo is transferred into the wife’s uterus, where the pregnancy continues naturally.
Nothing about this process contradicts any Islamic principle on its own. The entire scholarly debate is about whose genetic material is used and whose womb carries the child — not about the technology itself.
The Scholars’ Ruling: Permissible With Clear Conditions
When IVF first became possible in the late 1970s, scholars examined it carefully rather than reacting with a blanket ban. The resulting consensus is remarkably consistent across schools of thought:
The Islamic Fiqh Academy of the OIC, Al-Azhar’s Islamic Research Academy, and most national fatwa councils permit IVF subject to five conditions:
- The sperm must be the husband’s — no donor sperm, ever.
- The egg must be the wife’s — no donor eggs, ever.
- The embryo must be implanted in the wife’s own uterus — no surrogacy.
- The marriage must be intact at every stage — from fertilization through implantation and pregnancy.
- No mixing or confusion of samples — clinics must have strict safeguards so one couple’s genetic material can never be mixed with another’s.
When all five hold, scholars treat IVF as simply a medical means of achieving what marriage already permits — having children together. The Quran describes children as a gift and adornment of worldly life (18:46), and seeking lawful medical treatment is itself encouraged in Islam.

Why Donor Gametes and Surrogacy Are Haram
This is where the line is drawn, and the reasoning matters more than the ruling.
Islam protects lineage (nasab) as one of the five essentials of the Shariah — alongside religion, life, intellect, and property. A child must know with certainty who their father and mother are. Donor sperm or eggs introduce a third genetic parent, and surrogacy splits motherhood between the genetic mother and the birth mother.
Scholars point out the practical chaos this creates: inheritance rights, mahram relationships (who the child can and cannot marry), and the child’s own identity all become uncertain. The Quran is explicit about preserving lineage — “call them by [the names of] their fathers; it is more just in the sight of Allah” (33:5).
So the prohibition is not about the technology. It is about protecting the child’s right to a clear, unambiguous lineage.
Common Questions About IVF in Islam
Can we use frozen embryos later?
If the embryos were created from the couple’s own gametes during their marriage, scholars generally permit implanting them later as long as the marriage is still intact. If the marriage has ended — through divorce or the husband’s death — the majority position is that remaining embryos should not be implanted, because the marital bond that legitimized the process no longer exists.
What happens to extra embryos?
IVF often produces more embryos than are implanted. Scholars advise fertilizing only as many eggs as needed, and clinics should be asked about their embryo policies upfront. Deliberately destroying viable embryos is treated seriously — most scholars advise against creating excess embryos in the first place rather than dealing with the dilemma afterward.
Is masturbation to provide a sperm sample allowed?
Normally prohibited, but scholars make an exception for genuine medical necessity (darura) — providing a sample for IVF with one’s wife falls under this exception according to most contemporary fatwas.
What about gender selection?
Selecting an embryo’s sex for non-medical reasons (family balancing) is debated — some scholars permit it, others discourage it as interfering with divine decree. Selecting to avoid a serious sex-linked genetic disease is more widely accepted. This is a question to take to a qualified scholar with your specific case.
Does IVF affect the child’s legitimacy?
Not at all. A child conceived through permissible IVF is fully legitimate — with complete rights of lineage, inheritance, and family membership, exactly like a naturally conceived child.
How Scholars Reached This Ruling
It is worth knowing how scholars arrived at “yes with conditions” rather than a simple yes or no — because the method is what makes the ruling trustworthy.
First, they looked for a textual prohibition. There is none: neither the Quran nor the Sunnah mentions assisted reproduction, for obvious historical reasons. So scholars turned to analogy (qiyas) and the objectives of the Shariah (maqasid).
The analogy they used was medical treatment itself. The Prophet ﷺ said, “Seek medical treatment, for Allah has not created a disease except that He has created its cure” (Tirmidhi). Infertility is a genuine medical condition, and IVF is a treatment for it — no different in principle from surgery or medication. What the Shariah restricts is not the treatment but the inputs: whose sperm, whose egg, whose womb.
Second, they weighed benefit against harm. The benefit — a child for a longing couple, raised in a stable family — is enormous. The harm they guarded against was lineage confusion, which is why every condition circles back to one idea: keep the genetic and gestational parents exactly who the marriage says they are.
This is a good example of how Islamic law works at its best: it does not freeze in the seventh century, and it does not surrender to every new technology either. It asks one disciplined question — what does this do to the family? — and answers from there.
What If IVF Fails?
This must be said plainly: IVF does not always work. Many couples go through multiple cycles without a pregnancy, and each failed cycle costs money, hope, and emotional strength.
Islam’s counsel here is twofold. First, sabr — not as passive resignation but as dignified persistence: you take the means available, and you accept the outcome as Allah’s decree. The Quran pairs the mention of granting offspring with “He grants to whom He wills” (42:49-50) — the emphasis is on His will, not the technology’s promise.
Second, know that parenthood in Islam is bigger than biology. Caring for an orphan or a child in need (kafala) carries immense reward — the Prophet ﷺ said, “I and the caretaker of the orphan will be like this in Paradise,” holding two fingers together (Bukhari). Some couples who cannot conceive find profound fulfillment in fostering or sponsoring children. It is not a consolation prize; in the Islamic moral universe, it is among the noblest things a person can do.

A Practical Note Before You Start
Beyond the ruling itself, scholars and counselors advise couples to:
- Choose a clinic carefully — ask how they label, track, and safeguard genetic samples. The “no mixing” condition is a religious requirement, not just a preference.
- Discuss the embryo question in advance — decide with your spouse (and your scholar) what happens to unused embryos before the cycle begins.
- Budget honestly — IVF is expensive and often takes more than one cycle. Financial strain has broken marriages; go in with open eyes and a clear plan.
- Keep making du’a — medical means and trust in Allah are not opposites. The Quran reminds us that Allah “grants to whom He wills” offspring (42:49). IVF is a means; the outcome is His.
What About Other Fertility Treatments?
IVF gets the most attention, but it is not the only assisted treatment — and the same scholarly logic covers the rest:
- IUI (intrauterine insemination) — the husband’s sperm is placed directly in the wife’s uterus. Same ruling as IVF: permissible with the couple’s own gametes.
- ICSI (intracytoplasmic sperm injection) — a single sperm is injected directly into the egg. This is just a more precise form of IVF; the ruling does not change.
- Fertility medications (like Clomid) — ordinary medical treatment, fully permissible.
The pattern is consistent: the method of bringing sperm and egg together is a medical detail. The source of the sperm and egg, and the womb that carries the child, are the religious questions. Whenever those three belong to the married couple, the treatment is permissible.
Scholar’s Note
Infertility is a genuine hardship, and Islam does not ask couples to bear it without recourse — it asks them to seek recourse within the boundaries that protect the family itself. The scholars’ framework here is worth appreciating: it says yes to the technology and yes to the couple’s longing, while drawing one firm line around the child’s lineage. That line is not cruelty; it is mercy toward the child.
If your situation involves complications — a previous marriage, frozen embryos from years ago, a medical recommendation involving donors — do not extrapolate from a general article. Take your specific case to a qualified scholar. General rulings guide; individual fatwas decide.
This article presents the mainstream scholarly position for educational purposes. It is not a personal fatwa. For your specific situation, consult a qualified scholar — see our fatwa methodology: https://askzakariya.com/our-fatwa-methodology/
FAQs
Is IVF halal in Islam?
Yes, when it uses the husband’s sperm and the wife’s egg with the embryo implanted in the wife’s own womb during an intact marriage. The Islamic Fiqh Academy (OIC), Al-Azhar, and most contemporary scholars permit it under these conditions.
Is it halal to use donor sperm or donor eggs for IVF?
No. The overwhelming majority of scholars prohibit third-party gametes because they confuse lineage (nasab), which the Shariah protects as a core objective.
Is surrogacy allowed in Islam?
No. Implanting an embryo in any womb other than the wife’s is prohibited by scholarly consensus, even if the embryo is genetically the couple’s.
Can a widow use her late husband’s frozen sperm or embryos?
The majority position is no — once the marriage ends through death or divorce, the condition of an intact marriage is no longer met.
Is a test-tube baby legitimate in Islam?
Yes, completely. A child conceived through permissible IVF has full rights of lineage, inheritance, and family membership.
