# Is masturbation (self-pleasure) a sin in Islam?

> Is self pleasure a sin in Islam? What IslamQA and Egypt's Dar al-Ifta say, the verse and hadith scholars cite, how scholars differ, and the edging question.

**By Angus Munro, Clinical Psychologist (AHPRA Reg. PSY0001626434)**  
Published 26 November 2026 · Last reviewed 26 November 2026

---

The rulings quoted on this page say yes, and they differ in whether they name a narrow exception. On whether self pleasure is a sin in Islam, IslamQA says it is haram (forbidden) for women as for men. Dar al-Ifta, a fatwa (religious ruling) body in Egypt, frames its prohibition around the absence of necessity. Darul Ifta Birmingham, a fatwa service of the Hanafi school of law, holds it haram, with an exception for someone genuinely unable to fast who also fears committing zina (adultery).

These sources use the word masturbation, or the term istimna’, for touching yourself. This page sets out who says what and which texts they cite. It makes no ruling of its own.

## Which Quran verses and hadith do these sources cite?

One Quranic passage cited for the ban is in Surah Al-Mu'minun, and one writer reads it differently. IslamQA writes: "Masturbation (for both men and women) is haram (forbidden) in Islam based on evidence from the Quran and the Sunnah" (the Prophet Muhammad's example). It then names a scholar and his source: "Al-Imam Shafi'i stated that masturbation is forbidden based on the following verses from the Quran."

Those verses read as follows, in the Saheeh International translation as Quran.com displays it:

> 23:5 And they who guard their private parts
>
> 23:6 Except from their wives or those their right hands possess, for indeed, they will not be blamed -
>
> 23:7 But whoever seeks beyond that, then those are the transgressors -

The three verses read as one passage. IslamQA also cites a hadith (a reported saying of the Prophet) in al-Bukhari's collection, on marrying or fasting, which [our page on stopping as a Muslim](/how-to-stop-masturbating-islam/) covers.

Siraj Islam, on the blog Lamp of Islam, gives a minority reading: "The Quran is totally silent about masturbation." He adds that "everything is permissible until it's clearly forbidden." He says the forbidding reading "does not hold water because it completely ignores the context." That is one writer's interpretation, not a scholar's ruling.

## Is it ever okay to masturbate in Islam, and do the schools differ?

Only in narrow cases, in the sources that name an exception, and those sources word it differently. IslamQA's ruling, quoted above, names no exception. Dar al-Ifta's wording turns on necessity. Two other sources go further. Darul Ifta Birmingham speaks from inside the Hanafi school of law. My Tazkiyah speaks across several schools, and it names the Hanafi school and some Hanbali scholars as those who permit an exception.

Dar al-Ifta's wording comes in a fatwa on masturbating while watching porn. It says that "practicing masturbation in the first place to arouse one's sexual urge without a necessity is prohibited in Islamic law."

Darul Ifta Birmingham gives its account of the Hanafi position, in an answer from Muftiyah Maryam Badshah approved by Mufti Mohammed Tosir Miah. It states: "Istimna’ (masturbation) is forbidden (haram) according to the Hanafi madhab" (school of law). Its exception applies "if an individual is genuinely unable to fast and also fears they will commit zina (adultery)." It adds a condition on purpose: "they perform this act in order to remove the desire they are experiencing, and not to increase it."

The site My Tazkiyah makes a broader statement. It says that scholars "agree that masturbation is haram (forbidden), except in very limited situations of necessity." It counts among them scholars "including those from the Hanafi, Maliki, Shafi’i, and Hanbali schools." It adds that "The Hanafi school and some Hanbali scholars permit masturbation only if" conditions are met, among them that "A person fears falling into zina (fornication)" and that "They are unable to marry or fast." In those cases, it says, "it may be viewed as a lesser evil, but still not encouraged."

## What counts as a necessity in these rulings?

Both sources that spell out an exception name fear of zina among their conditions. For Darul Ifta Birmingham, the person must be genuinely unable to fast and must also fear committing zina, both together. For My Tazkiyah, the conditions quoted here are fearing zina and being unable to marry or fast. The two exceptions are close, but they are not the same exception.

Neither wording is limited to men: Darul Ifta Birmingham says "an individual," and My Tazkiyah says "A person."

Two of the sources also look at what the act is for, as well as the act itself. Dar al-Ifta speaks of acting "to arouse one's sexual urge." Darul Ifta Birmingham speaks of removing desire and not increasing it.

Neither Darul Ifta Birmingham nor My Tazkiyah presents the exception as a general permission. My Tazkiyah calls the situations "very limited," and says the act "may be viewed as a lesser evil, but still not encouraged." Darul Ifta Birmingham keeps forbidden as its ruling.

The two statements also differ in what they show about who stands behind them. Darul Ifta Birmingham names who answered and who approved; the My Tazkiyah passages quoted here name no author.

## Is masturbation a major sin in Islam?

Among the sources here, IslamQA says "haram (forbidden)," and an answer on al-Islam.org says it "is a sin and is compared to doing zina with oneself." Neither phrase grades it as major or minor. The difference between those two grades is explained in [our page on whether watching porn is haram](/is-watching-porn-haram/).

That al-Islam.org answer, from Seyed Ali Shobayri, is a Shia answer, and it sits beside the Sunni sources above. It rests its statement on "the narrations" and gives its reference as Wasa'il, vol. 14, p. 267, and vol. 18, pp. 574-5. Where Darul Ifta Birmingham and My Tazkiyah describe an exception, this answer turns to marriage: "seeking marriage whether permanent or temporary is necessary to protect one's private parts." It is one answer on one site, and it does not speak for every Shia scholar.

## Is it haram to masturbate if you are married?

On the al-Islam.org answer quoted below, the allowance is for spouses together, not a spouse alone. Verse 23:6, quoted above, names "their wives" in its exception. IslamQA's ruling, as quoted above, names no marital exception for masturbating alone.

The al-Islam.org answer speaks to the case directly. It says: "A husband or wife may mutually stimulate each other's private parts." It adds: "If they are away from each other then they cannot use their own hands for such an action until being together."

## Is edging haram?

On this page's reading, it is weighed by the same positions as masturbation. The NoFap website says edging certainly "counts" as masturbation, "since masturbation without orgasm is still masturbation." NoFap is a community source, not an Islamic authority, and its sentence is not a fatwa. Applying it here is this page's reading, not a ruling.

A related question is taken up in [our page on whether gooning is haram](/is-gooning-haram/).

How Christian teaching views masturbation is covered in [our page on masturbation and sin](/is-masturbation-a-sin/).

---

_Source: https://pornaddictionsolution.com/is-masturbation-haram/ — educational content by Angus Munro, Clinical Psychologist (AHPRA Reg. PSY0001626434). This is general education, not individual clinical advice._
