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

# Va. Code Ann. § 18.2-279 — Discharging firearms or missiles within or at building or dwelling house; penalty

- **Citation**: Va. Code Ann. § 18.2-279
- **Node Type**: section
- **Jurisdiction**: Virginia (state)
- **Code Body**: Code of Virginia (Aug. 2026 snapshot) (Va. Code Ann.)
- **Official Source**: [https://law.lis.virginia.gov/vacode/18.2-279/](https://law.lis.virginia.gov/vacode/18.2-279/)
- **Canonical URL**: [https://corpuslaw.us/codes/virginia/title-18-2/chapter-7/section-18-2-279](https://corpuslaw.us/codes/virginia/title-18-2/chapter-7/section-18-2-279)
- **Semantic URL**: [https://corpuslaw.us/codes/virginia/title-18-2/chapter-7/section-18-2-279](https://corpuslaw.us/codes/virginia/title-18-2/chapter-7/section-18-2-279)

## Hierarchy

Title 18.2 > Chapter 7

## Text

If any person maliciously discharges a firearm within any building when occupied by one or more persons in such a manner as to endanger the life or lives of such person or persons, or maliciously shoots at, or maliciously throws any missile at or against any dwelling house or other building when occupied by one or more persons, whereby the life or lives of any such person or persons may be put in peril, the person so offending is guilty of a Class 4 felony. In the event of the death of any person, resulting from such malicious shooting or throwing, the person so offending is guilty of murder in the second degree. However, if the homicide is willful, deliberate and premeditated, he is guilty of murder in the first degree.

If any such act be done unlawfully, but not maliciously, the person so offending is guilty of a Class 6 felony; and, in the event of the death of any person resulting from such unlawful shooting or throwing, the person so offending is guilty of involuntary manslaughter. If any person willfully discharges a firearm within or shoots at any school building whether occupied or not, he is guilty of a Class 4 felony.

Code 1950, §§ 18.1-66, 18.1-152; 1960, c. 358; 1975, cc. 14, 15; 1992, c. 738; 2005, c. 143 .
