
Frisco, Texas | Sex Crimes Defense
Age Limits in Texas Sex Crime Statutes: What the Penal Code Covers
Barbieri Law Firm, an all-women criminal defense firm in Frisco, explains how the ages written into Texas sex crime statutes can change the charge and the defense. Free, confidential initial consultation.
By Heather Barbieri · Published November 8, 2026
Texas Age of Consent: What the Penal Code Says
Texas does not have one “age of consent” rule in its Penal Code. The age that matters most for sexual offenses against a child is 17. Under the main child sexual offense statutes, a child is a person younger than 17. Some other statutes, such as those on sexual images, use 18 instead.
If you searched “What is the legal age of consent in Texas according to the Texas Penal Code?”, the short answer is that the age depends on the statute and the conduct.

The short answer: Texas sets no single age in the Penal Code
No single age of consent appears in the Penal Code. Each offense sets its own age line. “Age of consent” is everyday shorthand, not a single rule written into the statutes linked here.
Texas Penal Code § 22.011 defines a “child” as a person younger than 17 years of age. The indecency statute uses the same under-17 line.
The age line is 18 for sexual performances and images. Texas Penal Code § 43.25 defines sexual performance to include sexual conduct by a child younger than 18. Texas Penal Code § 43.26 uses the same under-18 line for child pornography.
So when people ask about the age of consent, they usually mean one of two things. The first is sexual contact with a child. The second is images or performances.
Sexual conduct with a child under 17 under Texas law
For sexual assault of a child, Texas law defines a child as a person younger than 17 years of age. Possessing or viewing visual material that depicts a child engaged in sexual conduct is a different offense, covered by Penal Code § 43.26, not § 22.011.
Section 43.26 also requires that the person knew or should have known the depiction is of a child younger than 18 years of age at the time the image of the child was made. Penal Code § 43.26 grades these offenses by subsection. An offense under Subsection (a-1) is a third-degree felony under Subsection (c-1), which raises it to a second- or first-degree felony when specified facts are shown at trial. Subsection (a) of § 43.26 only defines terms. The offenses are in Subsections (a-1) and (a-2) and in the promotion provisions. Under Texas Penal Code § 43.26, some punishment tiers are a felony of the first degree punishable by imprisonment in the Texas Department of Criminal Justice for life or for any term of not more than 99 years or less than 25 years if it is shown on the trial of the offense that the conditions stated in the statute are met.
Consent matters too. The circumstances in which conduct is without consent are listed in Penal Code § 22.011(b), not in § 43.26. Under Texas Penal Code § 22.011, one circumstance in which the law treats a sexual assault as being without the other person’s consent is when the actor knows that the other person is intoxicated or impaired by any substance to the extent that the other person is incapable of consenting. The National Sexual Violence Resource Center says alcohol does not excuse sexual violence.
Certain facts can make the charge aggravated sexual assault under Texas Penal Code § 22.021. One such fact is a victim younger than 14. That offense is a first-degree felony. If the victim is younger than 10, the minimum prison term is 25 years.
Indecency with a child under § 21.11 and what counts as sexual contact
Indecency with a child falls under Texas Penal Code § 21.11, which also uses the under-17 line. The statute does not require sexual intercourse. It covers certain touching and exposure, done with intent to arouse or gratify sexual desire.
“Sexual contact” means touching a child’s anus, breast, or genitals, including through clothing, if committed with the intent to arouse or gratify the sexual desire of any person. It also means touching any part of a child’s body with a person’s anus, breast, or genitals, if committed with the intent to arouse or gratify the sexual desire of any person. Touching through clothing still counts.
The other form is exposure. A person commits this offense by exposing his or her anus or genitals while knowing a child is present. A person also commits it by causing a child to expose the child’s anus or genitals.
Grading differs. Sexual contact is a felony of the second degree. Exposure is a felony of the third degree. Both fall under the same statute.
Sexual assault and indecency are different statutes with different conduct. Both use the under-17 line, so the same set of facts can raise questions under either one.
The close-in-age affirmative defense
Texas law provides an affirmative defense to indecency with a child if the actor was not more than three years older than the child and of the opposite sex, did not use duress, force, or a threat against the child, and meets certain other conditions. It also requires no duress, force, or threat, and that the actor met the registration conditions the statute lists.
Sexual assault of a child also has its own affirmative defense under Texas law, which is tied to an age gap and other conditions.
Whether any defense fits depends on the facts and the charge.
Ages 17 and 18: images, messages, and the separate child definition
For sexual images and performances, Texas uses a child younger than 18. Under Texas Penal Code § 43.26, the person must know or should have known that the depicted child is younger than 18 when the image was made.
The statute covers visual material made using a child’s image. The current text, amended in 2025, also covers computer-generated material made with an artificial intelligence application.
A 17-year-old falls outside the under-17 contact statutes. Under Texas Penal Code § 43.25, “sexual performance” means any performance or part thereof that includes sexual conduct by a child younger than 18 years of age.
The offense covers producing, directing, or promoting a performance that includes sexual conduct by a child younger than 18 years of age, when the person knows the character and content of the material. Texas Penal Code § 43.25 reads: “(e) An offense under Subsection (d) is a felony of the third degree, except that the offense is a felony of the second degree if the victim is younger than 14 years of age at the time the offense is committed, regardless of whether the actor knows the age of the victim at the time of the offense.” So the question is what a person had, sent, or shared. A police notice about messages or images should be reviewed carefully.
Not sure what your next step is?
Talk it through with our team — the first consultation is free, confidential, and carries no obligation.
Common misreadings: section numbers and dating
Stick to the section text itself, not to a number that sounds similar.
Dating raises a separate question. Can a 20-year-old date a 17-year-old? The contact statutes and the image statutes also use different ages.

