In this article
Texas has a three-year close-age affirmative defense for certain sexual-assault allegations involving a person under seventeen. The gap is only one requirement, and the defense applies to a specified part of a specified offense. It is not a general rule that every sexual act, image, or communication is lawful whenever two people are within three years of each other.
The most useful first question is therefore not “How big is our age gap?” It is “Which conduct and which statute are we discussing?” Texas Penal Code §§22.011 and 21.11 both contain three-year language, but their requirements differ. Other provisions use different ages, different gaps, or different kinds of defenses.
The starting point: §22.011
Section 22.011 distinguishes sexual assault without consent from its age-based child provisions. Subsection (a)(2) describes specified sexual acts involving a child, and the relevant child definition is a person younger than seventeen. Subsection (e) provides affirmative defenses to prosecution under that child subsection.
The close-age route requires that the accused person be no more than three years older than the younger person. The younger person must have been at least fourteen at the time. Because the underlying child provision concerns someone under seventeen, the fourteen-through-sixteen bracket is the relevant overlap for this defense.
There are additional record-related requirements. The subsection addresses lifetime registration and a reportable conviction or adjudication under §22.011, using alternative language that should be read exactly. It also excludes specified prohibited relationships by reference to §§25.01 and 25.02. Those cross-references concern bigamy-related circumstances and prohibited sexual conduct involving certain relatives.
A sound eligibility assessment checks all those conditions. Someone who meets the age gap cannot simply skip the criminal-history or prohibited-relationship language. Conversely, a summary should not quietly turn the statute's alternatives into additional cumulative requirements. Small words such as “and” and “or” determine how the conditions fit together.
Why actual consent remains essential
The close-age defense in §22.011(e) is directed to subsection (a)(2). It does not authorize sexual assault without consent under subsection (a)(1). If force, threats, unconsciousness, or another basis of lack of consent is involved, being close in age does not resolve that allegation.
This explains why everyday descriptions of the defense often refer to consensual peer relationships. But an article should still identify the statutory structure rather than invent wording inside a subsection. The defense's scope and the independent prohibition on nonconsensual conduct together explain the limit.
A dating label is not evidence of agreement to every act. Neither is earlier sexual activity or the fact that the people have exchanged affectionate messages. The question concerns the particular event. A person can decline, stop, or change a boundary without losing that choice because the relationship is long-standing.

