York County, VA Accessory Structures: Shed & Carport Rules (2026)
Shed permit rules in York County, VA, also referred to as storage shed, backyard shed, or accessory building regulations, set size limits, setbacks, and when a building permit is required.
Key Facts
- Containerized cargo units
- Prohibited outright
- Front setback default
- Behind principal building façade, or 50 ft max
- Side/rear setback
- 5 ft minimum
- Height cap
- District max or house height, whichever less
- Footprint cap
- May not exceed house's own footprint
- Portable storage box limit
- 30 consecutive days, 1 unit at a time
Summary
York County, Virginia allows residential carports, garages and utility sheds as accessory structures, but bans containerized cargo units outright and holds every shed to setback, height and footprint limits tied to the main house.
Carports, garages, utility sheds, and similar storage facilities customarily associated with residential living. The use of containerized cargo units is prohibited. ... With the exception of statues, arbors, trellises, flagpoles, fences, walls or roadside stands, accessory buildings or structures shall not be located closer to the front lot line than the principal building façade provided, however, that where the setback of the principal building exceeds fifty feet (50'), accessory buildings and structures shall be subject only to a fifty-foot (50') minimum setback requirement. ... Accessory buildings and structures shall observe minimum side and rear yard setbacks of five feet (5') except where the provisions of this chapter specifically require otherwise ... no accessory building or structure shall exceed the maximum height limitation established for the district or the height of the structure to which it is accessory, whichever is less ... the building footprint (i.e., lot coverage) of a structure accessory to a residential use shall not exceed the area of the building footprint of the principal residential structure.
Full Breakdown
Section 24.1-271(c) permits carports, garages, utility sheds and similar storage facilities customarily associated with residential living, while flatly prohibiting the use of containerized cargo units; portable on-demand storage units get a narrower administrative-permit path capped at thirty consecutive days per placement. Location and size are governed by § 24.1-273: an accessory building generally cannot sit closer to the front lot line than the principal building's façade, though if the house's own front setback exceeds fifty feet, the shed only needs to meet a fifty-foot minimum.
Side and rear yard setbacks default to five feet under § 24.1-273(d), except that fences and walls have no side or rear setback at all. Height is capped at the district's maximum or the height of the principal structure, whichever is less, under § 24.1-273(g), though an accessory building serving a single-story house may reach 1.25 times that height if it sits at least twenty feet from the house with a ten-foot side/rear setback. Section 24.1-273(h) further caps the shed's building footprint at no more than the footprint of the principal residential structure itself, except for barns tied to a bona fide agricultural operation. Planning and Development Services' zoning administrator reviews compliance at permit issuance.
Violations & Fines
An oversized, misplaced or containerized-cargo-unit shed built in violation of § 24.1-270 et seq. draws a civil penalty under § 24.1-109(c)(3)(b)(1) of $200 for the first summons and $500 for each additional one, capped at $5,000 within twelve months, after which the county may pursue criminal misdemeanor charges with fines up to $1,000 per offense.
Frequently Asked Questions
Can I put a shipping container in my backyard as a shed in York County?
How close to my property line can I build a shed?
How big can my shed be compared to my house?
Sources & Official References
Other rules in York County
How York County compares: Shed Permit Requirements by City·Compare York County to another location·View the Virginia accessory structures overview
See something wrong?
Help us keep this page accurate. If you notice an error or outdated information, let us know.