How High Does a Deck Railing Have to Be? Deck Guard Code in Texas (IRC)

Archetex Outdoor Design Co. · Updated 2026-11-05

QUICK ANSWER

Under the IRC that Dallas-area cities enforce, a deck needs a guard (railing) wherever the walking surface is more than 30 inches above the floor or grade below, measured anywhere within 36 inches of the edge. That guard must be at least 36 inches tall (34 inches along stairs), with no opening that passes a 4 inch sphere (4-3/8 inches on stairs). Dallas enforces the 2021 IRC without changing these guard rules, and Plano, Frisco and McKinney have moved to the 2024 IRC, which lists the same 36 inch and 4 inch rules.

Many railing guides give you "36 inches" and stop there. This one covers what an inspector actually checks: when a guard is required, how the height is measured, how big the gaps can be, how strong the rail has to be, how the posts tie into the deck, and which edition of the code your city enforces.

Code wording here is quoted from government copies that reproduce it and from the trade magazine JLC, and other numbers are credited to their source. Your city's inspector has the final say.

Texas residential building code deck guardrail minimum height: 36 inches (IRC R312) and local amendments in 2026

Texas does not write its own deck code. State law makes the International Residential Code (IRC) the residential code for cities and lets each city adopt its own edition and amendments. The 2021 and 2024 editions used in Dallas, Plano, Frisco and McKinney both set the deck guard at 36 inches.

The height rule is section R312.1.2. In the 2021 IRC as adopted in Washington State, it says required guards "shall be not less than 36 inches (914 mm) in height as measured vertically above the adjacent walking surface". Two exceptions follow for stairs:

  • Guards on the open sides of stairs "shall have a height of not less than 34 inches", measured from the line connecting the tread nosings.
  • Where the top of the guard also serves as the stair handrail, it must be "not less than 34 inches (864 mm) and not more than 38 inches" high.

How Texas law works: Local Government Code section 214.212 makes the IRC "as it existed on May 1, 2012" the residential building code for every city. It covers building, altering, remodeling, enlarging and repairing homes. A city may adopt local amendments by ordinance after a public hearing, and it may review and consider later ICC changes to the IRC. The section was last amended by HB 738, effective January 1, 2022. That is why Dallas and its suburbs are on different editions today.

One more point people miss: 36 inches is a minimum, not a target. A taller guard is allowed, but it changes how the posts must be connected (see the 42 inch section below).

When does a deck need a railing? The 30-inch rule

A guard is required on any open side of a deck, stair, ramp or landing that is more than 30 inches above the floor or grade below, at any point within 36 inches of the edge.

The 2021 IRC wording (section R312.1.1, as reproduced in the City of Lake Stevens guard handout) lists open-sided walking surfaces, including floors, stairs, ramps and landings, that are located "more than 30" measured vertically to the floor or grade below at any point within 36" horizontally to the edge of the open side." The American Wood Council's DCA 6 deck guide states the same trigger.

Why "within 36 inches" matters on a sloped yard

The measurement is not taken only at the deck edge. You measure down to the ground anywhere within 3 feet out from the edge. On a yard that slopes away from the house, a deck that sits 26 inches above the soil at its posts can be more than 30 inches above the ground a couple of feet beyond them. If any point in that 36 inch band is more than 30 inches down, that side needs a guard.

Insect screening does not count as a guard, so a screened porch high enough to need a guard still needs a real one.

The same 30 inch line shows up in permits. Plano's 2024 IRC (R105.2, item 10) exempts a deck from a permit only if it is 200 square feet or less, "not more than 30 inches (762 mm) above grade at any point", not attached to the house, and not serving the required exit door.

For railings between tiers, see when you need a railing between deck levels. For decks that stay under 30 inches, see ground-level decks and optional railings.

How railing height is measured (deck, stairs and benches)

Measure from the walking surface (the top of the decking) straight up to the top of the guard. On stairs, measure from a line connecting the tread nosings.

