Quick answer

The 2024 International Residential Code exempts only prefabricated swimming pools less than 24 inches deep from a building permit (IRC R105.2). Deeper pools need a permit, and the IRC sends pool design to the International Swimming Pool and Spa Code (R328.1). Expect separate building, electrical, and sometimes plumbing or gas permits, plus a barrier inspection. The model barrier is at least 48 inches high, with gates that open outward and are self-closing and self-latching (ISPSC 305).

What the model code says

Which pools are exempt

The International Residential Code (IRC) exempts from a building permit:

Prefabricated swimming pools that are less than 24 inches (610 mm) deep.

That covers small inflatable and wading pools, not typical above-ground pools, which are usually 48 inches deep or more. The International Building Code (IBC), which some jurisdictions apply to accessory structures, has a narrower version: prefabricated pools accessory to a Group R-3 occupancy that are under 24 inches deep, hold no more than 5,000 gallons, and are installed entirely above ground.

Everything else, including in-ground pools, above-ground pools 24 inches or deeper, and permanently installed spas and hot tubs, generally needs review. The 2024 IRC sends the design to a separate code: “The design and construction of pools and spas shall comply with the International Swimming Pool and Spa Code” (R328.1; it was R327 in the 2021 IRC).

Residential versus public pools

The International Swimming Pool and Spa Code (ISPSC) defines a residential pool as one “accessory to a residential setting and available only to the household and its guests.” Pools at apartments, HOAs, clubs, and short-term rentals open to the public may count as public pools, which have stricter rules and often a state or county health department permit.

Barrier requirements

ISPSC Section 305 is the part most homeowners deal with. In the 2024 edition we reviewed:

Requirement Model rule (ISPSC 305)
Barrier height Top at least 48 inches above grade, measured on the side away from the pool
Gap at bottom No more than 2 inches over grass or gravel; 4 inches over solid surfaces
Openings Must not pass a 4-inch sphere; chain-link mesh no larger than 1¾ inches
Gates Open outward away from the pool; self-closing and self-latching; not swinging over stairs
Latch near gate Openings within 18 inches of the latch no larger than ½ inch
Climbable objects Equipment kept at least 36 inches from the outside of the barrier
Above-ground pool wall Can serve as the barrier if at least 48 inches high all around; ladders must be removable, lockable, or securable
House wall as barrier Doors to the pool protected by a listed alarm (UL 2017), an ASTM F1346 power safety cover, or self-closing, self-latching doors

Gate latch height rules also apply. States sometimes amend this section (the copy we reviewed carries a state amendment to the latch rule), so take latch heights from your local code.

The U.S. Consumer Product Safety Commission’s Pool Safely campaign gives matching homeowner guidance: “A fence of at least four feet in height should surround the pool or spa on all sides,” and “the water should only be accessible through a self-closing, self-latching gate.”

Electrical, decks, and drains

  • Electrical. IRC Chapter 42 covers wiring and equipment for “all swimming pools, wading pools, decorative pools, hot tubs and spas, and hydromassage bathtubs,” with cross-references to NEC Article 680. Pool wiring is regulated closely, and a separate electrical permit and inspection are normal.
  • Pool decks. The ISPSC requires deck design under the IRC or IBC (306.1). Raised wood decks around above-ground pools follow the deck rules in our deck permit guide.
  • Suction entrapment. The federal Virginia Graeme Baker Pool and Spa Safety Act (2007) addresses drain entrapment, mainly in public pools and spas. Ask your inspector which suction-outlet rules apply to a residential pool.

Zoning, HOA rules, and setbacks

  • Setbacks for the pool shell and the equipment pad (pumps and heaters are noisy, and some codes set separate equipment setbacks).
  • Lot coverage or impervious surface limits that may count the pool and surrounding deck.
  • Easements, which pools generally cannot encroach on.
  • Drainage and discharge: where backwash and drained water can go. Some localities prohibit draining to the street or storm drain.
  • Septic systems: keep the pool and excavation clear of the septic tank and drain field. The health department may need to review the site plan.
  • HOA rules on fencing style, screening, and equipment placement.

Permits and inspections you can expect

A typical in-ground pool involves several permits and inspections:

  1. Plan review: site plan, pool engineering or the manufacturer’s specifications, barrier plan, and electrical plan.
  2. Pre-gunite or pre-pour inspection: steel reinforcement and bonding grid before concrete or shotcrete.
  3. Electrical inspections: bonding, underground wiring, and equipment.
  4. Plumbing or gas inspections: heater gas lines and pressure tests, where applicable.
  5. Barrier inspection: fence, gates, alarms, or safety cover.
  6. Final inspection: often required before the pool may be filled or used.

Above-ground pools usually need a building permit, an electrical permit for the pump circuit, and a barrier check.

