Can an Undercover Cop Legally Have Sex With You?

Whether an undercover cop can legally have sex with you depends on your status at the time. If you are under arrest, in custody, in detention, or under supervision, a federal officer who has sex with you commits a federal crime carrying up to 15 years in prison, and most states impose parallel prohibitions on their own officers. If you are a target of an undercover operation but not in custody, the criminal law is far less clear, and older doctrines about consent and deception leave a real gap. Every major law enforcement agency, however, forbids the conduct internally regardless of what the criminal statutes say.

The Federal Rule When You’re in Custody

Since October 1, 2022, 18 U.S.C. § 2243(c) has made it a federal crime for anyone acting as a federal law enforcement officer to knowingly engage in a sexual act with a person who is under arrest, under supervision, in detention, or in federal custody. The penalty is up to 15 years in prison, a fine, or both. Consent is not a defense.1Office of the Law Revision Counsel. 18 U.S. Code 2243 – Sexual Abuse of a Minor, a Ward, or an Individual in Federal Custody

That consent point matters. Before the statute took effect, there was no specific federal law criminalizing sexual contact between a federal agent and someone in their custody, and some agents exploited the void.2ABC10. Documents: Federal Agents Engaged in Sex Acts with Victims The statute now forecloses the argument that a person in custody agreed.

State Laws Follow the Same Principle

A growing majority of states criminalize sexual contact between a law enforcement officer and someone in the officer’s custody, under arrest, or being detained. The statutes vary in scope, and some reach further to cover people under active investigation or on probation, but they share a common premise: a person who is not free to leave cannot meaningfully consent to sex with the person controlling their freedom.

This is a recent shift. As of 2017 several states had no explicit prohibition, and some law enforcement agencies opposed closing that gap. High-profile cases in which officers claimed encounters were consensual despite the obvious power imbalance drove the wave of legislation that followed. In most states today, an officer who has sex with someone in custody faces felony charges regardless of whether the person said yes.

The Undercover Gray Area

The harder scenario is the classic undercover one. An officer operating under a false identity has sex with a target who has no idea they are dealing with law enforcement. The target is not in custody, not under arrest, and not being detained. They are a free person who happens to be the subject of an investigation. Section 2243(c) and most state custody-based statutes don’t reach that situation, and older common-law rules on consent take over.

Courts have long divided deception in sexual encounters into two categories. The first is deception about the nature of the act itself, such as a doctor convincing a patient that penetration is a medical procedure. That kind of deception destroys consent, and every jurisdiction treats the resulting act as a sexual assault. The second is deception about who your partner is or why they want to have sex. Someone who consents to intercourse knowing it is intercourse, but who would not have consented if they knew their partner was a police officer, falls into this second category.

Most jurisdictions do not treat that second type of deception as negating consent. The reasoning, which many people find unsatisfying, is that the person understood what they were physically agreeing to even if they were deceived about their partner’s identity or motives. Scholars and advocates have argued that lying about being a police officer is qualitatively different from lying about your job on a date, but courts have been slow to adopt that view. In most places, an undercover officer who has sex with a willing target under a false identity has not, on the face of current law, committed sexual assault.

Agency Policy Fills Most of the Gap

Where the criminal law is silent, internal policy usually isn’t. The FBI and DEA both maintain explicit policies prohibiting sexual misconduct by agents, and state and local departments overwhelmingly have similar rules.3Department of Justice Office of the Inspector General. Handling of Sexual Harassment and Misconduct Allegations Senior officials have said publicly and repeatedly that sexual contact is not an authorized investigative technique.

The reasons are practical as well as ethical. An officer who becomes sexually involved with a target creates blackmail exposure, injects emotional bias into the investigation, and generates the kind of credibility problems defense lawyers build cases around. Departments also face significant civil liability the moment an officer crosses that line. The internal rule is clear even where the criminal rule is not: don’t do it.

Policy and practice don’t always meet. The DOJ Inspector General found that federal law enforcement components were required to refer all non-frivolous allegations of serious misconduct to the Office of the Inspector General, but enforcement was inconsistent and some reports fell through the cracks.4Department of Justice Office of the Inspector General. The Handling of Sexual Harassment and Misconduct Allegations by the Department’s Law Enforcement Components

What This Means for Your Criminal Case

