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.
| Location | Minimum height | Measured from | Source |
|---|---|---|---|
| Deck, landing or porch floor | 36 in | The adjacent walking surface | R312.1.2 (2021 IRC as adopted in Washington); Des Moines 2021 IRC handout |
| Open side of a stair | 34 in | Line connecting the tread nosings | R312.1.2 exception 1; Fine Homebuilding (2020) |
| Stair guard that is also the handrail | 34 in, and no more than 38 in | Line connecting the tread nosings | R312.1.2 exception 2 |
| Guard next to fixed seating | 36 in (best practice) | The seat, not the deck | AWC 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.
| Opening | Largest sphere allowed through | Source |
|---|---|---|
| Between balusters, rails or other infill on the deck | Less than 4 in | Des Moines 2021 IRC handout |
| Between the bottom rail and the deck surface | Less than 4 in | Des Moines 2021 IRC handout |
| Infill on the open side of a stair | Less than 4-3/8 in | Fine Homebuilding (2020); Weyerhaeuser (2025, citing 2024 IRC R312.1.3) |
| Triangle formed by the riser, tread and bottom rail | Less than 6 in | Des Moines 2021 IRC handout; Weyerhaeuser (2025) |
| Openings under a fixed bench used as a guard | Less than 4 in | AWC 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.
| Load | Number | Source |
|---|---|---|
| Concentrated load at the top of a guard | 200 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 loads | AWC DCA 6, IRC Table R301.5 |
| Manufactured rail test, concentrated | 500 lb (200 lb times a 2.5 safety factor), at mid-span, beside a post and on top of a post | Decks.com (2025) |
| Manufactured rail test, infill | 125 lb over 1 sq ft | Decks.com (2025) |
| Manufactured rail test, uniform | 125 lb per foot | Decks.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.
| Item | DCA 6 minimum |
|---|---|
| Guard post | 4x4 nominal, bending value at least 1,100 psi |
| Joist or rim the post attaches to | At least 2x8 |
| Hold-down connector | At least 1,800 lb allowable tension |
| Guard height this detail covers | 36 in maximum |
| Post parallel to the joists | Attaches to the outside joist |
| Post perpendicular to the joists | Attaches 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.
| City | IRC edition | Effective or approved | Guard amendments checked? |
|---|---|---|---|
| Dallas | 2021 IRC with Dallas amendments (Chapter 57, Ordinance 32424; Ordinance 33099 in 2025) | Effective May 12, 2023 | Yes: no R312 or R507.10 changes found |
| Plano | 2024 IRC with amendments (Ordinance 2025-6-15) | Adopted in 2025; city lists "2024 Codes (Effective August 1)" | Yes: no R312 or R507 entries found |
| Frisco | 2024 IRC and 2024 ISPSC, with amendments | Effective March 1, 2026 | No: amendments not checked |
| McKinney | 2024 IRC and 2024 ISPSC, with amendments | Approved by City Council October 1, 2025 | No: 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.
- Where: more than 30 inches down anywhere within 36 inches of an open side means a guard.
- Height: 36 inches on the deck, 34 inches on stairs.
- Openings: under 4 inches (including under the bottom rail), 4-3/8 inches on stairs, 6 inches at the stair triangle.
- Posts: a continuous load path into the joists, no notched 4x4 at the connection, no end-grain-only screws.
- Stairs: a stair guard on any open side more than 30 inches up, and a handrail once there are four risers.
- 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.

