PolyJacks · Spray Foam Insulation

Kansas Agricultural Building Exemption: What It Exempts (County Zoning) and What It Does Not

What the Kansas agricultural building exemption is

The Kansas agricultural building exemption is a zoning exemption first. K.S.A. 19-2908 tells a county that its zoning regulations do not reach the use of land for agricultural purposes, or the buildings on that land, as long as the land and buildings are used for agricultural purposes "and not otherwise" (K.S.A. 19-2908, Kansas Legislature). Flood-plain regulations are carved out of the exemption in the same sentence.

That one sentence is where most of the confusion starts. People hear "ag exemption" and conclude "no permit, no code." The statute does not say that, and neither does anyone who has read it closely. A separate state document, an Attorney General opinion, adds a part of the answer about county building codes, and it is narrower than the slogan. Both are laid out below, with the questions to put to the office that covers your address.

This page is a map, not legal advice. It does not tell you whether your building qualifies. The county or city office decides that, and a court decides disputes. PolyJacks sprays closed-cell foam only, inside buildings within about 35 miles of Spring Hill, KS, and we are not a law office.

What the statute says

The statute is part of the Kansas county planning and zoning act. Its catchline reads "Zoning regulations inapplicable to existing structures or agricultural land; exceptions." The section does three things:

  1. It protects existing buildings and existing uses from zoning rules adopted later, while still reaching a change to a different use.
  2. It lets a damaged building be restored if the damage was not more than fifty percent of its assessed valuation, and the use continued.
  3. It keeps county zoning regulations away from agricultural land and agricultural buildings, except flood-plain regulations in designated flood plains.

Read that third item again for what is missing. The word that the section uses is *regulations adopted under this act*, and the act is the county zoning act. The text we opened does not mention building permits, building codes or fire codes. That silence is the first fact on this page.

The words that do the work

Two phrases carry the rule:

  • "used for agricultural purposes and not otherwise." The exemption lasts only while the use stays agricultural. A building that is partly a workshop for a side business, a rented storage unit or a home is the kind of case the county looks at.
  • Flood plain. If any part of the land sits in a designated flood plain, the county's flood-plain rules still apply there.

Douglas County's own exemption packet shows how an office turns "agricultural purposes" into a checklist. It points out that the statute gives no definition of the term, quotes an Attorney General opinion that the farm use must be real enough that the owner is not "masking a residential use," and then lists what that county wants to see: a farm-income filing or an approved business plan, and at least three acres in agricultural use (Douglas County Zoning and Codes, Agricultural Exemption packet, revised 2019, read 2026-10-25). Those are Douglas County's criteria. Another county may use different ones, so do not assume yours matches.

What the Attorney General adds about building codes

In 2016 the Kansas Attorney General answered a legislator's question about this exact gap. The opinion's synopsis says a county may not require buildings used solely for agricultural purposes to comply with the construction codes the county has adopted (Kansas Attorney General Opinion 2016-10). It rests on the "agricultural purposes and not otherwise" language in two statutes it cites: K.S.A. 12-758(b), written for city and county planning in general, and K.S.A. 19-2921, in the county zoning article. We did not open those two sections ourselves. We opened 19-2908, whose text carries the same ag-purposes clause.

Three limits on that opinion matter for anyone planning a build:

  • It is about counties. The question and the conclusion concern county building codes. A city that has annexed your land, or a city that enforces its own code at the edge of town, is a different office with a different answer. Use the table on permits and adopted codes by office to see which office you are under.
  • "Solely" is the test. The conclusion applies while the land and building are used for agricultural purposes and not otherwise. The opinion calls this a case-specific question that turns on the facts, and notes that courts have read "agricultural purposes" broadly but not without limit (it lists activities held to be agricultural and a couple held not to be).
  • The county may still ask first. The opinion says a county can lawfully require a landowner to get a prior determination that the building qualifies. It adds that once the structure is found to fall within the exemption, the county cannot then demand plan approval or a building permit for it.

An Attorney General opinion is the state's chief legal officer explaining how the statutes read. It is not a court ruling. We cite it because it is the best primary reading we could open, not because it settles your case.

What the exemption does not do

Putting the two documents side by side, here is a plain list of things the exemption does not decide:

QuestionWho answers itWhere this page stands
Does county zoning (setbacks, use districts) apply to my farm building?The county, applying K.S.A. 19-2908Exempt while used for agriculture and not otherwise; flood-plain rules still apply
Does the county's adopted building code apply?The county, within the Attorney General's readingPer the opinion, not for a building used solely for agriculture, once the county has determined that
Do I need to file anything to prove the building is agricultural?The countyThe opinion allows a prior determination; Douglas County uses an application and a letter
Does my city enforce a code here?The cityNot answered by this page; see the table
Does the building remain agricultural if I rent it, or run a shop from it, or live in it?The county, on the factsPossibly not; ask before you build
Does foam still need a covering to protect people from fire?The foam's own fire behavior, whoever enforces anythingThe exemption changes who can require a barrier, not how foam burns

