Onan in the Bible: What Genesis 38 Actually Says

Onan appears in Genesis 38, where he refuses to provide offspring for his deceased brother’s family line. He has intercourse with Tamar but deliberately prevents conception, and the text says that the Lord judged his action severely. The passage is often used to discuss masturbation, contraception, or “spilling seed,” but its immediate subject is Onan’s refusal of a family obligation and his exploitation of Tamar.
The biblical account does not use the modern term “onanism,” and it does not present a general medical or sexual ethics discussion. To understand Onan in the Bible, you need to read his action within the customs of his time, the family conflict in Genesis 38, and the story’s concern with preserving a dead man’s name and inheritance.
Who Onan was in Genesis 38
Onan was the second son of Judah, one of Jacob’s sons, and his mother is described as the daughter of a Canaanite man named Shua. Genesis 38 places his story during the period when Judah and his brothers were living in the land of Canaan. The chapter temporarily shifts away from Joseph’s story to focus on Judah’s household.
Judah arranged a marriage between his firstborn son, Er, and a woman named Tamar. The text says that Er was wicked and that the Lord put him to death, although it does not explain the precise nature of his wrongdoing. After Er died, Tamar was left without a husband or children and without a secure place in the family.
Judah then told Onan to take Tamar as his wife. This instruction reflects a family duty often associated with levirate marriage: a surviving brother could be expected to father a child with his deceased brother’s widow so that the dead brother’s family line and inheritance would continue. The child would be associated with the deceased brother’s name rather than simply treated as the surviving brother’s ordinary heir.
Onan agreed to the sexual relationship but rejected its purpose. Genesis says that when he went in to Tamar, he prevented conception because he knew the child would not be counted as his own line. His conduct gave him the benefits of sexual access while denying Tamar the protection, status, and future that the arrangement was intended to provide.
Central point: Genesis 38 focuses on Onan’s deliberate refusal to fulfill a family obligation while using Tamar. The passage should not be reduced to a one-word rule about every act of ejaculation or every question about birth control.
What happened to Onan, step by step
The narrative is brief, but each action contributes to the meaning of the episode. Reading the sequence carefully helps prevent later assumptions from replacing what Genesis actually says.
- Judah’s first son, Er, died. His death left Tamar a widow and ended the first marriage without a child who could carry forward his household line.
- Judah directed Onan to marry Tamar. The arrangement was meant to address the family and inheritance problem created by Er’s death.
- Onan had intercourse with Tamar. He did not reject the relationship openly at the beginning, and the account does not describe him as refusing sexual contact altogether.
- Onan prevented the intended conception. The text explains that he did this because he knew the resulting offspring would be connected with his dead brother rather than treated as his own.
- The Lord judged Onan’s action as wicked. Genesis says that the Lord was displeased with what Onan did and that Onan died.
- Judah failed to give Tamar his third son. Judah told Tamar to remain at her father’s house until Shelah was old enough, but he did not ultimately provide Shelah to her as promised.
- Tamar sought justice through disguise. When Judah continued to withhold Shelah, Tamar disguised herself and conceived twins by Judah, who did not recognize her at the time.
The story’s outcome shows that Tamar was not the person condemned in the Onan episode. She was left vulnerable by the deaths of two husbands and by Judah’s failure to honor his promise. Her later actions expose Judah’s hypocrisy: he was ready to punish her when he thought she had violated the family’s sexual expectations, yet he had not kept his own responsibility toward her.
Why Onan’s action was considered wicked
Genesis gives a direct reason for Onan’s behavior: he knew the offspring would not be regarded as his. That detail makes self-interest and refusal central to the passage. Onan wanted sexual access to Tamar but did not want to accept the family responsibility attached to the relationship.
His action also harmed Tamar. In the social structure represented in Genesis 38, a widow without children could face insecurity and dependence on her husband’s relatives. A child could give her a continuing connection to the household and preserve her place within the family. Onan’s conduct denied her that possibility while allowing him to avoid the cost of supporting his deceased brother’s line.
The episode therefore involves more than a private sexual act. It is connected to inheritance, family identity, male power, and the treatment of a vulnerable widow. Onan’s refusal protected his own prospective inheritance. If Tamar had a son recognized as Er’s heir, that child could receive the position or resources associated with Er’s family line. Onan appears to have regarded that outcome as a disadvantage.
The Hebrew wording describes Onan’s act in physical terms, but the narrative itself supplies the motive. It does not say that every instance of withdrawing during intercourse has the same moral meaning, nor does it present a separate discussion of modern contraceptive methods. It portrays one man knowingly violating a particular obligation in a particular family crisis.
How levirate marriage helps explain the passage
The term levirate marriage comes from a Latin word related to a husband’s brother. In the Hebrew Bible, the clearest later legal discussion appears in Deuteronomy 25. That law describes a situation in which brothers live together and one dies without a son. The surviving brother may have a duty connected to the widow and the dead brother’s name.
Deuteronomy also shows that the practice was not treated as a casual sexual arrangement. The surviving brother could publicly refuse, but refusal brought shame and a formal response. The widow’s future, the dead man’s name, and the family’s property were involved. Genesis 38 is earlier than the Deuteronomic law in the biblical storyline, but it helps readers see the kind of social duty that may stand behind Judah’s instruction to Onan.
There are differences between Genesis 38 and the later legal passage. Genesis does not set out a complete procedure, and scholars discuss how closely the custom in this story corresponds to the later law. Still, both passages connect a brother’s responsibility with the continuation of a deceased man’s family name.
That background clarifies why Onan’s motive matters. If he had simply been unable to father a child, the situation would have been different. Genesis presents him as intentionally obstructing the purpose of the arrangement while continuing to take part in it. His deception is part of the wrongdoing.
- The dead brother’s name: The expected child would preserve the family identity of the man who had died.
- The widow’s security: Tamar’s relationship to the household could provide social and economic protection.
- The inheritance question: A child connected to Er could affect how family property and status were assigned.
- The surviving brother’s duty: Onan was expected to accept a responsibility that could limit his own advantage.
- The community’s expectations: Marriage and childbearing were not only private matters in this setting; they affected the entire clan.
Does the Onan story condemn masturbation?
Genesis 38 does not describe masturbation. Onan has intercourse with Tamar and deliberately prevents the intended conception. Because later readers associated the story with the emission of semen, some traditions used “onanism” as a term for masturbation or other sexual acts. That later vocabulary can make it seem as though the biblical text directly addresses masturbation, but it does not.
The account’s stated issue is Onan’s behavior toward Tamar and his brother’s family line. He is not alone in the scene, and the central conflict is not whether he experienced sexual release. It is that he accepted the sexual part of an obligation while intentionally rejecting the duty to produce the child that the arrangement required.
This distinction does not settle every religious or ethical question about masturbation. Different Jewish and Christian traditions have developed their own teachings by considering other biblical passages, theology, natural-law reasoning, pastoral concerns, and views of human sexuality. Those teachings should not be presented as though Genesis 38 were a direct narrative about masturbation.
A careful reading can hold two points together: the passage has implications for sexual responsibility, and its immediate meaning is not identical to every later use of the word “Onanism.” Applying the account to a modern question requires an additional argument rather than a simple quotation of Genesis 38.