What to prepare

  • Site plan with pool and equipment location, distances to property lines, the house, septic, and easements.
  • Pool specifications or engineered drawings, including depth and volume.
  • Barrier plan: fence height, materials, gate hardware, and how house doors are protected.
  • Electrical plan: panel capacity, circuit, disconnect location, and bonding.
  • Heater details if gas, electric, or heat pump.
  • Contractor licenses where your state licenses pool builders or trades.
  • HOA approval if required.

How permit fees are calculated

Pool permit fees are set locally and are often a combination of building, electrical, and plumbing or gas fees. Common methods:

  • Valuation-based building fees, sometimes using square-foot valuation tables. For example, the City of San Diego’s Information Bulletin 101 (January 2024), based on International Code Council data from August 2023, lists a valuation of $104 per square foot for a vinyl-lined swimming pool. That is a valuation used to compute the fee, not a fee.
  • Flat pool permit fees, with separate electrical and plumbing permits.
  • Plan review fees charged at submittal.

Check your county’s fee schedule through its profile in our directory.

Common mistakes

  • Assuming an above-ground pool is exempt. Only prefabricated pools under 24 inches deep are exempt under the model IRC.
  • Filling the pool before final inspection. Many jurisdictions prohibit use until the barrier passes.
  • Gate hardware that doesn’t self-close or latch, or gates that swing inward toward the pool.
  • Leaving climbable objects (equipment, planters, chairs) next to the barrier.
  • Skipping the electrical permit for a pump or hot tub circuit. Pool wiring mistakes are a shock hazard.
  • Building over a septic system or in an easement.

State notes

Some states set a rule for this project statewide. These notes come from our state research; your city or county may add its own requirements.

Alabama
From October 1, 2026, Act 2026-396 exempts the construction and repair of residential swimming pools from general contractor licensing. The Home Builders Licensure Board's September 2026 advisory opinion says a holder of a home builders license without limitation may build a residential pool costing over $10,000 until the legislature, a court or the Attorney General addresses jurisdiction. Source
Arizona
State law requires a residential pool 18 inches or more deep and wider than 8 feet to be enclosed by a barrier at least 5 feet high with self-closing, self-latching gates that open outward, unless a local ordinance at least as strict applies or all residents are at least six years old. Where the house forms part of the barrier, extra protections such as a 4-foot inner barrier, a motorized safety cover, or self-latching doors are required. Source
Delaware
A homeowner may not install their own wiring or electrical equipment for a swimming pool or hot tub under a homeowner's electrical permit. A licensed electrician must do that work. Source
Pennsylvania
Only prefabricated pools less than 24 inches deep are exempt from a UCC permit (34 Pa. Code § 403.62(c)(5)). Other pools, spas and hot tubs need a permit. Source
Rhode Island
Only prefabricated swimming pools less than 24 inches deep are exempt from a building permit under SBC-2 R105.2. Deeper pools need a permit. Source
South Carolina
Prefabricated swimming pools less than 24 inches deep installed by the owner are exempt from the building permit requirement (S.C. Code § 40-59-265). Deeper pools need a permit. Source
Virginia
Only pools with no more than 150 sq ft of surface area and less than 24 inches deep are exempt. Larger pools, and fences that serve as pool barriers, need a permit (VCC 108.2). Source

Common questions

Does an above-ground pool need a permit?

Under the 2024 IRC, only prefabricated pools less than 24 inches deep are exempt. A typical 48- or 52-inch-deep above-ground pool needs a permit. The 2024 International Building Code uses a stricter test for its exemption (under 24 inches deep, not more than 5,000 gallons, and entirely above ground), and local codes vary. Wiring for the pump almost always needs an electrical permit.

Does a hot tub need a permit?

Usually, at least an electrical permit for the dedicated circuit and disconnect. Some jurisdictions also require a building permit for the spa or the deck that supports it. Under the model pool code, a spa with a lockable safety cover meeting ASTM F1346 doesn't need a separate barrier (ISPSC 305.1).

Can my house wall be part of the pool barrier?

Yes, under the model code, if doors with direct access to the pool are protected. The ISPSC lists options including a listed water hazard entrance alarm (UL 2017), an ASTM F1346 power safety cover, or self-closing doors with self-latching devices (305.4). Local codes may limit which options are accepted.

How high does a pool fence need to be?

The model ISPSC requires the top of the barrier to be at least 48 inches above grade on the side facing away from the pool (305.2.1). The CPSC's Pool Safely campaign gives the same four-foot guidance. Your local code may require more.

Do I need a permit to fill in or remove a pool?

Many jurisdictions require a demolition or pool-removal permit to confirm the shell is broken up, drained, and backfilled properly and that utilities are disconnected. Ask your permit office.

Check your county’s rules

The rules above are the model-code starting point. Your county or city decides which edition applies, what it changed, and what it charges. Look up the permit office that serves your address.

Sources

Last reviewed October 2026. Section numbers refer to the International Code Council’s model codes. We checked the wording against the published adoptions linked above, which reproduce the model text without amendment unless the source notes a state amendment. Codes take effect only when a state or local government adopts them, and many make amendments. This guide is general information, not legal or engineering advice. Suggest a correction