LocationMinimum heightMeasured fromSource
Deck, landing or porch floor36 inThe adjacent walking surfaceR312.1.2 (2021 IRC as adopted in Washington); Des Moines 2021 IRC handout
Open side of a stair34 inLine connecting the tread nosingsR312.1.2 exception 1; Fine Homebuilding (2020)
Stair guard that is also the handrail34 in, and no more than 38 inLine connecting the tread nosingsR312.1.2 exception 2
Guard next to fixed seating36 in (best practice)The seat, not the deckAWC DCA 6 (guidance, not IRC law)

Built-in benches

The IRC measures from the walking surface. DCA 6 goes further and calls for measuring from fixed seating as a best practice, to cut the risk of someone standing on the seat and falling over the top of the guard. That is DCA 6 advice, not IRC law, but it is worth asking for if you plan a built-in bench along the edge.

DCA 6 also says the openings underneath a fixed bench used in place of a guard must not pass a 4 inch sphere.

Baluster spacing: the 4-inch sphere rule and the stair exceptions

No opening in a required guard may let a 4 inch sphere pass, including the gap at the bottom between the guard and the deck. Along the side of a stair the limit is 4-3/8 inches, and the triangle under the stair rail must stop a 6 inch sphere.

OpeningLargest sphere allowed throughSource
Between balusters, rails or other infill on the deckLess than 4 inDes Moines 2021 IRC handout
Between the bottom rail and the deck surfaceLess than 4 inDes Moines 2021 IRC handout
Infill on the open side of a stairLess than 4-3/8 inFine Homebuilding (2020); Weyerhaeuser (2025, citing 2024 IRC R312.1.3)
Triangle formed by the riser, tread and bottom railLess than 6 inDes Moines 2021 IRC handout; Weyerhaeuser (2025)
Openings under a fixed bench used as a guardLess than 4 inAWC DCA 6

The test is the clear opening, not the spacing measured from the center of one baluster to the center of the next. An inspector checks whether a ball of that size fits through the gap. Thicker balusters set at the same centers leave smaller gaps, and thinner ones leave bigger gaps.

The bottom gap is easy to miss. The 4 inch rule applies between the bottom rail and the decking as well as between balusters, so a bottom rail raised high off the deck for drainage can fail even when every baluster is set right.

Fine Homebuilding's Glenn Mathewson notes that the infill limits "only apply to required guards". A railing on a deck under 30 inches is not held to the 4 inch rule, though experts differ on what else still applies (see the checklist section).

How strong a deck railing has to be (200 lb, outward and downward)

A guard has to resist a 200 pound concentrated load at the top, and since the 2021 IRC that load is checked outward and downward, not in every direction.

JLC's Glenn Mathewson notes that earlier editions said any direction, and that the 2021 IRC now separates guard loads from handrail loads, since a guard is not there to stop an inward fall.

LoadNumberSource
Concentrated load at the top of a guard200 lb, outward and downward (2021 IRC)JLC (Mathewson, 2021)
Infill (balusters, panels)50 lb on 1 sq ft, applied horizontally, not at the same time as other live loadsAWC DCA 6, IRC Table R301.5
Manufactured rail test, concentrated500 lb (200 lb times a 2.5 safety factor), at mid-span, beside a post and on top of a postDecks.com (2025)
Manufactured rail test, infill125 lb over 1 sq ftDecks.com (2025)
Manufactured rail test, uniform125 lb per footDecks.com (2025)

Mathewson also wrote in Fine Homebuilding that "all guards and handrails, required or not, must resist a 200-lb. concentrated load". That matters for low decks, where people sometimes treat a railing as decoration.

The 2.5 safety factor is why you see 500 pounds on railing kit test reports. JLC's Mike Guertin notes that Virginia Tech's 2005 testing found that most common post connection details would not pass the code minimum of a 200 pound load plus a 2.5 safety factor, which is where the 500 pound test load comes from.

On deflection (how much a rail bends under load), JLC's preview of the 2024 IRC said the L/240 limit "does not apply to guards". The committee could not agree on a guard deflection test, and the subject is due to come up again for the 2027 edition.

A warning about older guides: DCA 6, which is based on the 2015 IRC, and some Washington State handouts still say 200 pounds in any direction. That is the older wording or a local amendment, so don't use those documents to settle the direction question.

