Guide
Do You Need a Permit for a Detached Garage or Pole Barn in Maryland? County Rules and the Farm Exemption
Yes for every detached garage in Montgomery, Prince George's, Anne Arundel, Baltimore and Howard counties, with plans, setbacks and size caps that differ by county. A pole barn is exempt only as a true farm building, under county law, and still needs an electrical permit. Fees and contacts read on each county's pages.
Yes. A detached garage needs a building permit in every one of the five Maryland counties covered here, at any size you would park a car in, and each county also decides where it may stand and how large it may be. A pole barn needs one too, unless it is a genuine farm building on farm land, and even then the wiring needs its own permit.
- Montgomery County
- Permit requiredRear yard only; footprint up to half the house or 600 sq ft, whichever is greater
- Prince George's County
- Permit, plans and a permanent foundationFarm building for agricultural use: electrical permit only
- Anne Arundel County
- Permit and scaled plansWithin 3 ft of the house it counts as attached
- Baltimore County
- Permit requiredPlans at 1,000 sq ft; 15 ft height limit
- Howard County
- Permit and two sets of plansAll accessory buildings together capped at 600 sq ft on most lots
The law behind that: the Maryland Building Performance Standards apply “to each building or structure in the State for which a building permit application is received by a local jurisdiction,” and the statute has no general exemption for garages or farm buildings. Each county enforces the code, can amend it, and sets its own zoning, so the five answers below are the ones that count.
The next step: decide the footprint (a typical two-car garage is about 24 by 24 feet, 576 square feet), then check it against your county’s size and setback limits below before you pay for drawings.
Is your address in a town?
If you live inside an incorporated town, the town may issue the permit instead of the county, or in addition to it. State law lets municipalities enforce the building code within their borders. Prince George’s County has 27 municipalities whose requirements vary, Montgomery County warns that you “may also need a permit or other permission” from a municipality, and in Anne Arundel County the City of Annapolis runs its own permits. Baltimore County and Howard County have no incorporated towns. Baltimore City is a separate government and not covered here.
Montgomery County
The Department of Permitting Services (DPS) treats a detached garage as an accessory structure: “A permit is required prior to the construction or modification of any accessory structure or building,” and accessory structures “include but are not limited to: detached garages, sheds, barns, gazebos, pool houses, portable storage and sea containers.”
- Location: “An accessory structure or building on a residential lot must be in the rear yard.”
- Size: the county’s R-90 guidance sheet says the footprint of an accessory building “must not exceed 50% of the footprint of the main building (one-family detached dwelling) or 600 sq/ft whichever is greater.” For a house with a 1,600 square foot footprint, that allows an 800 square foot garage.
- Height and setbacks in the common zones, from the DPS sheets marked for guidance only: R-60 and R-90 allow 20 feet with 5 foot side and rear setbacks; R-200 allows 35 feet with a 12 foot side and 7 foot rear setback. In R-60 and R-90, a wall longer than 24 feet along a side or rear line, or a building over 15 feet tall, must sit farther back, so a garage longer than 24 feet on the side facing a lot line needs more room than the base setback.
- Timing: “Eligible applications may be reviewed through our Fast Track program, which may take three to five days.”
The garage fee is the accessory building rate for anything over 201 square feet: $0.88305 per square foot under the schedule effective July 1, 2026. For a 576 square foot garage, that is $508.64. The schedule also lists a filing fee for additions and alterations of “50% of the permit fee or $329.59, whichever is greater”; DPS sets the final fee at issuance, so ask whether it applies to your garage.
Hiring a builder: the accessory structure page says “A contractor must have a Montgomery County New Home Builder’s (BC) license to obtain a permit,” while the county’s shed page names the state home improvement license instead. Ask DPS which license your garage builder needs before you sign.
Farm buildings: the county building code does not require a permit for “a building or structure used exclusively for agricultural purposes on land used exclusively for agriculture,” and a building used for anything that is not exclusively agricultural still needs one. In April 2026 the County Council passed Bill 7-26, which “confirms that agricultural purposes include the business, administrative, and management functions of farming, as well as processing agricultural products to prepare them for market.”
Call MC 311 at 240-777-0311.
Prince George’s County
The Department of Permitting, Inspections and Enforcement (DPIE) is the strictest on construction: “Regardless of the finished size, garages require permanent foundations.” The permit needs “site plans showing existing and proposed structure location(s), including well and/or septic (if applicable),” and “Structural plans also are required.” A new or changed driveway apron is “a separate permit.”
Zoning, under the ordinance in force since April 1, 2022:
- “No accessory structure shall be located in a required front yard or corner lot side yard.”
- The maximum accessory structure height is 15 feet in the RR, RSF-95 and RSF-65 zones.
- In a required side or rear yard, a structure taller than ten feet sits back from the nearest side or rear line “one foot for every foot (or fraction thereof) the structure’s height exceeds ten feet.” A 14 foot garage therefore needs at least 4 feet.
The fee line for “Garage - Attached and Detached,” on the schedule effective October 16, 2026, reads “Total Fee = Administrative Fee $66 + Building Permit Fee (SF × $1.17) + $53 Grading Fee + $5 M-NCPPC + $112 U&O. Plus Technology Fee 10%.” For 576 square feet, the per square foot part alone is $673.92.
Farm buildings: DPIE’s permit chart lists “Build farm building (on farm property, agricultural use only)” as needing an electrical permit and no building permit. A pole barn that is not a farm building is priced on its own line: “Total Fee = Administrative Fee $66 + Building Permit Fee ($132 or 1% of Construction Cost, whichever is greater) + $53 Grading Fee + $5 MNCPPC. Plus Technology Fee 10%.”
DPIE’s main number is 301-636-2000.
Anne Arundel County
Outside Annapolis, Inspections and Permits lists a garage as permit-required, with one distinction: “a garage within 3’ of the principal structure is considered attached otherwise, it is considered detached.” An attached garage is reviewed as part of the house. For a detached one, “Construction plans must be drawn to a recognized architectural scale and show the dimensions, type of materials to be used and depict how the structure will be constructed.”
“The fee for a Building Permit is based on the estimated value of the work.” Above $25,000 the schedule charges “$242.00 plus .010 times estimated cost above $25,000.00,” so a garage valued at $40,000 carries a $392 permit fee, plus the $43 application fee.
Setbacks depend on your zoning district. Call the Zoning Administration Section at 410-222-7437 with your address.
Farm buildings: the county’s agricultural exemption has four tests. The building “must be on a farm that has a current soil conservation and water quality plan, more often referred to as a farm plan”; “It must not be open to the general public, over 40 feet tall, and/or within 60 feet of other buildings”; and “It must be on land that is either zoned RA or be zoned RLD and assessed as agricultural” by the state. A pole barn on a residential lot does not pass.
Permit questions: (410) 222-7730.
Baltimore County
Permits, Approvals and Inspections (PAI) groups “sheds, gazebos, garages, etc.” as accessory structures, and a garage is far over the 120 square foot permit line. The same placement rules apply:
- “Must be located in the rear yard behind the rear foundation wall line, unless a zoning variance is obtained,” with side yard placement only in the RC 6, RC 7 and RC 8 zones.
- “Must be located 2.5 feet from the side and rear property lines, however any side closer than five feet to the property line requires a one-hour fire-rated safety wall and no openings on that side.”
- “There is a height limitation of 15 feet.”
- On a corner lot, the garage goes “in the half of the lot furthest from the side street.”
Above 400 square feet, a garage “requires frost-line footings,” and “Construction Plans are required if 1,000 square feet and over.” The fee on the schedule effective 07/01/26 is $105.00 under 1,000 square feet and $160.00 at 1,000 and over, plus the $75.00 residential application fee.
Farm buildings: “Some agricultural structures such as barns used to store hay, are exempt from certain Baltimore County Code requirements,” and the county’s agricultural verification decides which. “A permit is required for all construction on agricultural property if the construction is not related to the agricultural use or if it is for public use or habitation.” For a commercial agriculture verification, the county asks for evidence such as “a Schedule F with your income taxes,” and “electrical, plumbing and gasfitting permits are always required.”
PAI: 410-887-3900.
Howard County
Howard requires “2 SETS OF CONSTRUCTION DOCUMENTS DRAWN TO SCALE” for a building permit, which the building official may waive for alterations and for accessory structures under 200 square feet, so a garage needs the drawings. The bigger limit is zoning:
- The combined footprint of all accessory structures on a single-family lot is capped at 600 square feet in the planned public water and sewer service area, 1,200 square feet on an RC or RR lot of 2 acres or less, and 2,200 square feet on a larger RC or RR lot. A 576 square foot two-car garage uses almost all of the 600, including any shed already standing.
- “Garages/accessory buildings cannot be larger than the principal use building.”
- “Full baths, full kitchens, residential habitation and commercial uses are not permitted in accessory structures.” A garage apartment is a different application.
Farm buildings: Council Bill 24-2025 writes in its own county exception, under which the building code does not apply to agricultural buildings, and adds that the exception does not exempt the owner “OF AN AGRICULTURAL BUILDING FROM OBTAINING REQUIRED ELECTRICAL” or plumbing permits.
The county’s FY27 fee schedule has no line that names detached garages; ask the permits division at 410-313-2455 how yours will be priced.
Pole barns and farm buildings: the exemption is local
Maryland’s code statute defines an agricultural building as “a structure designed and constructed to house farm implements, hay, grain, poultry, livestock, or other horticultural products,” but its only exemption covers an agricultural building “for which agritourism is an intended subordinate use.” Every other farm-building exemption is county law, and each county above words its own test. Three things hold wherever a county spells its test out:
- The building has to serve a working farm. A pole barn behind a house on a residential lot, used for cars, a workshop or storage, is a garage to the permit office.
- Expect the wiring to need a permit regardless. Howard and Baltimore counties say so in their exemptions, and Prince George’s farm building row still lists the electrical permit; Montgomery’s and Anne Arundel’s exemption texts are silent on it, so ask.
- Public use or living space ends the exemption.
Outside Maryland, several states write the farm building exemption into state law instead; our guide to pole barn permits and the farm building exemption compares Pennsylvania, Virginia, the Carolinas, Iowa and Ohio.
A contractor who builds one on residential property needs a state license: the Maryland Home Improvement Commission says “Pole buildings are included within the definition of ‘home improvement,’” and a seller who installs one on residential property must hold an MHIC license. State law also names garages in the definition of home improvement. Check a contractor on the Maryland license lookup.
Near the water: the Critical Area
On a lot within the Chesapeake Bay Critical Area, a garage, its driveway and its apron all count as lot coverage, which state law limits to “15% of a parcel or lot” in the limited development and resource conservation areas, with different limits for older small lots. A garage that fits the county’s zoning can still exceed the coverage allowance. Ask the county permit office whether your parcel is mapped in the Critical Area before you design.
Before you pay for drawings
- Confirm whether a town or the county issues your permit.
- Check the footprint against your county’s cap: half the house’s footprint or 600 square feet, whichever is greater, in Montgomery, 600 square feet for all accessory buildings in most of Howard, and the Critical Area allowance near the water.
- Check height and setbacks for your zone, especially if the garage is taller than 15 feet or longer than 24 feet along a property line.
- Plan the foundation the county requires (permanent in Prince George’s at any size; frost-line footings over 400 square feet in Baltimore County).
- Plan the electrical permit and, if you add a sink, the plumbing permit.
- If the builder is a contractor, confirm the license the county wants.
Outside Maryland, our guide to detached garage permits compares the size lines and zoning caps other offices use.
Smaller project? The Maryland shed permit guide covers the same five counties, with the size below which no permit is needed.
Sources
- Maryland Code, Public Safety 12-503(c): the Maryland Building Performance Standards apply to each building or structure for which a permit application is received; no general exemption for accessory or farm buildings. (accessed )
- Maryland Code, Public Safety 12-508: the definition of an agricultural building and the only state exemption, for agricultural buildings with agritourism as an intended subordinate use. (accessed )
- Maryland Code, Public Safety 12-505: the county enforces the Standards, and municipalities may enforce them in their own borders. (accessed )
- Maryland Code, Business Regulation 8-101(g): home improvement includes building a garage on land adjacent to a residence. (accessed )
- Maryland Home Improvement Commission FAQ: pole buildings installed on residential property are home improvement and need an MHIC license. (accessed )
- Maryland Code, Natural Resources 8-1808.3(d)(1): Critical Area lot coverage limited to 15% of a parcel or lot. (accessed )
- Montgomery County DPS, Residential Accessory Structure Permit Process: a permit for any accessory structure including detached garages and barns, rear yard only, the contractor license line and Fast Track. (accessed )
- Montgomery County DPS development standards sheet for the R-90 zone (marked for guidance only): accessory building footprint cap, height and setbacks. (accessed )
- Montgomery County DPS development standards sheet for the R-200 zone (marked for guidance only): accessory building height and setbacks. (accessed )
- Montgomery County DPS Residential Building Fees, effective July 1, 2026 to June 30, 2027: accessory building per square foot fee and the filing fee line. (accessed )
- Montgomery County Code Chapter 8, Sec. 8-1(d)(2): buildings used exclusively for agricultural purposes on land used exclusively for agriculture are outside the building permit requirement, with exceptions. (accessed )
- Montgomery County Council release, April 7, 2026: Bill 7-26 confirms that agricultural purposes include farm business functions and processing farm products. (accessed )
- Prince George's County DPIE, Garages: a building permit, site plans and structural plans, a permanent foundation at any size, and the separate driveway apron permit. (accessed )
- Prince George's County DPIE, When Is a Permit Required?: the farm building row (on farm property, agricultural use only). (accessed )
- Prince George's County Zoning Ordinance (Subtitle 27, effective April 1, 2022): accessory structure location, the height step-back and the 15 foot accessory height in the RR, RSF-95 and RSF-65 zones. (accessed )
- Prince George's County DPIE Fee Schedule, effective October 16, 2026: the garage line, the pole barn line and the 10 percent technology fee. (accessed )
- Anne Arundel County Inspections and Permits, Do I Need a Permit?: garages need a permit; a garage within 3 feet of the house is attached. (accessed )
- Anne Arundel County Residential Accessory Structure permit: construction plans to architectural scale; the fee follows the value of the work. (accessed )
- Anne Arundel County Permit Fees: the valuation schedule, the $86 minimum and the $43 application fee. (accessed )
- Anne Arundel County handout on the agricultural building permit exemption: farm plan, height, spacing, public access and zoning tests. (accessed )
- Baltimore County PAI, Residential Accessory Structure Permit: garages are accessory structures; rear yard, 2.5 foot setbacks, 15 foot height, plans at 1,000 square feet, frost-line footings over 400 square feet. (accessed )
- Baltimore County Building Permit Fee Schedule, effective 07/01/26: accessory structure fees and the $75 residential application fee. (accessed )
- Baltimore County PAI, Agricultural Verification: which farm structures are exempt, what disqualifies them, and that electrical, plumbing and gasfitting permits are always required. (accessed )
- Howard County Council Bill 24-2025: the agricultural building exception (electrical and plumbing permits still required) and the construction documents rule. (accessed )
- Howard County ZRA-218 Technical Staff Report (October 2025), reproducing current Zoning Regulations Sec. 128.0.A.12: the cumulative lot coverage cap for accessory structures. (accessed )
- Howard County Department of Planning and Zoning FAQ: accessory buildings cannot be larger than the house; no full baths, full kitchens or habitation in accessory structures. (accessed )
- Howard County Department of Inspections, Licenses and Permits: the permits division at 410-313-2455. (accessed )
- Montgomery County DPS development standards sheet for the R-60 zone (marked for guidance only): accessory building setbacks and height. (accessed )
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.
Look up your locality
- Maryland permit pages rules by locality