# Onan in the Bible: what happened and what it means

> What Genesis 38:8-10 says about Onan, the duty he refused, why the story says God judged him, how readers explain it, and what the word onanism means.

**By Angus Munro, Clinical Psychologist (AHPRA Reg. PSY0001626434)**  
Published 26 November 2026 · Last reviewed 26 November 2026

---

In Genesis 38, Onan was told to father a child for his dead brother, withdrew instead, and the Lord put him to death. His older brother Er died, and their father Judah told Onan to marry Er's widow, Tamar. Onan knew the child would not be his. So when he slept with her, he "spilled it on the ground," as the King James Version (KJV) puts it (Genesis 38:9). The next verse says the Lord "slew him also."

As for what the story of Onan means, the Jewish Encyclopedia stresses his refusal. Father John Hardon's Catholic dictionary calls onanism a term for contraception. Dictionary.com defines the word onanism as withdrawal during sex, meaning pulling out before ejaculation, and also as masturbation.

## What does the passage say, in context?

The story of Onan in the Bible is told mainly in Genesis 38:8-10, but the verses on either side give it context. It begins with Er. Judah "took a wife for Er his firstborn, whose name was Tamar" (Genesis 38:6, KJV). Er "was wicked in the sight of the Lord; and the Lord slew him" (38:7). Judah then told Onan, "Go in unto thy brother's wife, and marry her, and raise up seed to thy brother" (38:8). The New International Version (NIV) has Judah say it more plainly: "fulfill your duty to her as a brother-in-law."

The next verse gives Onan's reason for holding back. He "knew that the seed should not be his." When he lay with Tamar, he "spilled it on the ground, lest that he should give seed to his brother" (38:9). In the NIV, that verse says he "spilled his semen on the ground to keep from providing offspring for his brother." Then comes the outcome: "the thing which he did displeased the Lord: wherefore he slew him also" (38:10).

Judah then told Tamar, "Remain a widow at thy father's house, till Shelah my son be grown" (38:11). The same verse gives his reason: "Lest peradventure he die also, as his brethren did." Judah feared that Shelah would die too, as Er and Onan had. Later in the chapter, Judah says of Tamar, "She hath been more righteous than I; because that I gave her not to Shelah my son" (38:26).

A duty of this kind is spelled out in Deuteronomy 25:5-10 (KJV). If brothers lived together and one died with "no child," his widow was not to marry outside the family. Instead, "her husband's brother" was to marry her and "perform the duty of an husband's brother unto her." The firstborn she bore would "succeed in the name of his brother which is dead." That way, the dead man's name would not be "put out of Israel." In short, the brother was to give the dead man a child who would carry on his name. A brother who would not do this could be called before the elders of his city. If he still refused, the widow was to "loose his shoe from off his foot, and spit in his face." His household would then be known in Israel as "The house of him that hath his shoe loosed."

## Why does the story say God put him to death?

The passage gives only a short reason, quoted above: what Onan did "displeased the Lord" (Genesis 38:10, KJV). The NIV says, "What he did was wicked in the Lord's sight; so the Lord put him to death also." Readers disagree about which part of his conduct was the wrong: turning down the duty, or the act itself.

Some interpreters put the weight on the refusal. The Jewish Encyclopedia's entry on Onan says "he refused to enter into a levirate marriage with his sister-in-law." In plain words, a levirate marriage is the marriage that Deuteronomy asks of a dead man's brother. The entry adds that "it was for this reason that the Lord 'slew him also.'"

Matthew Henry's Bible commentary also points to the refusal: "he refused to raise up seed unto his brother, as he was in duty bound." Henry adds that "This was so much the worse because the Messiah was to descend from Judah."

Casti Connubii, a letter from Pope Pius XI, puts the death down to the act. The line it quotes from St. Augustine on the story reads, "Onan, the son of Juda, did this and the Lord killed him for it." [Our page on Catholic teaching about sex in marriage](/catholic-teaching-on-sex-in-marriage/) sets out the reasoning behind this reading.

So these readings split: the Jewish Encyclopedia points to the refusal and Casti Connubii to the act, while Henry stresses the refusal but also calls sins that dishonour the body "very displeasing to God." [The main answers on whether ejaculating outside sex is a sin in itself](/is-wasting-seed-a-sin/) have their own page.

## What is onanism?

Onanism is a word with more than one meaning. Dictionary.com gives withdrawal during sex before ejaculation first, then masturbation. It also gives a broader sense that is not about sex at all: satisfying one's own needs or desires.

Only the first sense matches what Genesis 38 describes. The first two senses name quite different sexual acts, which is why the word can be confusing to come across.

Father John Hardon's Modern Catholic Dictionary, on the Catholic Culture website, calls the word a "Theological term for contraception" and says the name "is derived from Onan, son of the patriarch Judah."

A narrative review titled "From Onanism to Masturbation," a written summary of research on adults, concluded that masturbation is a normal, widespread sexual behavior (Karageorgou & Agorastos, 2025a). What that may mean for health is covered in our page on masturbation and health. Other Bible passages raised on this subject are gathered in [our page on the Bible and masturbation](/what-does-the-bible-say-about-masturbation/).

## Beyond Onan's story: two questions about masturbation


### Is masturbation allowed in Christianity?

There is no single Christian answer. Some Christians object to masturbation because of the lust that can come with it. Others reason from their view of what sex is for. Some note that scripture never names it directly. Some Christian writers say the act itself is not sinful. In their view, lust, or a habit that takes over someone's life, is what can make it wrong. Each position rests on its own reasons. The choice between them stays with each reader's tradition and conscience. The positions and their reasons are compared in [the main Christian answers, side by side](/is-masturbation-a-sin/).


### Is masturbation a forgivable sin?

Christian traditions disagree about whether masturbation is a sin in the first place. Those that do count it as a sin generally teach that it can be forgiven. They do not place it with the "unforgivable sin" that some worried readers fear. For some people, that fear keeps coming back however often it is answered. A constant, intrusive religious fear like that is worth talking over with a doctor or another licensed professional. The full answer, including why this fear can linger, is in what each tradition teaches about forgiveness.

## References

- Karageorgou, C., & Agorastos, A. (2025a). From Onanism to Masturbation—A Comprehensive Overview on Matters of Behavioral Specificity, Hypotheses of Function and Associated Aspects of Pathology. International Journal of Sexual Health. https://doi.org/10.1080/19317611.2025.2562422

---

_Source: https://pornaddictionsolution.com/onan-in-the-bible/ — educational content by Angus Munro, Clinical Psychologist (AHPRA Reg. PSY0001626434). This is general education, not individual clinical advice._
