- Published on
Is Sperm Donation Haram? The Islamic Ruling Explained
- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education • Deen Back
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ
In the name of God, the Most Gracious, the Most Merciful.

Infertility is one of the most painful and private struggles a couple can face. When a husband's sperm count is the issue, the medical offer of donor sperm can seem like a straightforward solution. Many couples — including Muslim couples — have considered it or used it without fully understanding the Islamic perspective.
This is a topic that deserves a direct, honest, and compassionate answer.
The Quick Answer
Sperm donation — both donating sperm to be used by someone outside the marriage and receiving donor sperm from a third party — is haram in Islam. This is the position of the majority of contemporary scholars and major Islamic bodies, including the Islamic Fiqh Academy of the OIC.
"And those who guard their private parts, except from their wives or those their right hands possess." — (Surah Al-Mu'minun, 23:5-6)
The principle is clear: reproduction belongs within the marriage. A man's reproductive material used to create life outside of his marriage, or another man's reproductive material used within someone else's wife — both cross a boundary that Islam has established to protect lineage (nasab).
The Prophet ﷺ said: "It is not permissible for a man who believes in Allah and the Last Day to water another man's crop." (Meaning: a pregnant woman from another man should not be approached.) (Sunan Abu Dawud 2158). The scholars extend this principle to donor sperm — a man's genetic material used to create a child who will be raised by another man.
What the Scholars Say About Lineage
Islamic law places immense weight on nasab — the established, known lineage of every child. This is not a bureaucratic concern. It is a deeply humane one:
- A child has the right to know who their father is
- A child has inheritance rights from their biological father
- A child's marriageability (avoiding accidental marriage with half-siblings) depends on known lineage
- A child's identity — their sense of where they came from — is fundamentally human
Sperm donation — especially anonymous sperm donation, which is the dominant model in many countries — makes all of these protections impossible. The child will never know their biological father. They may unknowingly marry a half-sibling. They will have no inheritance rights from the man whose genetic material made them.
The Prophet ﷺ said: "Whoever claims to be the son of someone other than his father, knowing that the other man is not his father, will be prohibited from entering paradise." (Sahih Bukhari 6766). The severity of this language reflects how seriously Islam regards the clarity of lineage.
Why This Is Genuinely Hard
Sperm donation feels different from other haram acts because the intention is completely good. There is no desire for pleasure. There is no dishonesty (in most cases). There is just a couple who wants a child, a medical technology that makes it possible, and a ruling that says no.
The nafs in this situation is not selfish or sinful — it is aching. And that makes the test harder, not easier.
What Islam is asking in this situation is a form of sacrifice that very few rulings ask for: to live with an unfulfilled longing in order to preserve principles that protect children and society in ways that go beyond what any individual couple can see. That requires immense faith.
It also requires honesty about what the nafs is doing. When you find yourself searching for scholarly opinions that permit it, or reading about Muslim couples who did it and "everything turned out fine" — that is the nafs constructing a path around the ruling. Recognize it for what it is, not a scholarly search for truth.
When Dua Is All You Have, Make It Everything
The duas of Zakariyya ﷺ and Ibrahim ﷺ for children were answered after years of consistent, trusting supplication. DeenBack helps you build that daily dua habit that keeps your hope alive.
Free download. Premium features available in-app.
What to Do Instead — Halal Paths
Pursue every treatment for the husband's infertility. Male factor infertility has many causes, many of which are treatable. Hormonal treatment, surgical correction of varicocele, lifestyle changes (diet, exercise, elimination of heat exposure) — all of these can improve sperm quality and count. Have a full male fertility workup before concluding that donation is the only option.
Consider IVF with the husband's own sperm. Even very low sperm counts can sometimes be used with ICSI (intracytoplasmic sperm injection), where a single sperm is injected into the egg. The permissibility of this — using the husband's own sperm — is the same as regular IVF: permissible when kept within the marriage.
Consider kafala (Islamic guardianship). The Prophet ﷺ said: "I and the one who cares for an orphan will be like these two in Paradise" — and he gestured with his index and middle fingers close together. (Sahih Bukhari 6005). This is not a consolation prize. This is a high station in front of Allah.
Make dua for miraculous provision. Zakariyya ﷺ was told by angels that his dua had been answered — that his elderly, barren wife would conceive — when he had all but lost hope medically. The medical situation does not limit Allah. Make dua with that conviction.
Support each other through the grief. Infertility that cannot be treated through halal means is a real loss — for both spouses. Acknowledge that. Grieve it together. Seek counseling if needed. The grief is not a sign of weak faith; it is a sign of human love.
Dua for Provision of a Child
رَبِّ إِنِّي وَهَنَ الْعَظْمُ مِنِّي وَاشْتَعَلَ الرَّأْسُ شَيْبًا وَلَمْ أَكُن بِدُعَائِكَ رَبِّ شَقِيًّا
Rabbi innī wahana al-ʿaẓmu minnī wa-shtaʿala ar-raʾsu shaybān wa-lam akun biduʿāʾika rabbi shaqiyyā
"My Lord, indeed my bones have weakened, and my head has filled with white, and never have I been in my supplication to You, my Lord, unhappy." — (Surah Maryam, 19:4 — Zakariyya ﷺ)
Zakariyya ﷺ said this when he was old, when his bones had weakened, and when hope was medically nonexistent. He still made dua. He still believed. And Allah answered.
Common Questions
If we used donor sperm already, is our marriage invalid?
No. The marriage is valid. The action was haram, but it does not nullify the marriage contract. Make sincere tawbah, and consult with a scholar about how to handle the lineage question regarding the child.
Can we keep it secret and raise the child as if the husband is the biological father?
This is a difficult and nuanced question. Many scholars advise transparency with the child when they reach adulthood, as they have a right to know their lineage. Others consider the specifics of each case. This is a question to bring to a knowledgeable, trusted scholar — not something to decide based on internet articles.
What if the donor is a close male relative of the husband?
The ruling does not change based on the donor's relationship to the couple. Any third-party sperm introduces lineage outside the marriage.
Is egg donation the same ruling as sperm donation?
Yes. Egg donation involves a third party's genetic material in the same way sperm donation does. The majority ruling is the same: not permissible. See is IVF haram, is surrogacy haram, and dua for pregnancy for the full picture of assisted reproduction and family duas in Islam.
Your Journey Starts Now
The ruling on sperm donation is clear. Living with it is hard. Both of these things are true at the same time.
What Islam offers in that hard place is not an easy comfort — it is a genuine one: that Allah sees your longing, that your sabr in this matter has weight in the scales of the akhira, that the path of trust in Allah is not a settling for less but a choosing of something higher.
The Prophet ﷺ said: "How wonderful is the affair of the believer, for his affairs are all good — and this is not the case for anyone except the believer. If something good happens to him, he is thankful for it and that is good for him. If something bad happens to him, he bears it with patience and that is good for him." (Sahih Muslim 2999).
You are in the middle of that story. Keep going.
Build the Spiritual Foundation That Carries You
Daily dua, consistent salah, and dhikr are how Muslims stay standing through the hardest seasons. DeenBack helps you maintain that foundation when everything else feels uncertain.
Free download. Premium features available in-app.
Frequently Asked Questions
Is sperm donation haram in Islam?
Yes. Sperm donation — whether donating or receiving donor sperm — is haram in Islam. It introduces a third party's lineage into a marriage, which is equivalent to a form of mixing lineage that the Prophet ﷺ explicitly prohibited.
Is receiving donor sperm the same as zina?
Scholars differ in terminology, but the majority hold that using donor sperm outside of marriage violates the same principle as zina does — the mixing of lineage. Some scholars use the term 'zina of lineage' to describe it, though it is not identical to physical zina.
Can a husband donate his own sperm to be used for his wife later?
Yes. A husband donating his own sperm for use with his wife during their valid marriage (e.g., before cancer treatment) is permissible, as it remains entirely within the marriage.
What about sperm banks run by Muslim organizations?
The source or management of a sperm bank does not change the ruling. What matters is whether the sperm comes from within the marriage or from a third party. A sperm bank, regardless of who runs it, facilitating third-party insemination is not permissible.
We used donor sperm before knowing it was haram. What do we do?
The child bears no sin and is to be loved and cared for fully. Consult with a knowledgeable Islamic scholar about the specific situation regarding the child's lineage, naming, and rights. Make sincere tawbah and do not repeat the action.