Does the passage condemn contraception?
Genesis 38 is also sometimes cited as a prohibition of contraception. The connection is understandable because Onan prevents Tamar from becoming pregnant. Yet the text does not discuss contraception as a general category, and it does not describe a married couple making a mutual decision about spacing or avoiding pregnancy.
Onan’s motive was specifically tied to his brother’s inheritance and name. He was not portrayed as a husband and wife jointly considering family size, health, or timing. He was part of an arrangement that required him to provide an heir for his dead brother, and he covertly undermined that arrangement for his own benefit.
Some religious traditions still use the story as part of a broader argument against deliberately separating sex from procreation. Other interpreters say that the passage cannot bear that broad meaning by itself. Either way, a responsible reading should distinguish the text’s historical situation from later ethical applications.
The story may reasonably prompt questions about honesty, responsibility, and whether one person may exploit another while refusing the obligations attached to intimacy. It does not, on its own, answer every modern question about contraceptive methods, infertility treatment, or family planning.
What Tamar’s story adds to the meaning
Onan’s episode cannot be separated from Tamar’s experience. After Er’s death, she remained in Judah’s family but did not receive the security that marriage and children were supposed to provide. Judah’s instruction to wait for Shelah delayed her future, and his later inaction left her trapped.
Tamar’s disguise and encounter with Judah form the second half of the chapter’s moral reversal. Judah assumed that Tamar was a prostitute and gave her personal items as a pledge. When he later learned that Tamar was pregnant, he demanded punishment for her. Tamar then identified Judah as the man responsible, using the items he had left with her.
Judah admitted that Tamar was more righteous than he was because he had failed to give her Shelah. The statement does not make every part of Tamar’s plan simple or remove the chapter’s morally difficult features. It does show that Judah’s failure is exposed alongside Onan’s wrongdoing.
The chapter ends with Tamar giving birth to twins, Perez and Zerah. Perez becomes an important figure in the biblical genealogical tradition and is later included in the genealogy of Jesus in Matthew 1. That later connection gives Genesis 38 a wider place in the biblical story, although it does not erase the suffering or ambiguity within the chapter itself.
Read the whole chapter: Isolating Genesis 38:9 from Tamar’s vulnerability and Judah’s broken promise can turn a story about family injustice into a narrow slogan about sexual behavior.
How major interpretations differ
Readers have interpreted Onan’s sin in several ways. These interpretations overlap, but they are not identical. Recognizing the differences helps you understand why the passage is debated.
- Refusal of levirate duty: Onan disobeyed an obligation to raise up offspring for his dead brother. This interpretation gives priority to the explicit family context.
- Deception and exploitation: Onan used Tamar sexually while intentionally denying her the result and security she had a right to expect. This view emphasizes the harm done to Tamar.
- Greed or inheritance protection: Onan avoided producing an heir who could reduce his own share or alter the family’s succession. This interpretation focuses on his motive.
- Deliberate emission outside intercourse: Some traditional readings emphasize the physical act itself and treat the passage as a general condemnation of wasting semen. This became influential in later religious discussions.
- A broader sexual ethic: Some readers apply the story to the separation of sexual pleasure from responsibility. That application may be meaningful within a theological framework, but it goes beyond the immediate details of Genesis 38.
The first three interpretations fit closely with the narrative’s stated reason and surrounding events. The fourth reflects an influential history of interpretation, but it can overlook why Onan acted and whom his decision affected. The fifth may offer a modern moral application, provided it is identified as an application rather than presented as the entire meaning of the text.
What “spilling his seed” means in context
Many English translations describe Onan as “spilling his seed on the ground.” That phrase refers to his deliberate prevention of conception during intercourse. It is vivid language, but it should not be read as though the phrase itself explains the whole moral judgment.
In biblical narratives, physical actions often reveal motives and relationships. Here the action demonstrates that Onan knew how to fulfill the arrangement biologically but chose to prevent its outcome. The physical detail serves the story’s explanation of intentional avoidance.
The wording also differs from passages that discuss ritual impurity or ordinary bodily emissions. Those passages should not automatically be merged with Genesis 38. Genesis is telling a story about a man’s decision in a specific family and inheritance situation, not giving a general list of every sexual or reproductive act.
That distinction is especially useful when reading older sermons and commentaries. Some interpreters treated the physical act as the central sin; others treated it as evidence of disobedience, selfishness, and injustice. Looking at the entire chapter supports the second approach more strongly than a reading based only on the image of semen on the ground.
What Genesis 38 can teach about sexual responsibility
Although the passage should not be turned into a simplistic rule, it raises lasting questions about consent, honesty, power, and responsibility. Onan did not merely make a private choice with consequences for himself. His choice affected Tamar, the dead brother’s household, and the family’s future.
The account also shows why sexual behavior cannot always be analyzed apart from relationships and promises. A person may have a physical right or opportunity while still acting unjustly if he conceals his intentions, takes advantage of another person’s vulnerability, or refuses an obligation that he knowingly accepted.
Judah’s behavior broadens the lesson. He controlled Tamar’s access to Shelah, delayed her future, and then judged her when he believed she had acted improperly. The chapter criticizes double standards as well as sexual exploitation. A fair reading asks what each person promised, what each person knew, and who bore the consequences.
For contemporary readers, the most responsible application may involve examining whether intimacy is being used deceptively or selfishly. Questions about contraception or sexual conduct still require careful treatment in their own religious and ethical contexts. Genesis 38 contributes a warning against using another person while evading the responsibilities of the relationship.
How to read Onan’s story without common mistakes
A few reading practices can keep the passage in proportion and prevent inaccurate claims about what the Bible says.
- Start with Genesis 38, not with the later word “onanism.” The later term can shape your expectations before you have read the original narrative.
- Identify the stated motive. Genesis explains that Onan acted because the offspring would not be counted as his. That explanation deserves attention.
- Include Tamar in the analysis. Ask how the deaths, the delayed marriage, and the withheld promise affected her position.
- Separate description from application. The text describes one man’s action in one custom; applying it to modern practices requires theological or ethical reasoning.
- Compare related passages carefully. Deuteronomy 25 provides a later legal framework for a similar family duty, but it should not be treated as identical in every detail to Genesis 38.
- Do not use the passage to shame people. A difficult biblical text deserves accurate interpretation, especially when it is connected to sensitive questions about sexuality, fertility, or personal guilt.
Onan’s story is short, but it is not simple. It includes a widow’s vulnerability, a family’s inheritance, a brother’s refusal, a father’s failure, and a later reversal in which Tamar’s persistence exposes Judah’s hypocrisy. The Lord’s judgment on Onan is presented within that web of relationships.
The most direct answer to “What did Onan do wrong?” is therefore this: he deliberately prevented the child he was obligated to father for his deceased brother while continuing to use Tamar sexually. The passage may inform broader discussions of sexual ethics, but its primary meaning comes from that concrete act of disobedience, exploitation, and self-protection.
Frequently asked questions
Was Onan punished simply because he ejaculated outside Tamar?
The passage describes the physical act, but it also gives Onan’s reason: he did not want the offspring to be counted as his brother’s. His punishment is presented in the context of refusing a family duty and exploiting Tamar, not as an isolated statement about ejaculation apart from motive, relationship, or obligation.
Is “onanism” a biblical word?
No. “Onanism” is a later term derived from Onan’s name, commonly used in discussions of masturbation or withdrawal. Genesis 38 itself does not use that word and does not describe masturbation. The later term reflects a history of interpretation rather than the precise subject of the original narrative.
What was Tamar’s position after Er died?
Tamar was a widow within Judah’s family and depended on that family to provide a recognized future. Judah directed Onan to fulfill a duty connected with his deceased brother, then failed to give Tamar his third son, Shelah. Her lack of security and Judah’s broken promise are essential parts of the chapter’s conflict.
Does Genesis 38 prohibit all forms of birth control?
The chapter does not discuss birth control as a general category. Onan’s act involved a specific obligation to provide offspring for his deceased brother and a motive connected to inheritance and family status. Religious traditions may draw broader conclusions, but those conclusions require additional ethical or theological reasoning beyond this passage alone.











Leave a Reply