PermitNotebook / Guides

Guide

Do You Need a Permit for a Pole Barn? The Farm Building Exemption, State by State

A pole barn used as a garage or workshop is an accessory building and needs a permit above your office's size line. A true farm building can be exempt from the building code in Pennsylvania, Virginia, North Carolina and South Carolina and from county zoning in Iowa, with a filing required in some states, no building code exemption for living space, and the wiring possibly still on a permit.

The barn’s use decides it. A pole barn built to park cars, store a boat or run a workshop on a house lot is an accessory building, and it needs a building permit wherever the office’s size line says so; the offices in our data that name pole barns put them on the permit list with sheds and garages. A pole barn that is a genuine farm building is a different matter: several states take farm buildings out of the building code or out of county zoning altogether. Those exemptions turn on how the building is used, sometimes require a form before you build, do not extend the building code exemption to living space, and may leave the wiring on a permit.

Garage, shop or storage on a house lot
Accessory building permit above the local size line
Farm building, building code
Exempt in PA, VA, NC (outside towns), SC (after an affidavit), OH (on the zoning certificate)
Farm building, county zoning
Exempt in Iowa, with no application or feeIowa Code 335.2
Electrical work
May still need a permitLoudoun County, VA; PA fairground barns
Flood plain
Flood rules still applyVA, SC, Iowa
Fee we read
$165 zoning, or $330 with a building permitLoudoun County, VA, agricultural structures

Before you order a kit, put the intended use in writing to your county’s zoning and building offices:

I plan a [width] by [length] post-frame building at [address], on [acres] acres that I [farm / lease for farming]. It will be used for [hay and equipment storage / livestock / …], with [no / some] electrical service. Does it qualify as a farm or agricultural building here, what must I file before building, and which permits still apply?

Each state defines a farm building its own way

Every exemption below is written around the word “farm” or “agricultural”, and none of them is about the construction method. A post-frame building on a working farm can qualify; the same building behind a house in a subdivision does not.

  • Pennsylvania excludes “Any agricultural building” from its construction code (Act 45, section 104(b)(4)), defined as a structure used to store “farm implements, hay, feed, grain or other agricultural or horticultural products or to house poultry, livestock or other farm animals,” which “shall not include habitable space or spaces in which agricultural products are processed, treated or packaged.”
  • Virginia exempts “Farm buildings and structures” from the statewide building code (USBC 102.3, item 9), meaning a building “not used for residential purposes, located on property where farming operations take place,” and used primarily for farm purposes such as storing farm products, sheltering animals or keeping farm machinery (Code of Virginia 36-97). A farm building operated as a licensed restaurant is not exempt.
  • North Carolina says “Building rules do not apply to (i) farm buildings that are located outside the building-rules jurisdiction of any municipality” (G.S. 143-138(b4)), defining a farm building as “any nonresidential building or structure that is used for a bona fide farm purpose.” Inside a town’s jurisdiction, the farm building exemption is limited to greenhouses and therapeutic equine facilities (primitive camps and primitive farm buildings are exempt as their own categories). A farm building “shall not lose its status” because it hosts weddings or other events, though spectator seating stays subject to an annual safety inspection.
  • South Carolina bars counties and towns from enforcing the building code on a “farm structure”, meaning one “constructed on a farm, other than a residence or a structure attached to it, for use on the farm including, but not limited to, barns, sheds, and poultry houses” (S.C. Code 6-9-65).
  • Iowa takes farm buildings out of county zoning rather than the building code: apart from one cross-referenced exception (section 335.27), “no ordinance adopted under this chapter applies to land, farm houses, farm barns, farm outbuildings, or other buildings or structures that are primarily adapted, by reason of nature and area, for use for agricultural purposes, while so used” (Iowa Code 335.2).
  • Ohio works through the zoning certificate: when a county or township zoning inspector “issues a zoning certificate that declares a specific building or structure is to be used in agriculture, such building is not subject to” the state building code sections listed (Ohio Revised Code 3781.061).

Maryland handles farm buildings county by county; our guide to detached garages and pole barns in Maryland covers five of its counties (Montgomery, Prince George’s, Anne Arundel, Baltimore and Howard). We have not read the farm building rules of states not named here.

What you file, and when