Guard posts: how a railing has to attach to the deck (IRC R507.10, DCA 6, Simpson)

The post connection is where code attention has focused. The code requires a continuous load path from each guard post into the deck joists, bans notching 4x4 posts at the connection, and does not allow connections that rely only on screws in end grain.

What the code says (R507.10)

As quoted by JLC's Mike Guertin, R507.10.1 says guard loads "shall be transferred to the deck framing with a continuous load path to the deck joists." R507.10.1.1 adds that where a guard attaches to the side of a joist or beam, that member "shall be connected to the adjacent joists to prevent rotation of the joist or beam," and "Connections relying only on fasteners in end grain withdrawal are not permitted."

  • Notching: R507.10.2 bans notching 4x4 wood guard posts at the connection to the supporting structure. JLC's Mathewson points out the ban covers only the connection point, so a turned post, or one notched elsewhere along its length, is not automatically banned.
  • Surface-mounted posts: posts fastened on top of the deck cannot rely on the decking alone. Other guard types and materials are allowed if installed per the maker's instructions (R507.10.3 and R507.10.4, per JLC). The Des Moines handout also says guards on top of the framing follow the manufacturer's instructions.
  • Post spacing: the Des Moines handout sets guard posts no more than 6 feet on center. That is that city's rule, not IRC text, so ask your inspector and follow the railing maker's span.

The DCA 6 post detail

The American Wood Council's DCA 6 guide (based on the 2015 IRC) gives a prescriptive post connection. It is guidance, not Dallas law.

ItemDCA 6 minimum
Guard post4x4 nominal, bending value at least 1,100 psi
Joist or rim the post attaches toAt least 2x8
Hold-down connectorAt least 1,800 lb allowable tension
Guard height this detail covers36 in maximum
Post parallel to the joistsAttaches to the outside joist
Post perpendicular to the joistsAttaches to the rim joist

DCA 6 is clear that the 1,800 pound detail is sized for a 36 inch guard: "A higher rail height requires design of a higher capacity connector."

Tested hardware and blocking

Simpson Strong-Tie's DTT2 tension tie is one tested option. Simpson's catalog page says it has been "tested and evaluated in deck guardrail post applications" to resist code lateral forces at the top of the rail. The DTT2Z is listed at 1,825 pounds allowable tension in Douglas fir or Southern pine, on a single 2x with 8 SDS 1/4 x 1-1/2 inch screws. Simpson's drawing covers outward force, and a second DTT2 at the lower bolt handles inward force.

Blocking matters too. Guertin notes that a single 2x block can split under load, and he prefers a vertical 4x4 block. FastenMaster and Simpson both publish block-and-screw details they report meet the 500 pound test.

