Image: Unsplash/A. Nishaath, adapted using Dall-E, hotpot.ai
Does the Torah Prohibit Male Masturbation?
Onan son of Judah “would let [his seed] go to waste on the ground, so as not to provide offspring for his brother. This was wicked in the eyes of YHWH, who killed him” (Genesis 38:9–10). What was Onan’s sin?
Published: December 8, 2022
|
Last Updated: September 7, 2026
The term “spilling seed” refers to multiple acts of non-procreative sex, not just masturbation (which Ganzfried will take up next). The point is clearer in the Shulchan Arukh, which separates spilling seed and masturbation into two different seʿifim (paragraphs), and offers a very different set of examples for the first:
שלחן ערוך אבן העזר כג:א אסור להוציא שכבת זרע לבטלה ועון זה חמור מכל עבירות שבתורה. לפיכך לא יהיה אדם דש מבפנים וזורה מבחוץ, ולא ישא קטנה שאינה ראויה לילד.
Shulchan Arukh EH 23:1 It is prohibited [for men] to spill their seed in vain. And this is a graver sin than any other transgression in the Torah. Therefore, a man may not thresh inside and sow outside (i.e., perform coitus interruptus), nor may he marry a prepubescent girl who cannot yet have children.
This too is directly from the Shulchan Arukh:
שלחן ערוך אבן העזר כג:ב אלו שמנאפים ביד ומוציאים שכבת זרע, לא די להם שאיסור גדול הוא, אלא שהעושה זה בנידוי הוא יושב ועליהם נאמר (ישעיה א:טו): "ידיכם דמים מלאו" וכאלו הרג הנפש.
Shulchan Arukh EH 23:2 Those who masturbate (lit. “fornicate with their hand”) and spill their seed, not only do they violate a serious transgression, but also one who does this is placed under a ban. Regarding such people, it is said (Isa 1:15), “Your hands are full of blood,” it is akin to killing a person.
The weekly Torah portion, which covers Genesis 37–40.
I discuss below how Er is connected to this.
Important examples are as Edmund Curll’s Onanism Display’d, and most famously, the Swiss Physician Samuel Tissot’s, Onanisme, dissertation sur les maladies produites par la masturbatio (Onanism: A Dissertation on the Diseases Produced by Masturbation).
Editor’s note: For discussion of this story in the context of the yibbum law, see Pamela Barmash, “Tamar’s Extraordinary Risk: A Narrative—not a Law—of Yibbum,” TheTorah (2016).
The practice of levirate marriage (or a mangled version thereof) appears as well in the book of Ruth (1:15; 3:13; 4:5, 10) and it is codified as law in Deuteronomy 25. While the latter includes a right of refusal for the brother, it is accompanied by a humiliation ritual called ḥalitzah:
דברים כה:ט וְנִגְּשָׁה יְבִמְתּוֹ אֵלָיו לְעֵינֵי הַזְּקֵנִים וְחָלְצָה נַעֲלוֹ מֵעַל רַגְלוֹ וְיָרְקָה בְּפָנָיו וְעָנְתָה וְאָמְרָה כָּכָה יֵעָשֶׂה לָאִישׁ אֲשֶׁר לֹא יִבְנֶה אֶת בֵּית אָחִיו. ט:י וְנִקְרָא שְׁמוֹ בְּיִשְׂרָאֵל בֵּית חֲלוּץ הַנָּעַל.
Deut 25:9 His brother’s widow shall go up to him in the presence of the elders, pull the sandal off his foot, spit in his face, and make this declaration: “Thus shall be done to the man* who will not build up his brother’s house!” 25:10 And he shall go in Israel by the name of “the family of the unsandaled one.”
Clearly, the text is unsympathetic to the brother who refuses to do his duty by his family and produce an heir for his deceased brother. This does not mean there were never good reasons for refusal: the brother might already have a wife or two whom he struggled to support, for example, or he may already be married to the widow’s sister or mother. Later, as Israel became more urbanized and the ramifications of refusal were lessened, and the ḥalitzah ritual become more common than levirate marriage. By the time of the rabbis, ḥalitzah had become the standard, as it remains until today in religious circles. For a discussion of this shift, see Dvora E. Weisberg, Levirate Marriage and the Family in Ancient Judaism (Lebanon, NH: Brandeis University Press / University Press of New England, 2009).
The biblical text does not seem especially concerned with Onan’s sin. Indeed, his death, like that of his older brother Er, is merely a plot device in the more extensive and important story of Judah’s relationship with his daughter-in-law Tamar. After their deaths, the two characters disappear from view, though perhaps the reader is meant to think of them again when Judah produces twin sons with Tamar, each replacing one of their half-brothers whose deaths brought about their conception. Second Temple literature is also not especially interested in Onan and his sin. Neither the Greek translation of the account in the Septuagint nor the Aramaic translations (targumim) embellish the biblical account. Josephus completely ignores the story in Antiquities.
Translation from James C. Vanderkam, The Book of Jubilees, Corpus Scriptorum Christianorum Orientalum 511; Scriptore Aethiopici 88 (Leuven: Peeters, 1989), 267.
A similar interpretation can be found in the Testaments of the Twelve Patriarchs, in the Testimony of Judah, except that here, the author ends up with Onan doing both things, first abstinence and then coitus interruptus:
Testament of Judah 10:1 After these things my son Er married Tamar from Mesopotamia, the daughter of Aram. 10:2 But Er was wicked, and he was displeased with Tamar, since she was not from the land of Canaan. And an Angel of the Lord killed him on the third night [after their marriage]. 10:3 He never had had relations with her, because of his unscrupulous mother, since [s]he did not want [him] to have any children from her. 10:4 During the days of the wedding feast, I gave her to Onan in levirate marriage. But he purposefully did not have relations with her for a [whole] year. 10:5 And when I reproved him, he did lie with her, but he destroyed the seed on the ground, in keeping with his mother’s command; and he likewise died because of his wickedness.
Translation from James L. Kugel, “Testaments of the Twelve Patriarchs,” in Outside the Bible: Ancient Jewish Writings Related to Scripture, ed. Louis H. Feldman, James L. Kugel, and Lawrence H. Schiffman (Philadelphia: JPS, 2013), 2.1697–1855 [1755–1756].
See Cana Werman, ספר היובלים: מבוא, תרגום, ופרוש [The Book of Jubilees: Introduction, Translation, and Interpretation], בין מקרא למשנה [Between Bible and Mishnah] (Jerusalem: Yad Ben Zvi, 2015) 492.
This is a play on his name, ער, which Philo is associating with Hebrew עור, “skin” or “leather.” The etymology appears in his Allegories (3:69) as well, and is meant to connect the correct allegorically with the material world. See commentary of Yehoshua Amir in, כתבי פילון האלכסנדרוני [The Writings of Philo of Alexandria], ed. Susan Daniel-Nataf, volume 4, ed. Yehoshua Amir (Jerusalem: Bialik, 1997), 318 [n. 204].
Translation (with adjustments) from Francis H. Colson and George H. Whitaker, trans., Philo II, Loeb Classical Library (Cambridge, MA: Harvard University Press, 1929), 2.435, 437.
It was composed in Roman Palestine in the early to mid-1st millennium C.E.
The Babylonian Talmud gives a midrashic prooftext for this:
בבלי יבמות לד: בשלמ[א] אונן כתי[ב] "ושחת ארצה", ער מנלן?
b. Yeb 34b It makes sense to mention Onan, for it says, “he spilled [his seed] on the ground.” From where do we know that Er did so?
אמ[ר] רב נחמן בר יצחק: "אמ[ר] קרא: 'וימת גם אותו'—גם הוא באותה מיתה מת."
Rav Nachman bar Isaac said: “Scripture states ‘and [God] killed him also.’—He also died the same death (i.e., for the same reason).”
The name ער Er is the Hebrew word רע “bad” backwards. If anything, his character merely sets up the next part of the story, since Onan needs a deceased brother to refuse to perform levirate marriage.
Tamar’s lineage is never stated in the Torah, and the suggestion that she is the daughter of Shem goes back to Genesis Rabbah (§85):
אפרים מקשאה תלמיד ר' מאיר מש' ר' מאיר: תמר בת שם היית דכת' (ויקרא כא:ט) וּבַת אִישׁ כֹּהֵן כִּי תֵחֵל לִזְנוֹת [אֶת אָבִיהָ הִיא מְחַלֶּלֶת בָּאֵשׁ תִּשָּׂרֵף], (בראשית לח:כד) וַיֹּאמֶר יְהוּדָה הוֹצִיאוּהָ וְתִשָּׂרֵף.
Ephraim Maksha’ah, a student of Rabbi Meir, said in the name of Rabbi Meir: “Tamar was the daughter of Shem, as it says (Lev 21:9) ‘When the daughter of a priest defiles herself through harlotry, [it is her father whom she defiles; she shall be put to the fire]. (Gen 38:24) ‘And Judah said: “Bring her out; she should be burned!”’”
Rabbi Meir’s reading is based on two midrashic connections: 1. Judah wishes to have Tamar burned, which is the punishment for a daughter of a priest who fornicates (Lev 21:9). 2. The rabbis understand that Melchizedek, King of Shalem, who was “the priest of the Most High God” (Gen 14:18) was himself Shem.
This phrase, explaining that the midrashic term is a euphemism, is ostensibly not from the original midrash but is R. Adani’s gloss.
The simple meaning of the verse is “He who moves hurriedly blunders” (NJPS). Yet, the rabbis understand this phrase as referring to all sorts of sins or inappropriate behaviors: stepping on grass on Shabbat (b. Eruvin 100b); raping one’s wife (ibid.); having sex twice in a row (ibid.); having sex when his wife generally gets her period (Lev Rab 4:3); buying meat from the non-kosher butcher, next door to the kosher one (ibid.); walking on a bumpy road on Shabbat when one could walk on a nice one (ibid.); a general description of purposeful sins (ibid.).
This is more or less a word for word quoting of Rashi, in his gloss on a similar passage in the Babylonian Talmud (b. Ketubot 72a).
The claim is that the hymen would block the passage of the sperm.
Rav Nachman accepts that it was her first sex act, and answers Rava based on a technicality:
בבלי יבמות לד: א[מר] ל[יה]: "תמר באצבעה מיעיכה, דא"ר יצחק: 'כל מעוכות של בית ר' תמר שמן. למה נקר[א] שמן תמר? על שם תמר שמיעיכה באצבעה.'"
b. Yeb 34b [Rav Nachman] said to him: “Tamar broke [her hymen] with her finger, for Rav Isaac said: ‘All the girls in Rabbi’s household who broke their hymens were nicknamed Tamar. And why were they called “Tamars”? Because of Tamar who broke [her hymen] with her finger.
In in rabbinic literature, לא כדרכה sometimes seems to be a general reference to non-vaginal sex, literally “not the usual way.” Other times, however, it is a technical term for anal sex (which the rabbis counted as “real” sex), and is distinguished from non-penetrative (presumably including oral) sex, which is covered by the term דרך אברים (and is not “real” sex in rabbinic thinking). In medieval halakhic literature, לא כדרכה is always anal sex. For discussion of this term, see Michael L. Satlow, Tasting the Dish: Rabbinic Rhetorics of Sexuality, Brown Judaica Studies 303 (Atlanta, GA: Scholars Press, 2020; repr. of 1995), 238–239.
A Tannaitic source outside the Mishnah
The Talmud then reinterprets their position:
כמעשה ער ואונן ולא כמעשה ער ואונן, כמעשה ער ואונן דכתי' "ושחת ארצה" ולא כמעשה ער ואונן דאילו התם שלא כדרכה הכא כדרכה.
“This is like the act of Er and Onan” but it is not identical to the act of Er and Onan. It is like the action of Er and Onan, since it says “he spilled [his seed] on the ground,” but it is not like the act of Er and Onan, since they had non-vaginal sex, but here [Rabbi Eliezer] is talking about having vaginal sex [with withdrawal as the birth control remedy].
We see from here that this Talmudic passage equates all forms of seed-spilling, which, according to the Sages, is sinful.
The first two chapters of this work date to the Amoraic period, and are distinct from the last seven chapters, which are hundreds of years later, from the Geonic Period. See discussion in “Chapter 6: KR 1–2: An Introduction,” in David Brodsky, A Bride without a Blessing A Study in the Redaction and Content of Massekhet Kallah and Its Gemara, Texts and Studies in Ancient Judaism 118 (Tübingen: Mohr Siebeck, 2006), 179–225.
I discuss this text because it connects the spilling seed with Onan. That said, it is only one of many such texts in Kallah Rabbati that excoriate this “sin” with all kinds of terrible things, with very similar rhetoric as we find in the Babylonian Talmud, as they share a cultural context.
This is different in emphasis to the Mishnah’s curse on men who practice self-arousal:
משנה נדה ב:א כָּל הַיָּד הַמַּרְבָּה לִבְדוֹק, בַּנָּשִׁים, מְשֻׁבַּחַת, וּבָאֲנָשִׁים, תִּקָּצֵץ.
b. Niddah 2:1 Any hand that checks (for genital emissions): If it is a woman checking herself (for blood), it is blessed, if it is a man’s (checking his penis for emissions), it should be chopped off.
The Mishnah’s condemnation of men who overly handle their penis is clear, but the reason is not. As self-arousal was often condemned in the Greco-Roman world as demonstrating a lack of self-control—one of the defining characteristics of masculinity in antiquity—this may well be the concern here. Self-arousal and excessive masturbation – or more generally, excessive interest in sex – were signs of a “soft” nature. (In contrast to the frequent rabbinic portrayal of non-Jews as sexual profligates, the Roman elite in fact were rather prudish and conservative. (Musonius Rufus 12; Peter Brown, The Body and Society: Men, Women and Sexual Renunciation in Early Christianity [New York: Columbia University Press, 1988], 132–136.) This condemnation, however, is not connected to Onan or the Bible per se, but is a self-standing condemnation that likely made intuitive sense to the audience at the time. Later, the Talmud will offer all sorts of midrashic support for this condemnation from verses all over the Bible in varying contexts. The connection to Onan is only made by those sages who explain the problem as that of wasted seed.
To be clear, the sources quoted in Kallah Rabbati and the Babylonian Talmud are said to be from sages in Roman Palestine. It is possible, of course, that the attribution is in error or fictive, but even if the attribution is accurate, it is significant that these readings survived only in Babylonian texts, not Palestinian texts, implying that they struck a chord in the former context as opposed to the latter.
Much of this piece is based on, Michael L. Satlow, “‘Wasted Seed,’ The History of a Rabbinic Idea,” Hebrew Union College Annual 65 (1994): 137–175.