The last row is the one people skip. Spray foam is combustible, and the barriers that the model building code asks for exist because of that. Whether your county requires them or not, the question of what covers the foam is still a safety question. The barrier rules are explained once, on thermal barrier and ignition barrier. Your insurer, your lender and the maker of the foam may each have their own conditions, so those are worth a phone call as well.

Do pole barns need a permit in Kansas?

There is no single statewide answer, which is why this page does not give one. For a pole barn, three facts decide the question:

  1. Which office covers the parcel. A county outside city limits, or a city inside them.
  2. Whether the building is used solely for agriculture. Hay, equipment and livestock are the usual cases. A barn that doubles as an event venue, a rental, a home or a business shop is a different case.
  3. What that office requires as paperwork. Some offices want an application or determination even when the building is exempt from a permit.

Douglas County's code, for example, lists agricultural buildings among the work that does not need a building permit, but only if the owner files an application giving the building official what is needed to check eligibility (Douglas County Code, Chapter 13, Construction, read 2026-10-25). That is one county's rule. Johnson County lists "Accessory and Agriculture Building" among its permit pages and describes an agricultural building as one used solely for agricultural use (Johnson County, Accessory and Agriculture Building). We have not read the rest of that page's rules into this one, so call the office for the current text.

For the spray-foam side of a pole barn (what covers the foam, what a post-frame wall looks like), the build page is spray foam for pole barns. The planning side for a new barn is on insulating a new pole barn.

Questions to ask your county

Call the planning and zoning or building codes office for the parcel. Ask, and write down the name, date and answer:

  1. Which office covers this address: the county, or a city?
  2. Does the office have a form or letter for an agricultural-use determination? Is there a fee or a minimum acreage?
  3. If the building qualifies, does the office still want drawings, a site plan or an inspection?
  4. Does any flood-plain mapping touch the parcel?
  5. If part of the building will be used for something other than agriculture, how does that change the answer?
  6. Does a fire district or the state fire marshal have a say that is separate from the building office?
  7. If we add insulation later, does that count as work the office wants to hear about?
  8. Can the office give the answer in writing?

Bring the parcel number, the building's size, and a plain description of what is stored or kept in it. A written reply protects you if staff change.

Statutes are amended and opinions are superseded. The statute text above is the version the Legislature's site showed on 2026-10-25, with a history line ending in 1991. The opinion is from 2016. Neither tells you what your county does today. If money depends on the answer, ask the office in writing, and if the stakes are high, an attorney of your choosing can read the current text for your parcel. We do not recommend one.

FAQ

Do agricultural buildings in Kansas need a building permit?

K.S.A. 19-2908 exempts agricultural land and buildings from county zoning regulations, flood-plain rules excepted. Whether a county or city requires a building permit, or enforces a building or fire code, is decided by that office, so ask it. The row for your office is on permits and adopted codes by office, where each entry is sourced or says "unknown - call the office."

Is a pole barn exempt from building codes in Kansas?

Not as a blanket rule. The statute is a zoning statute. The Attorney General reads related law to bar a county from requiring its own building code for a building used solely for agriculture, and allows a county to ask for a prior determination that the building qualifies. A city, a lender or an insurer may ask for more. Ask the office that covers your address.

Does the ag exemption apply to a shop?

Only to county zoning, and only if the shop is used for agriculture and not otherwise. The county decides on the facts. Permits and codes are a separate question for the office, and the table linked above is the place to start.

Book a free on-site measurement

If you are planning insulation for a barn or shop, we measure the walls and roof and note how the space is used, which is also the information the county will ask about. You get a written estimate after the visit. The visit is free, and we do not give legal or permit advice on it.

Book a free on-site measurement

Pick "Spray foam insulation" on the booking form. We work within about 35 miles of Spring Hill, KS. How the visit works is on book a free on-site measurement.

Spray foam insulation is a new PolyJacks service line run by its own crew and rig. We have not yet finished an insulation job, so this page makes no claims about past jobs.

Who wrote this: PolyJacks spray foam team. How it was made: drafted with AI assistance from the sources below, then checked against each source.

Sources

  • K.S.A. 19-2908, Kansas Legislature (statutes site, 2025-26 edition), read 2026-10-25: kslegislature.gov
  • Kansas Attorney General Opinion No. 2016-10 (June 9, 2016), read 2026-10-25: ksag.washburnlaw.edu
  • Douglas County, KS Zoning and Codes, Agricultural Exemption packet (rev. 08/22/19): dgcoks.gov
  • Douglas County, KS Code, Chapter 13 Construction (2018 edition adoption; agricultural building exemption item): dgcoks.gov
  • Johnson County, KS, Accessory and Agriculture Building permit page: jocogov.org

Ready for a measurement?

Book a free on-site visit. We measure first, then quote in writing.

Spray foam insulation

Book a free on-site measurement

We measure the building first, then you get a written quote. Prefer to talk? Call (913) 713-7794.

Book a free on-site measurement

Free Estimate Call