In two of the six states (South Carolina and Ohio) the exemption depends on a filing, Iowa forbids requiring one, and in the others a county may still ask for a form, as Loudoun does. In the rules we read:

  • South Carolina: it does not apply “unless, before constructing a farm structure, the person owning the property … files an affidavit” with the official who enforces the building code, stating the intended use. Greenville County’s version of that affidavit, as read for our dataset, has the owner sign that “the structure can only be used as a farm structure.”
  • Ohio: the zoning certificate itself must declare the agricultural use.
  • Loudoun County, Virginia: a “Farm Building or Structure Application is required for agricultural structures, regardless of size”, with a zoning permit. An agricultural structure not subject to the building code pays the $165 county zoning permit fee; one that is subject to it, or whose owner asks for plan review, pays $330, which includes the building permit and plan review.
  • Santa Clara County, California: an agricultural building under 10,000 square feet on a lot of 10 acres or more can skip the building permit, but only with a recorded deed restriction and a Certificate of Agricultural Exemption from the Planning Office (as read for our dataset).
  • Iowa is the exception that runs the other way: a county “shall not require an application, an approval, or the payment of a fee” for its zoning ordinance to be treated as inapplicable to a qualifying farm building.

What the exemption does not cover

  • The wiring. Pennsylvania’s own pole barn clause, for barns on agricultural fairgrounds, says “If an exempted pole barn has electrical service, a permit and inspections to determine compliance with the electrical provisions of the Uniform Construction Code are required.” Loudoun County warns that an “Electrical Permit may be required” for an agricultural structure, and Greenville County’s permit list says “all electrical, gas or HVAC work require a permit” (as read for our dataset), a general statement that does not address farm structures either way.
  • Flood plains. Virginia keeps farm buildings in a flood plain or mudslide-prone area under “flood-proofing regulations or mudslide regulations”; South Carolina applies the federal flood insurance program standards; Iowa lets county ordinances reach structures “in or on the floodplains of any river or stream.”
  • A change of use. South Carolina’s definition excludes “a structure originally qualifying as a ‘farm structure’ but later converted to another use”, and Pennsylvania’s and Virginia’s definitions exclude habitable or residential space. A barn that later becomes a garage, a home office or an apartment needs the permits it skipped.
  • Permits a county still issues. South Carolina’s statute “does not affect the authority of the governing body of a county or municipality to issue building permits before the construction or improvement of a farm structure,” and Ohio’s route runs through a zoning certificate. An exemption from the building code is not always an exemption from every permit.

A pole barn that is not a farm building

Built for a house rather than a farm, a pole barn is a detached accessory building, and offices list it with sheds and garages, in their rules as verified in our dataset: Louisville Metro requires a building permit for a pole barn of 200 square feet or more; Fairfax County, Virginia, lists “Pole Barn” among residential accessory buildings that need a building permit; Cobb County, Georgia’s accessory structure application names “sheds, pole barns, gazebos, pool houses, storage buildings”; Fort Wayne and Franklin County, Ohio, count pole barns as accessory buildings; and Aurora, Colorado, publishes a separate Pole Barn Construction Building Guide; and Harris County, Texas, files pole barns under its “Unenclosed Accessory Building (carport, gazebo, pole barn, etc.)” permit category.

Pennsylvania has its own wrinkle here: the state code does not apply to carports, detached private garages, greenhouses and sheds “if the structure has a building area less than 1,000 square feet and is accessory to a detached one-family dwelling except as might be required by an ordinance” (34 Pa. Code 403.1(b)(3)), so a Pennsylvania municipality’s own rules decide. What a garage permit reviews is in our guide to detached garage permits. For the general size lines, see our guides to the 200 square foot shed rule and greenhouse permits, and for running power to an outbuilding, electricity to a shed.

What this guide rests on

The Pennsylvania, Virginia, North Carolina, South Carolina, Iowa and Ohio provisions and Loudoun County’s page were read on their official sites on November 18, 2026, and supply every quotation not marked as read for our dataset. Greenville County, Santa Clara County, Louisville, Fairfax County, Cobb County, Fort Wayne, Franklin County, Aurora and Harris County are cited from their rows in our dataset, each with its own read date on its page here. Whether your operation counts as a farm is often decided by a definition in a separate statute (North Carolina points to its “bona fide farm purpose” test in G.S. 160D-903(a), which we did not read for this guide), so ask the office to confirm in writing before you build.

Do You Need a Permit for a Pole Barn? The Farm Building Exemption, State by State: figures as of 28 Sep 2026, 137 jurisdictions. Now 178.

Sources

Get rule-change alerts

We catch permit rule and fee changes in our verification passes and post them to the rule tracker. Get them by email instead.

We may send occasional verified rule-change notes for your area; unsubscribe anytime. See our privacy policy.