> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# N.Y. Penal Law § 40.05 — Entrapment

- **Citation**: N.Y. Penal Law § 40.05
- **Node Type**: section
- **Jurisdiction**: New York (state)
- **Code Body**: Laws of New York (NY Senate Open Legislation, as published 2026-10-26) (N.Y. Laws)
- **Official Source**: [https://www.nysenate.gov/legislation/laws/PEN/40.05](https://www.nysenate.gov/legislation/laws/PEN/40.05)
- **Canonical URL**: [https://corpuslaw.us/codes/new-york/penal-law/article-40/section-40-05](https://corpuslaw.us/codes/new-york/penal-law/article-40/section-40-05)
- **Semantic URL**: [https://corpuslaw.us/codes/new-york/penal-law/article-40/section-40-05](https://corpuslaw.us/codes/new-york/penal-law/article-40/section-40-05)

## Hierarchy

Division PEN — Penal Law > Article 40 — OTHER DEFENSES INVOLVING LACK OF CULPABILITY

## Text

§ 40.05.

Entrapment.

In any prosecution for an offense, it is an affirmative defense that the defendant engaged in the proscribed conduct because he was induced or encouraged to do so by a public servant, or by a person acting in cooperation with a public servant, seeking to obtain evidence against him for purpose of criminal prosecution, and when the methods used to obtain such evidence were such as to create a substantial risk that the offense would be committed by a person not otherwise disposed to commit it. Inducement or encouragement to commit an offense means active inducement or encouragement. Conduct merely affording a person an opportunity to commit an offense does not constitute entrapment.