If you are facing charges from an investigation in which an officer had a sexual relationship with you, the strongest available argument is what courts call outrageous government conduct. It is not a defense in the ordinary sense. It is a claim that the government’s behavior was so fundamentally unfair that prosecuting you would violate the Due Process Clause, and the indictment should be dismissed entirely.5United States Department of Justice Archives. Criminal Resource Manual 648 – Entrapment: Outrageous Government Conduct

The bar is high. The Supreme Court has said government conduct must be “shocking to the universal sense of justice,” and no federal appeals court has held that simply using an undercover agent or informant, without more, creates a due process violation. Sexual relationships are one of the narrow areas where courts have been willing to look closely. Federal appeals courts have developed a three-part test asking whether the government intended or knew about the sexual relationship and let it continue, whether the agent initiated or continued it to advance the investigation, and whether the relationship overlapped with and connected to the conduct charged in the indictment. Meeting all three is rare. Courts have rejected the claim even where a single sexual encounter occurred, reasoning that one incident alone did not clear the bar.

This is distinct from entrapment. Entrapment asks whether you were predisposed to commit the crime, and whether the government talked you into something you otherwise would not have done. Outrageous government conduct does not turn on your predisposition. Even a clearly guilty defendant can argue that the government’s methods were so extreme that the prosecution should be barred.5United States Department of Justice Archives. Criminal Resource Manual 648 – Entrapment: Outrageous Government Conduct

What Can Happen to the Officer

An officer who has sex with someone during an investigation faces consequences on three tracks, and the administrative one usually arrives first. Internal affairs will investigate, and outcomes range from suspension to termination. Violating a direct policy prohibition on sexual contact is about as clear-cut as misconduct gets, and departments have strong reasons to act decisively.

Beyond losing the job at one agency, an officer can be permanently removed from law enforcement through decertification. State Peace Officer Standards and Training (POST) commissions can revoke an officer’s certification for sexual misconduct, barring them from working as a police officer anywhere in that state. The federal government now maintains the National Law Enforcement Accountability Database, which tracked 4,790 misconduct incidents involving over 4,000 federal officers between 2018 and 2023.6Bureau of Justice Statistics. National Law Enforcement Accountability Database, 2018-2023

Civil liability is the second track. A target of the investigation can sue the officer and potentially the employing agency. Federal civil rights claims under 42 U.S.C. § 1983 allow anyone whose constitutional rights were violated by someone acting under government authority to seek damages, including for emotional distress and psychological harm.7Office of the Law Revision Counsel. 42 U.S. Code 1983 – Civil Action for Deprivation of Rights Filing deadlines vary widely by jurisdiction, so talking to an attorney promptly matters. Municipalities have paid substantial settlements in these cases.

Criminal prosecution is the third. For federal officers, § 2243(c) now provides a direct path when the target was in custody, under arrest, or under supervision, with penalties up to 15 years.1Office of the Law Revision Counsel. 18 U.S. Code 2243 – Sexual Abuse of a Minor, a Ward, or an Individual in Federal Custody For state and local officers, parallel state statutes apply in most jurisdictions. Prosecution is less common in the pure undercover scenario where the target was not in custody, because the consent-and-deception framework makes charges harder to bring. Where a custody or detention relationship existed, prosecutors now have clear statutory tools.

How to File a Complaint

If you believe an undercover officer engaged in sexual misconduct, you have several ways to report it. For federal agents, all non-frivolous allegations of serious misconduct must be referred to the DOJ Office of the Inspector General, and federal law enforcement components are required to make those referrals.4Department of Justice Office of the Inspector General. The Handling of Sexual Harassment and Misconduct Allegations by the Department’s Law Enforcement Components

For state and local officers, the process typically starts with the department’s internal affairs division. Federal guidelines recommend that agencies accept complaints in any form, whether oral, written, or electronic, and at any facility open to the public. Complaints can often also be filed through a city clerk, ombudsman, or similar local office. The process should not require you to swear an oath or submit to a warrant check, and agencies are expected to provide written acknowledgment with a reference number and investigator contact information.8U.S. Department of Justice, Office of Community Oriented Policing Services (COPS Office). Standards and Guidelines for Internal Affairs: Recommendations from a Community of Practice

Filing an internal complaint doesn’t prevent you from also pursuing a civil lawsuit or hiring a criminal defense attorney if you are facing charges tied to the investigation. Running both at once is common, since the internal investigation record can become evidence in either proceeding.