Exact birthdays matter most near the boundary
Take two people born August 10, 2007, and August 10, 2010. Their birth dates are exactly three years apart. If the younger person instead was born August 11, 2010, the difference exceeds three years. Both pairs might casually be described as nineteen and sixteen, but the statutory age-gap question has a different answer.
Whole-number subtraction is unreliable because an age such as nineteen represents an entire year of possible birthdays. The defense concerns the actual difference between the people, not the difference between the numbers they currently give when asked their ages.
By contrast, a genuine eighteen-and-sixteen pairing is necessarily less than three years apart. That makes the age-gap component easier to assess, but it does not establish the rest of the defense. The exact dates are still useful for confirming the ages at an earlier incident and tracking later birthdays.
A birthday changes a person's age, not the distance between two birth dates. Someone cannot reduce a three-year-and-one-day gap by waiting until both people have had their birthdays. Waiting can change whether the younger person remains below a relevant age threshold, which is a different legal question.
Indecency with a child has a different defense
Section 21.11 covers specified sexual contact and exposure involving someone under seventeen. Its close-age provision is an affirmative defense under subsection (b). The statutory text includes a maximum three-year gap, opposite-sex wording, no duress, force, or threat at the time, and its own registration or reportable-history conditions.
The opposite-sex wording is an important difference from the close-age text in §22.011. A general statement that “Texas protects all couples within three years” leaves that distinction out. Anyone affected by that language should obtain advice about the current statute and applicable constitutional or case-law issues; an overview should not silently rewrite it.
The conduct definitions differ too. Section 21.11 defines sexual contact to include certain touching through clothing when accompanied by the specified sexual intent. It is therefore inaccurate to assume that every allegation short of intercourse falls outside age-based criminal law.
The practical lesson is to identify the charge before choosing a defense. Two allegations arising from the same meeting can require different statutory analysis. A condition that satisfies §22.011(e) should not be imported into §21.11(b), and a restriction in one provision should not automatically be asserted as part of another.
“Affirmative defense” has a procedural meaning
A defense can prevent a conviction when its requirements are established, but the phrase does not promise that police will never investigate or that a charge cannot be filed. Disputed facts may have to be resolved within the criminal process. A person's own belief that the defense applies is not a court determination.
Texas Penal Code §2.04 explains affirmative defenses. The prosecution need not negate an affirmative defense in the charging instrument. If the issue is submitted to a jury, the defendant must prove it by a preponderance of the evidence. That differs from the state's burden to prove the offense beyond a reasonable doubt.
This distinction is not a reason to presume guilt. It is a reason to take a potential defense seriously enough to document the relevant facts and get advice. Birth records, the date alleged, and the particular statutory subsection may matter more than assurances from friends that similar couples have never had trouble.
Digital conduct needs its own analysis
Texas has separate provisions addressing online solicitation, sexual performance by a child, and certain electronic visual material. Their definitions and defenses are not interchangeable. The Texas State Law Library's age-of-consent overview usefully lists several of them side by side precisely because there is no single rule for all sexual activity.
Some of those provisions use an under-eighteen definition or a two-year condition. A person should not carry the three-year number from §22.011 into an image-related situation. Even a state defense that addresses one charge would not automatically resolve a different state charge or a federal offense.
Federal law uses an under-eighteen definition for minors in its sexual-image provisions. The physical-consent rules of a state do not authorize production or distribution of prohibited images. When a device already contains questionable material, seek advice about handling it without forwarding copies to friends, relatives, or an online forum.

School status and parental permission do not replace the elements
Attending the same school may explain how people met, but it is not an extra year added to the three-year defense in §22.011(e). Nor does a parent's approval remove a statutory requirement. An agreement between families cannot change the age bracket or create a defense for conduct the legislature placed elsewhere.
A separate educator-student allegation needs its own review under §21.12. Employment, certification, enrollment, and the actual relationship can matter. An eighteen-year-old is not necessarily situated like another student merely because both people are young. Conversely, a person's school association should not be guessed from age alone.
School discipline and criminal liability can also differ. A school may investigate conduct under its own rules while authorities consider whether an offense occurred. A conclusion about one process should not be represented as a guaranteed result in the other.
How to ask a question that can be answered
Instead of asking whether “Romeo and Juliet applies,” identify the state, the alleged act, both birth dates, and the event date. If paperwork exists, provide the section and subsection it names. Say whether the question concerns a future boundary, an investigation, an existing charge, or a registration obligation.
Those distinctions avoid wasted effort. A registration question may involve separate provisions in the Code of Criminal Procedure. A complaint about nonconsensual conduct requires attention to consent. A digital allegation may have little to do with the three-year defense discussed here.
If the younger person has since turned seventeen, distinguish earlier events from later ones. The birthday may change the age-based analysis going forward without resolving the earlier allegation. Also identify any contact restriction or court order before assuming that an otherwise favorable age analysis permits communication.
The Texas rule can provide a meaningful defense in qualifying cases. Describing its limits accurately makes it more useful, not less: readers can see which facts establish eligibility and which questions require another statute. The Texas eighteen-and-sixteen guide applies that approach to a common age pairing.
Official sources and further reading
- Texas Penal Code §22.011 — sexual assault and affirmative defenses
- Texas Penal Code §21.11 — indecency with a child
- Texas Penal Code §2.04 — affirmative defenses
- Texas State Law Library — age-of-consent overview
- Texas Legislature — enacted amendment to §22.011(e)