If you are researching this for a loved one
Most people who read this page have a specific worry. Maybe a teen mentioned a relationship. Maybe a message surfaced, or a notice from police or a school arrived.
The ages, the conduct, the intent, and any defense all matter. Each situation has its own facts.
What is the legal age of consent in Texas according to the Texas Penal Code?
Under the main child sexual offense statutes, a child is younger than 17. The child image and performance statutes use younger than 18.
What is the Romeo and Juliet law in Texas?
Under § 21.11, the offense applies to a child younger than 17. It is an affirmative defense that the actor was not more than three years older than the victim and of the opposite sex, along with other conditions in the statute.
Does alcohol affect consent in Texas?
Yes. Under § 22.011, a sexual assault under Subsection (a)(1) is without the consent of the other person if the actor knows that the other person is intoxicated or impaired by any substance to the extent that the other person is incapable of consenting.
When a loved one is facing a charge involving a child, a partner, or a family member, the situation can feel overwhelming. Our firm can review the facts and explain the options. Our team at Barbieri Law Firm offers a free, confidential initial consultation, with no obligation to continue. Call (972) 424-1902 or send your case details through the contact page.
Attorney responsible for this site: Heather Barbieri, Barbieri Law Firm, Frisco, Texas.
How we approach an age-based charge
We start with the exact statute
Texas sex crime statutes set different ages for different offenses. We review the precise section charged, not a general summary of the law.
We check the age on the date of the conduct
The age of each person involved at the time of the alleged conduct is central to how a charge is analyzed. We review the dates and records carefully.
We review every element of the charge
Age is one part of a case. We examine the evidence, the accusations and the surrounding facts to explain where the case stands.
We explain your options in plain language
You will get a clear explanation of the charge, the possible paths forward and what each one would involve.
Important: age is only one piece of a case
Questions to bring to your consultation
Which statute is charged?
Bring any paperwork that identifies the offense, the code section or the charging language.
What were the ages on the dates involved?
Write down dates, birthdays and any records that show the age of each person involved.
What evidence exists?
Texts, messages, school or employment records and police reports can all matter to how a case is reviewed.
What are my options?
We will walk through the options that fit your facts and explain what each one would require.
Talk with our team about your case
Related practice areas
- Online Sex Crimes Defense Lawyer | Collin County & Texas
- Is sexting illegal in Texas?
- Can an Online Sex Crime Charge Be Dismissed in Texas?
Request a Consultation
Fill out the short form and we will take it from there.