The 2024 IRC also added R502.11, guard post attachment to floor framing, which covers interior guards and exterior deck posts (per the City and County of Broomfield's summary of 2024 changes).

Simpson's 2026 deck safety checklist lists the guardrail infill, the guardrail-to-post connection and the guard-post-to-deck-framing connection as critical, and treats a wobbly railing as a warning sign. To check an existing rail, see the guard wobble test. For posts on tall decks, see second-story deck code and cost.

Stair guards vs stair handrails

A stair guard keeps people from falling off the open side (34 inches high, openings under 4-3/8 inches, a 6 inch triangle limit), while a handrail is the graspable rail you hold, required once there are four or more risers and set 34 to 38 inches above the nosings. DCA 6 puts it this way: "All stairs with 4 or more risers shall have a handrail on at least one side." A stair often needs both, and a stair guard can double as the handrail only if its top is 34 to 38 inches high. Dallas also changes the stair rise and run rules. Grip sizes, landings, stringers and the Dallas riser amendment are covered in our deck stair code guide.

Are horizontal and cable railings allowed? (climbability)

The IRC does not ban horizontal rails or cable. The "ladder effect" wording in the 2000 IRC was dropped, and ICC committees have turned down climbability limits, though some local officials and inspectors still raise it.

According to a Feeney representative replying to a reader letter in JLC (2015), the 2000 IRC barred horizontal rails or patterns that create a ladder effect, the wording was removed in the 2001 IRC Supplement, and the IBC never had it.

JLC reported in 2008 that the ICC's Code Technology Committee studied climbable guards and concluded that the evidence "shows no indication that a problem exists" and that no code changes on climbability were needed.

Home inspector Reuben Saltzman, who quotes the 2000 IRC ban (section R316.2), wrote in 2018 that the IRC from 2006 on contains no such language, so "there is nothing in the code that says you can't do this". He adds that an inspector may still flag a climbable rail as a safety concern.

Things to keep in mind:

  • Horizontal and cable infill still has to meet the 4 inch sphere rule like any other required guard.
  • The JLC letter writer points out that cable can also run vertically to remove the climbing concern.
  • Some local jurisdictions may still apply the old interpretation, so ask your building department before you order.

How the infill types compare on look and upkeep is covered in our railing types and cost guide, linked in the 42 inch section below.

Which code does your city use? Dallas, Plano, Frisco and McKinney

Dallas enforces the 2021 IRC. Plano, Frisco and McKinney have adopted the 2024 IRC. Dallas's and Plano's amendments leave the guard rules alone, and we did not check Frisco's or McKinney's amendments.

CityIRC editionEffective or approvedGuard amendments checked?
Dallas2021 IRC with Dallas amendments (Chapter 57, Ordinance 32424; Ordinance 33099 in 2025)Effective May 12, 2023Yes: no R312 or R507.10 changes found
Plano2024 IRC with amendments (Ordinance 2025-6-15)Adopted in 2025; city lists "2024 Codes (Effective August 1)"Yes: no R312 or R507 entries found
Frisco2024 IRC and 2024 ISPSC, with amendmentsEffective March 1, 2026No: amendments not checked
McKinney2024 IRC and 2024 ISPSC, with amendmentsApproved by City Council October 1, 2025No: amendments not checked

Dallas says the "2021 International Code Council codes are effective as of May 12, 2023." A text search of the 71 page amending ordinance for Chapter 57 (Ordinance 32424, passed April 12, 2023) found no change to R312 or R507.10. It does change stair risers and treads. A 2025 amendment, Ordinance 33099, changed other Chapter 57 sections (R101, R202, R301, R302 and a new R334) and did not touch the guard rules.

Plano Ordinance 2025-6-15 repeals the 2021 IRC ordinance and adopts the 2024 IRC with amendments, after a Building Standards Commission hearing on April 15, 2025. Plano had been on the 2021 IRC since Ordinance 2022-1-17.

Frisco lists the "2024 International Residential Code (IRC), with amendments, effective 03-01-2026". Its amendments could not be opened for this guide, so ask the city whether any change guards.

McKinney's building inspections page says the City Council approved the 2024 IRC, the 2024 ISPSC and other 2024 codes, with amendments, on October 1, 2025. Before that, an August 2025 capture of the same page said the City Council approved the 2021 codes, with amendments, on January 1, 2023. We did not open the amendments.

For Richardson, Garland, Rockwall, Rowlett, Addison and Farmers Branch, we did not research the code edition, so call the city's building department and ask which IRC edition and amendments apply.

Why you see 42 inches: commercial code and taller rails

42 inches is the minimum guard height in the International Building Code (IBC), which covers commercial buildings and most apartment buildings. A house built under the IRC needs only 36 inches, though you can choose 42.

Viewrail's code explainer lays out the split: the IBC sets guards at 42 inches minimum and covers most multifamily buildings with three or more units plus commercial and public buildings, while the IRC (36 inches) covers single-family homes, duplexes and townhouses. Decks.com says the 42 inch IBC height applies to commercial and multi-family decks, and that some jurisdictions require 42 inches for homes.

If you choose 42 inches for a tall deck, the post connection has to change with it. DCA 6's 1,800 pound hold-down is sized for a 36 inch maximum guard height, and a taller rail "requires design of a higher capacity connector." Ask your builder how the posts will be attached.

Railing prices, the main infill types and the 36 versus 42 inch kit choice are in our guide to deck railing types and cost.

Deck railings next to a pool: barrier rules are different

A pool barrier has its own code, the International Swimming Pool and Spa Code (ISPSC). In Dallas it must be at least 48 inches tall on the outside, with no opening that passes a 4 inch sphere, so a 36 inch deck railing does not meet it.

Dallas Chapter 62 (the 2021 ISPSC with Dallas changes) says: "The top of the barrier shall be not less than 48 inches (1219 mm) above grade where measured on the side of the barrier that faces away from the pool or spa." The gap under the barrier is limited to 2 inches over grass or gravel and 4 inches over a solid surface, and solid barriers can have no handholds or footholds. For an above-ground pool, the barrier sits on grade or on top of the pool, with no more than 4 inches between the pool top and the barrier.

Frisco and McKinney enforce the 2024 ISPSC, and Dallas the 2021 edition. A deck railing beside a pool is not automatically a pool barrier, so check whether your deck edge is part of the barrier. If it is, the 48 inch rules apply. The full barrier table is in our guide to Dallas pool barrier rules.

Deck railing code checklist (for planning or inspection)

Before the inspector comes, check six things: where a guard is required, its height, its openings, its load path at each post, its stair guards, and whether the edge is also a pool barrier.

  1. Where: more than 30 inches down anywhere within 36 inches of an open side means a guard.
  2. Height: 36 inches on the deck, 34 inches on stairs.
  3. Openings: under 4 inches (including under the bottom rail), 4-3/8 inches on stairs, 6 inches at the stair triangle.
  4. Posts: a continuous load path into the joists, no notched 4x4 at the connection, no end-grain-only screws.
  5. Stairs: a stair guard on any open side more than 30 inches up, and a handrail once there are four risers.
  6. Pool: if the deck edge is part of a pool barrier, 48 inches and the ISPSC rules.

Optional railings on low decks

Experts read this differently, so ask your city. A Virginia county plan reviewer told JLC that the IRC has no guard requirements for walking surfaces under 30 inches, though a proprietary railing system must still follow the maker's instructions. Mathewson, writing in Fine Homebuilding, says the opening limits apply only to required guards, but that all guards, required or not, must resist the 200 pound load.

Archetex Outdoor Design Co. designs and builds composite and wood decks in Dallas and nearby cities, with a free site visit and written price. If you want the guard layout and post connections worked out before you compare quotes, see our Dallas deck builder page.

Planning this in Dallas?

Matthew gives a free site visit and a written price. Call or send the details.

(430) 318-6275

Questions people ask

30 inches. The IRC requires a guard where the walking surface is more than 30 inches above the floor or grade below at any point within 36 inches of the edge. On a sloped yard, measure to the lowest ground within that 36 inch band, not just at the posts.

No opening in a required guard may let a 4 inch sphere pass, including the gap between the bottom rail and the deck. On the open side of a stair the limit is 4-3/8 inches, and the triangle formed by the riser, tread and bottom rail must not pass a 6 inch sphere. The test is the clear gap between balusters, not center-to-center spacing.

Not for a house built under the IRC, which sets the guard at 36 inches minimum. The 42 inch height comes from the International Building Code (IBC), which covers commercial buildings and most apartment buildings. Texas lets each city adopt its own edition and amendments, so ask your city if you are unsure.

Experts read it differently, so ask your city. Fine Homebuilding's Glenn Mathewson says the 4 inch opening limits apply only to required guards, but that all guards, required or not, must resist a 200 pound load. A Virginia county plan reviewer told JLC the IRC has no guard requirements under 30 inches, though a railing kit must still be installed per the maker's instructions.

A 42 inch rail is allowed on a house, but the posts need more than the standard detail. The American Wood Council's DCA 6 sizes its 1,800 pound post hold-down for a 36 inch maximum guard height and says a higher rail requires a designed, higher capacity connector. Ask your builder how the taller posts will be attached before you choose.

Dallas enforces the 2021 IRC with Dallas amendments (Ordinance 32424), effective May 12, 2023. Its amendments change stair risers and treads but make no change to the guard rules (R312) or guard post rules (R507.10). Plano, Frisco and McKinney have adopted the 2024 IRC.

Archetex Outdoor Design Co. is a Dallas deck builder that designs and builds custom composite and wood decks, covered decks and pavilions. Owner Matthew serves Dallas, Plano, Frisco, McKinney, Richardson, Garland, Rockwall, Rowlett, Addison and Farmers Branch. The company is rated 5.0 on Google and offers a free site visit and written price.

Sources

  1. Guardrails Handout (2021 International Residential Code Section R312 Guards), City of Lake Stevens, WA, Marked "Approved 7.24"
  2. WAC 51-51-0312: Section R312 Guards and window fall protection (Washington's adopted 2021 IRC), Cornell Law School Legal Information Institute, WSR 23-23-104, effective 2024-03-16
  3. DCA 6: Prescriptive Residential Wood Deck Construction Guide (2015 IRC edition), American Wood Council, 2015 IRC edition (2018)
  4. Ordinance No. 2025-6-15: Residential Code (2024 IRC) and amendments, City of Plano, 2025
  5. Codes and Ordinances, City of Plano, Accessed 2026-11-04
  6. Ordinance No. 2022-1-17: Residential Code (2021 IRC), City of Plano, 2022
  7. Guardrails vs. Handrails: Where Do You Need Them? (Know the Code, issue 289), Fine Homebuilding (Glenn Mathewson), February/March 2020
  8. Residential Decks, Based on 2021 IRC, City of Des Moines Permit and Development Center, Undated (2021 IRC)
  9. Deck Railing Height Codes: What Dealers Need to Know, Weyerhaeuser, 2025-08-05
  10. Guards, Handrails, and the 2021 IRC, JLC (Glenn Mathewson), 2021-12-09
  11. Deck Railing Codes, Decks.com (Decks Team), 2025-03-05
  12. Connecting Guard Posts to Deck Frames, JLC (Mike Guertin), 2022-03-17
  13. What's Ahead for Decks in the 2024 IRC, JLC (Glenn Mathewson), 2023-06-22
  14. DTT Deck Tension Tie (catalog page C-C-2021), Simpson Strong-Tie, 2021, updated 2022-07-01
  15. Deck Safety Month: Inspection Checklist and Critical Connections for Existing Decks, Simpson Strong-Tie, 2026-05-28
  16. 2024 Code Significant Changes Handout, City and County of Broomfield, CO, Undated (2024 codes)
  17. Current City Codes and Ordinances (Know the Code), archived copy, City of Dallas Planning and Development, Captured 2026-10-21
  18. Ordinance No. 32424 (file 23-0471): Chapter 57, 2021 IRC with Dallas amendments, archived copy, City of Dallas, Passed 2023-04-12, effective 2023-05-12
  19. Ordinance No. 33099 (file 25-0688), archived copy, City of Dallas, Effective 2025-05-23
  20. Adopted Codes, City of Frisco, Accessed 2026-11-04
  21. Building Inspections, archived copy, City of McKinney, Captured 2026-07-24
  22. Building Inspections, archived copy (2021 codes), City of McKinney, Captured 2025-08-26
  23. Texas Local Government Code Section 214.212: International Residential Code, Public.Law, Accessed 2026-11-04
  24. Cable Railing Caution (letter, with reply from Feeney), JLC, 2015-10-07
  25. Code Rejects 'Climbability' Restrictions, JLC (Laurie Elden), 2008-07-01
  26. Guards That Make a Ladder, Structure Tech / HomesMSP (Reuben Saltzman), June 2018
  27. 'Optional' Deck Railings and the Code, JLC (Chuck Bajnai), 2017-12-29
  28. IBC vs. IRC Railing Code Requirements, Viewrail, Undated
  29. Chapter 62: Dallas Swimming Pool and Spa Code (2021 ISPSC with Dallas amendments), archived copy, City of Dallas, 2022-05-02
Covered patio with cedar beams and string lighting, lit at night, by Archetex Outdoor Design Co.

DALLAS, TEXAS · 32.7767° N, 96.7970° W

TALK TO MATTHEW ABOUT YOUR DECK.

Tell us about the house and what you want from the space. We will come out, measure up and give you a free written price.

CALL (430) 318-6275
CALL NOW