Pennsylvania Prohibited Consensual Sexual Activity Laws
By FindLaw Staff | Legally reviewed by Nicole Prebeck, Esq. | Last reviewed January 24, 2023
This article has been written and reviewed for legal accuracy, clarity, and style by FindLaw’s team of legal writers and attorneys and in accordance with our editorial standards.
The last updated date refers to the last time this article was reviewed by FindLaw or one of our contributing authors. We make every effort to keep our articles updated. For information regarding a specific legal issue affecting you, please contact an attorney in your area.
For the most part, consensual sexual activity is none of the government's business. Sexual assault, rape, and other such sex crimes all involve non-consensual sex and are thus considered serious violations. However, there are some situations when consensual sex crosses the line and either endangers another's well-being or disrupts the public.
This article provides a brief overview of Pennsylvania laws prohibiting certain consensual and non-consensual sexual acts. Keep in mind that "consent" is a legal term defined by state criminal law. For example, it is impossible for anyone under the age of 16 to consent to sexual activity in Pennsylvania.
History of Consensual Sexual Activity Laws in Pennsylvania
There are voluntary sexual activities that are regulated under state consensual sexual activity laws in all jurisdictions. Most of the time, these guidelines reflect the social and political norms of the particular state at the time the laws were created and thus are subject to change over time. While any kind of non-consensual sex is a crime, most states at one time enforced anti-sodomy laws. These laws have since been struck down in 2003 by Lawrence v. Texas since they unconstitutionally singled-out same-sex couples.
While Pennsylvania has removed its statute outlawing sodomy, many states still have anti-sodomy laws on the books (even though they remain unenforceable). At one time in Pennsylvania's history, those found guilty of sodomy -- primarily gay men -- were sentenced to death.
Prohibited Consensual Sexual Activity: At a Glance
The following table summarizes the key elements of Pennsylvania's prohibited consensual sexual activity laws, with links to additional resources.
Sodomy Laws Applicable to |
There are no longer anti-sodomy laws in Pennsylvania. |
---|---|
Penalty for Sodomy |
- |
HIV Exposure and Compelled Testing for Offenders |
Under 35 Pa. Stat. § 7607, the court can order a defendant to undergo HIV or other STI testing, or the disclosure of the results of former tests, in certain situations. |
Other Crimes Relating to Consensual Sex Acts |
|
Other Crimes Relating to Non-consensual Sex Acts |
|
Note: State laws are always subject to change through the passage of new legislation, rulings in the higher courts (including federal decisions), ballot initiatives, and other means. While we strive to provide the most current information available, please consult an attorney or conduct your own legal research to verify the state law(s) you are researching.
Research the Law
Consider reviewing the following resources for more information about Pennsylvania laws, including those related to sexual activity:
- At Pennsylvania Law, you'll find links to all laws within the states, including those related to sexual activity.
- At Official State Codes, you'll find links to the official online statutes (laws) in all 50 states and the District of Columbia.
Pennsylvania Prohibited Consensual Sexual Activity Laws: Related Resources
Consider reviewing the following resources, as well, for more information about laws and legal issues related to sexuality:
Charged With a Sex Crime In Pennsylvania? An Attorney Can Help
There's a time and a place for everything, and in Pennsylvania, as in most other states, certain matters are meant to be conducted in private. So if you've been charged with public lewdness, indecency, or a related crime, you will want to be prepared for your trial.
Get help today from a Pennsylvania defense attorney.
Can I Solve This on My Own or Do I Need an Attorney?
- Complex cases usually require a lawyer
- Experienced lawyers can seek to reduce or eliminate criminal penalties
- Sexual assaults & sex crime convictions often have long sentences and lifelong consequences
Get tailored legal advice and ask a lawyer questions. Many attorneys offer free consultations.
Stay up-to-date with how the law affects your life

Learn more about FindLaw’s newsletters, including our terms of use and privacy policy.