Pennsylvania Building Codes, Permits and Contractor Rules
Here’s every rule from our 50-state guides for Pennsylvania on one page: the residential building code, frost depth, retaining wall permits, the 811 dig law, drainage law, contractor licensing, deposit limits, mechanics lien deadlines, workers’ comp, planting zones and frost dates. Each section links the official source and the full 50-state comparison.
Pennsylvania at a glance
- Building code: 2021 IRC (statewide; local enforcement varies)
- Frost depth: Set locally; often 30-36 in.
- 811 notice: Not less than 3 nor more than 10 business days before beginning excavation (complex projects: at least 10 business days)
- Contractors: State registration required
- Deposits: 1/3 + special-order items, over $5,000
- Liens: 6 months after completion of work
- Workers’ comp: 1+ employees
- Drainage rule: Civil law (natural flow)
- Planting zones: 5b to 8a
| Topic | Pennsylvania | Compare |
|---|---|---|
| Residential building code | 2021 IRC (statewide; local enforcement varies) | All states |
| Frost line depth | Set locally; often 30-36 in. | All states |
| Retaining wall permit | Exempt if not over 4 ft measured from the lowest level of grade to the top of the wall, unless the wall supports a surcharge (34 Pa. Code §403.62(c)(2)). | All states |
| 811 notice before digging | Not less than 3 nor more than 10 business days before beginning excavation (complex projects: at least 10 business days) | All states |
| Contractor license | State registration required | All states |
| Deposit limit | 1/3 + special-order items, over $5,000 | All states |
| Right to cancel | 3 business days, any HI contract | All states |
| Lien filing deadline | 6 months after completion of work | All states |
| Workers’ comp required | 1+ employees | All states |
| Drainage between neighbors | Civil law (natural flow) | All states |
| Planting zones (2023 USDA) | 5b to 8a | All states |
| Frost dates (NOAA) | Last frost early Apr (Philadelphia) to mid-May (Bradford); first frost early Oct (Bradford) to early Nov (Philadelphia) | All states |
Pennsylvania residential building code
- Code
- 2021 International Residential Code with Pennsylvania modifications (Uniform Construction Code, 34 Pa. Code Chapter 403)
- How it applies
- Statewide, but municipalities can opt out
- In effect since
- January 1, 2026
- Code agency
- Pennsylvania Department of Labor & Industry (Uniform Construction Code)
- Who enforces it
- Enforced by municipalities or their third-party agencies. In municipalities that opted out, the owner or contractor hires a certified third-party agency for residential inspections, and L&I handles commercial work.
- Good to know
- Pennsylvania moved to the 2021 IRC on January 1, 2026. Pennsylvania's version still allows stair risers up to 8 1/4 in. with treads at least 9 in. deep in homes, instead of the IRC's 7 3/4 in. riser and 10 in. tread.
Compare building codes in all 50 states
Frost line depth in Pennsylvania
- Who sets it
- Local building department
- Local examples
- Lower Providence Township (Montgomery County): 36 in.
City of Philadelphia: 30 in. (footings below grade)
Centre Region COG (State College area): 36 in. - Typical range
- 30-36 in. in the jurisdictions listed
- Good to know
- Pennsylvania's Uniform Construction Code leaves the frost depth to each municipality or its code agency, so the local building department's number is the one that counts.
Frost line depth in every state
Retaining wall permits in Pennsylvania
- Permit exemption
- Exempt if not over 4 ft measured from the lowest level of grade to the top of the wall, unless the wall supports a surcharge (34 Pa. Code §403.62(c)(2)).
- Who decides
- Your municipality or its UCC code official decides. Local ordinances can be stricter, subject to appeal to L&I.
- Good to know
- Pennsylvania measures height from the lowest level of grade, not the bottom of the footing. Your municipality's rules can be stricter than the state's.
Retaining wall permit rules in every state
811 dig law in Pennsylvania
- One-call center
- Pennsylvania One Call System, Inc.
- Notice before digging
- Not less than 3 nor more than 10 business days before beginning excavation (complex projects: at least 10 business days)
- Ticket good for
- No fixed expiration in Act 287. Update your ticket if you leave the work site for more than 2 business days, if any of the markings at the site fade or are obliterated, or if you don't start within the original lawful start dates on the ticket.
- Hand-dig zone
- 18 in. horizontally from the outside wall or edge of a line or facility
- Homeowners
- Required when using powered equipment. Act 287 defines 'excavation work' as using powered equipment or explosives, so digging with hand tools is outside the law; soft excavation (vacuum, high-pressure air or water) is also excluded. PA One Call: 'If you plan to disturb the earth with powered equipment, PA Act 287, as amended, obligates you to notify,' and it asks everyone to contact 811 any time they intend to dig.
- The law
- 73 P.S. § 176 et seq. (Act 287 of 1974, as amended)
- Good to know
- Work may lawfully begin on or after the 3rd business day after notification; request re-marking if marks are compromised or eliminated. The law was last amended by Act 127 of 2024, effective Oct 29, 2024, and expires Dec 31, 2031 unless extended. Pennsylvania entry reviewed by PA One Call System, November 2026.
Drainage law and stormwater permits in Pennsylvania
- Rule
- Civil law (natural flow)
- The rule
- Modified natural-flow rule: the upper owner is generally not liable for water that naturally flows downhill, and ordinary grading and building on one's own land does not by itself create liability for incidental effects; but the upper owner is liable for diverting surface water from its natural channel, gathering it by artificial means and discharging it in a body onto a neighbor, or unreasonably or unnecessarily increasing its quantity. (Label assigned from the rule; Pennsylvania courts do not name a doctrine.)
- Leading case
- Youst v. Keck's Food Service, Inc.. 94 A.3d 1057, 2014 PA Super 121 (Pa. Super. Ct. No. 1070 MDA 2013, decided June 11, 2014); applies Pa. Supreme Court precedent: Rau v. Wilden Acres, Inc., 376 Pa. 493 (1954); Chamberlin v. Ciaffoni, 96 A.2d 140 (Pa. 1953); Lucas v. Ford, 69 A.2d 114 (Pa. 1949); Pfeiffer v. Brown, 30 A. 844 (Pa. 1895); Shamnoski v. PG Energy, 858 A.2d 589 (Pa. 2004)
- What it means for your yard
- Pennsylvania generally doesn't hold you liable for rain that runs downhill the way it naturally would, and ordinary grading and building on your own lot isn't enough by itself. But if you divert runoff out of its natural path, collect it with pipes, downspouts or swales and send it onto a neighbor's land in a concentrated flow, or unreasonably increase how much reaches them, you can be liable for the damage.
- Construction stormwater permit
- Pennsylvania Department of Environmental Protection (DEP), Bureau of Clean Water: 1 acre or more of earth disturbance (or less if part of a larger common plan of development or sale that involves 1 acre or more): NPDES permit for Stormwater Discharges Associated with Construction Activities (PAG-01 or PAG-02 general permit, or an individual permit) under 25 Pa. Code 102.5(a)
- State rules below 1 acre
- Written erosion and sediment (E&S) control plan required for 5,000 sq ft or more of total earth disturbance, or any size with potential to discharge to High Quality or Exceptional Value waters (25 Pa. Code 102.4(b)(2)); E&S best management practices required for all earth disturbance regardless of size (102.4(b)(1))
- Local rules
- Townships, boroughs and counties often have their own grading, stormwater management and driveway ordinances, which can require a permit or stormwater plan for much smaller projects.
- Good to know
- In Pennsylvania you're generally not liable for rain that naturally runs downhill, but you can be if you divert it, concentrate it onto a neighbor or unreasonably increase it. Disturbing 5,000 sq ft or more of ground requires a written erosion and sediment control plan, and a construction stormwater permit is needed at 1 acre.
Contractor licensing in Pennsylvania
- Statewide rule
- Registration
- Agency
- Pennsylvania Office of Attorney General (Home Improvement Consumer Protection Act)
- Who needs it
- Home improvement contractors, including subcontractors and sole proprietors, must register with the Attorney General unless their home improvements totaled less than $5,000 in the previous taxable year.
- When it applies
- Contractors whose home improvements totaled $5,000 or more in the previous taxable year; HICPA covers home improvement work where the total cash price agreed is more than $500
- Check a contractor
- Official lookup
- Good to know
- Registration under the Home Improvement Consumer Protection Act (Act 132 of 2008, effective July 1, 2009) is not an endorsement of skill. Check with your municipality for any local licensing requirements.
Contractor license requirements in every state
Contractor deposits and your right to cancel in Pennsylvania
- Deposit limit
- On home improvement contracts over $5,000, a contractor may not take a deposit of more than one-third of the contract price, plus the cost of any special-order materials designated in the written contract (73 P.S. § 517.9(10)).
- Who it covers
- Home improvement work on private residences where the total price is more than $500 (73 P.S. § 517.2); the deposit cap applies only to contracts over $5,000 and does not apply to home improvement retailers that post the required letter of credit (§ 517.9(10)(ii)).
- Right to cancel
- The owner may rescind a home improvement contract without penalty within three business days of signing, regardless of where it was signed (73 P.S. § 517.7(b)); the right does not apply to emergency work under the UTPCPL's emergency provisions. On April 30, 2026, the Pennsylvania Supreme Court held that contractors must honor a cancellation given by any means, including by phone or in person, as long as the contractor has actual notice (Commonwealth v. Gillece Services, L.P., No. 32 WAP 2024).
- Written contract
- A home improvement contract is valid and enforceable against the owner only if it is in writing and legible and includes the contractor's PA HIC registration number, signatures, the entire agreement, the date, the contractor's name, address and phone, approximate start and completion dates, a description of work and materials, the total price, the down payment and any special-order amounts stated separately, subcontractor names, insurance information, the Attorney General's toll-free number and the notice of the right to rescind (73 P.S. § 517.7(a)).
- Other protections
- Contractors must register with the Attorney General before doing home improvement work unless their home improvement work totaled less than $5,000 in the previous tax year (73 P.S. §§ 517.2, 517.3). Home improvement retailers that post an irrevocable letter of credit of $100,000 per store (up to $2 million) and use registered, insured contractors are exempt from the deposit cap (§ 517.9(10)(ii)).
- The law
- Home Improvement Consumer Protection Act (Act 132 of 2008), 73 P.S. §§ 517.1–517.18; §§ 517.2, 517.7, 517.9(10)
- Good to know
- In Pennsylvania, a contractor can't take more than one-third down on a home improvement job over $5,000, plus the cost of special-order materials listed in the contract. You can cancel within three business days of signing wherever you signed, and since an April 2026 state Supreme Court ruling a phone call or in-person notice counts, though written notice is still the best proof.
Contractor deposit limits in every state
Mechanics lien deadlines in Pennsylvania
- Lien deadline (prime)
- File the claim within 6 months after completion of the claimant's work (last labor or last delivery of materials under its contract), serve notice of filing on the owner within 1 month after filing, and file an affidavit of service within 20 days after service (49 P.S. §§ 1201(8), 1502).
- Lien deadline (sub/supplier)
- Same as prime, after the 30-day notice. No sub lien at all on a qualifying home whose owner paid the full contract price (49 P.S. § 1301(b)). An owner or contractor can force a sub to file within 30 days by rule (§ 1506).
- Preliminary notice (sub/supplier)
- Not required on typical residential jobs. The old preliminary notice for alterations and repairs (§ 501(a)-(b)) was deleted by amendment. On searchable projects ($1.5 million+) where a Notice of Commencement was filed and posted, a notice of furnishing is due within 45 days after first furnishing (49 P.S. § 1501.3(b)).
- Notice of intent
- Subcontractors: formal written notice of intention to file to the owner at least 30 days before filing the claim (49 P.S. § 1501(b.1)). Not required for prime contractors.
- Enforce within
- Action within 2 years after filing the claim, unless the owner extends in writing; verdict or judgment within 5 years after filing (49 P.S. § 1701(b), (d)).
- Homeowner rules
- A sub has no lien on residential property if the owner (or tenant) paid the full contract price, the home is or will be the owner's residence, and it is a single townhouse or a one- or two-unit building (49 P.S. § 1301(b)). Lien waivers on residential property are valid if written and signed; on nonresidential jobs, waivers are void unless given for payment received (§ 1401). Claims must exceed $500 (§ 1301(a)).
- The law
- Mechanics' Lien Law of 1963, Act 497 of 1963, 49 P.S. §§ 1101-1902
- Good to know
- In Pennsylvania, a homeowner who paid the contractor the full contract price can't be liened by a subcontractor on a one- or two-unit home or townhouse they live in. Subs must give the owner 30 days' written notice before filing.
Mechanics lien deadlines in every state
Workers' comp requirements in Pennsylvania
- Who must carry it
- Any employer with at least 1 employee who could be injured in Pennsylvania must carry coverage, including part-time workers and family members such as a spouse or children, unless every employee is excluded (PA Workers' Compensation Act; PA L&I). No separate construction threshold.
- Owners and officers
- Sole proprietors and general partners with no other employees are excluded, as are LLCs whose only workers are members. Executive officers may apply to be excluded: an ownership interest in an S corporation or at least 5% of a C corporation is required; nonprofit officers must serve unpaid (WC Act § 104; PA L&I, forms LIBC-509/513). Family members get no exemption.
- Subcontractors
- A contractor who subcontracts work is liable for compensation to the sub's employees unless the sub has secured it. Anyone who contracts to have soil, rock or mineral excavation or drilling, or timber cutting, done, or work that's a regular or recurrent part of its own business, counts as a 'contractor' for this rule (WC Act § 302(a)). An employer who lets a contractor's workers onto premises it controls to do part of its regular business is also liable if the contractor hasn't insured (§§ 203, 302(b)). Municipalities must require proof of coverage, or an affidavit of no employees, before issuing a building permit (PA L&I).
- Homeowners
- Domestic workers are excluded unless they've elected to come under the Act (PA L&I). For most work, the statutory-employer rules reach contractors and businesses having their own regular business done, but § 302(a) treats anyone who contracts for excavation, drilling or timber cutting as a 'contractor' without that business limit, so a homeowner hiring excavation should confirm the contractor is insured. Section 302(a) doesn't apply to an owner or lessee of land principally used for agriculture who isn't a covered employer and contracts for timber removal.
- Penalties
- Failure to insure is a third-degree misdemeanor punishable by up to a $2,500 fine and 1 year in prison for each day; intentional failure is a third-degree felony punishable by up to a $15,000 fine and 7 years for each day; the employer must pay all benefits awarded and can be sued by the injured worker (WC Act § 305; PA L&I).
- The law
- Pennsylvania Workers' Compensation Act, Act of June 2, 1915, P.L. 736, No. 338 (77 P.S. § 1 et seq.); §§ 104, 203, 302, 305
- State agency
- Pennsylvania Department of Labor & Industry, Bureau of Workers' Compensation
- Good to know
- Pennsylvania requires coverage with one employee, including part-timers and your own family. Your township will ask for proof of coverage, or an affidavit that you have no employees, before it issues a building permit.
Workers' comp requirements in every state
Planting zones in Pennsylvania
- 2023 USDA zones
- 5b to 8a
- Coldest-night range
- −15°F to 15°F
- Coldest area
- The highlands of the northern tier
- Warmest area
- The Delaware River waterfront in Delaware County (e.g., Eddystone, Ridley Park)
- Example cities
- Philadelphia: 7b, Pittsburgh: 7a, Harrisburg: 7a, Erie: 7a
- Good to know
- Much of Pennsylvania moved a half zone warmer in 2023; Lancaster County, for example, went from 6b to 7a. The northern tier highlands stay the coldest part of the state, and the Delaware River waterfront below Philadelphia is the mildest.
Frost dates in Pennsylvania
| Station | Last spring frost | First fall frost | Frost-free days |
|---|---|---|---|
| Philadelphia Southeast Pennsylvania | April 2 | November 10 | 224 |
| Pittsburgh Western Pennsylvania | April 23 | October 23 | 181 |
| Williamsport North-central (West Branch Susquehanna valley) | April 24 | October 23 | 180 |
| State College Central Pennsylvania (Nittany Valley) | April 20 | October 26 | 187 |
| Lock Haven North-central (West Branch Susquehanna valley) | April 30 | October 20 | 173 |
| Bradford Northern mountains (McKean County) | May 18 | October 1 | 136 |
- Typical range
- Last frost early Apr (Philadelphia) to mid-May (Bradford); first frost early Oct (Bradford) to early Nov (Philadelphia)
- Good to know
- These are typical (50%) dates from NOAA's 1991–2020 climate normals, so about half of years still bring a 32°F night after the listed spring date. In Pennsylvania, the last spring frost at the stations listed ranges from early April around Philadelphia to mid-May around Bradford. Penn State Extension's York County transplanting guide plans around a May 1 last frost and an October 1 first frost, more cautious than NOAA's dates for every station here except Bradford.
- Local frost or planting guide
- Penn State Extension
Frequently Asked Questions
What building code does Pennsylvania use?
2021 International Residential Code with Pennsylvania modifications (Uniform Construction Code, 34 Pa. Code Chapter 403). It applies as follows: statewide, but municipalities can opt out. Your local building department can confirm the edition and amendments for your address.
How deep is the frost line in Pennsylvania?
Frost depth is set by local building departments. Typical local values: 30-36 in. in the jurisdictions listed. Footings for houses, additions and attached decks go below it.
How much can a contractor ask for up front in Pennsylvania?
On home improvement contracts over $5,000, a contractor may not take a deposit of more than one-third of the contract price, plus the cost of any special-order materials designated in the written contract (73 P.S. § 517.9(10)). Cancel rights: The owner may rescind a home improvement contract without penalty within three business days of signing, regardless of where it was signed (73 P.S. § 517.7(b)); the right does not apply to emergency work under the UTPCPL’s emergency provisions. On April 30, 2026, the Pennsylvania Supreme Court held that contractors must honor a cancellation given by any means, including by phone or in person, as long as the contractor has actual notice (Commonwealth v. Gillece Services, L.P., No. 32 WAP 2024).
How long does a contractor have to file a mechanics lien in Pennsylvania?
File the claim within 6 months after completion of the claimant’s work (last labor or last delivery of materials under its contract), serve notice of filing on the owner within 1 month after filing, and file an affidavit of service within 20 days after service (49 P.S. §§ 1201(8), 1502). Subcontractors and suppliers may have different notice rules; see the section above.
What planting zone is Pennsylvania?
On the 2023 USDA map, Pennsylvania runs from zone 5b to 8a. Examples: Philadelphia 7b, Pittsburgh 7a, Harrisburg 7a. Enter your ZIP on the USDA map for your exact zone.
Do contractors need workers' comp in Pennsylvania?
Any employer with at least 1 employee who could be injured in Pennsylvania must carry coverage, including part-time workers and family members such as a spouse or children, unless every employee is excluded (PA Workers’ Compensation Act; PA L&I). No separate construction threshold. Owner exemptions and subcontractor rules are in the workers’ comp section above.
When is the last frost in Pennsylvania?
At the NOAA stations we list: Last frost early Apr (Philadelphia) to mid-May (Bradford); first frost early Oct (Bradford) to early Nov (Philadelphia). These are typical (50%) dates from the 1991–2020 climate normals, so about half of years still bring a 32°F night after the spring date.
This page is general information, not legal or tax advice. Rules change; the agencies and statutes linked above have the final word.
Pennsylvania in each 50-state guide: Frost line depth · 811 dig laws · Retaining wall permits · Contractor licensing · Contractor deposit limits · Building codes · Planting zones · Mechanics lien deadlines · Workers' comp · Frost dates · Drainage laws · Noxious weed laws · Rainfall and snowfall · Landscaper pay · Pesticide applicator licensing · Landscaping sales tax · All state guides
Last checked October 31 and November 1, 2026 against official state and local sources for this state. Rules change; your state agency or local building department has the final word. Spot something out of date? Email info@muthlerlandscaping.com and we’ll fix it.
Groundwork Design Co. · designed by builders
Get it drawn right before anyone digs
Groundwork Design Co. draws your patio, wall or walkway to scale, with the layout, sizes and materials any local contractor can price. Single-space plans start at $349; Full Yard plans add a grading and drainage concept.
See design plansSee sample plans
In central PA? We build patios, walls, drainage and site work under these Pennsylvania rules every week. Talk to our crew.
Using this guide? Link to it or cite it. It’s free to use with a link back, and we keep it updated against official sources.
Cite as: Muthler Landscaping & Construction, “Pennsylvania Building Codes, Permits and Contractor Rules,” https://muthlerlandscaping.com/state-guides/pennsylvania/ (last checked November 9, 2026).
Get an email when your state’s rules change
We re-check every entry against official sources. Tell us your state and we’ll email you when something changes.