> 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).

# 18 Pa.C.S. § 304 — Ignorance or mistake.

- **Citation**: 18 Pa.C.S. § 304
- **Node Type**: section
- **Jurisdiction**: Pennsylvania (state)
- **Code Body**: Pennsylvania Consolidated Statutes (Aug. 2026 snapshot) (Pa.C.S.)
- **Official Source**: [https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=18](https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=18)
- **Canonical URL**: [https://corpuslaw.us/codes/pennsylvania/title-18/chapter-3/section-304](https://corpuslaw.us/codes/pennsylvania/title-18/chapter-3/section-304)
- **Semantic URL**: [https://corpuslaw.us/codes/pennsylvania/title-18/chapter-3/section-304](https://corpuslaw.us/codes/pennsylvania/title-18/chapter-3/section-304)

## Hierarchy

Title 18 > Chapter 3

## Text

Ignorance or mistake as to a matter of fact, for which there is reasonable explanation or excuse, is a defense if:

(1) the ignorance or mistake negatives the intent, knowledge, belief, recklessness, or negligence required to establish a material element of the offense; or

(2) the law provides that the state of mind established by such ignorance or mistake constitutes a defense.
