Skip to main content
Construction SafetyReviewed against current OSHA standards

The Homemade Guardrail: What OSHA 1926.502(b) Says a Two-by-Four Railing Has to Survive

OSHA 1926.502(b) sets the height, midrail, opening and load criteria for a jobsite guardrail. What small contractors should check on a railing built on site.

Updated November 4, 2026
7 min read
By the WorkSafely safety team

A framing crew finishes the second-floor deck on Thursday afternoon. The edge is open, the foreman does not want anyone walking near it over the weekend, and there is a stack of two-by-fours on site. By the end of the day somebody has nailed a rail across the posts at roughly waist height and called it a guardrail. It looks like one. Whether it is one under OSHA's rules depends on measurements and loads that nobody took.

This post is about one narrow question: what the construction fall protection rules require of the guardrail itself once you have decided to use one. It is not about when you need fall protection in the first place. For that question, see our post on fall protection requirements under 1926.501. Here we assume you have already decided a guardrail is the right control, and ask whether the one you built will count.

Where the criteria live

The trigger for fall protection is in 1926.501. For unprotected sides and edges of a walking or working surface that are 6 feet or more above a lower level, the employer has to use a guardrail system, a safety net system, or a personal fall arrest system. If you pick the guardrail, the standard that tells you what a guardrail must be is 1926.502, titled "Fall protection systems criteria and practices," and specifically paragraph (b).

That split matters in practice. Plenty of small contractors know the six-foot trigger and stop reading there. The result is a railing that exists but was never measured against the criteria that make it a recognized system, which is a different thing from having no railing, and not a safe place to be.

Height and the midrail

Paragraph (b)(1) says the top edge height of top rails, or equivalent members, has to be 42 inches, plus or minus 3 inches, above the walking or working level. That is a range, not a target. A top rail anywhere from 39 to 45 inches fits. A rail at 36 inches, which is where many improvised ones end up because that is a comfortable height to nail at, does not.

Midrails come next. Under (b)(2), midrails, screens, mesh, intermediate vertical members or equivalent intermediate structural members have to be installed between the top edge of the guardrail system and the walking or working level. The standard asks for a midrail to sit midway between the top edge and the working surface, and it is required when there is no wall or parapet at least 21 inches high. So a single rail at the right height is not a complete guardrail on an open edge. The space under it has to be closed up.

Then there are the openings. When balusters or similar intermediate members are used instead of a midrail, the standard says they cannot be more than 19 inches apart. Other structural members, such as additional rails or panels, must be placed so that there are no openings more than 19 inches wide. The point is practical: a worker should not be able to fall through the gap beneath the top rail, and a crew can check this with nothing more than a tape measure.

Put those together and the Thursday-afternoon railing fails in two quiet ways. It sits at the wrong height, and the open space between the rail and the deck is bigger than the standard allows.

The load test nobody runs

The part of 1926.502(b) that surprises small contractors is that a guardrail is defined partly by what it can take, not only by how it looks. The standard requires the system to withstand a force of at least 200 pounds applied within 2 inches of the top edge, in any outward or downward direction, at any point along the top edge. It also requires that, when that 200-pound load is applied in a downward direction, the top edge does not deflect to a height of less than 39 inches above the walking or working level. Midrails, screens, mesh and intermediate members have a lower figure: they have to withstand at least 150 pounds applied in any downward or outward direction at any point along the midrail or other member.

Notice what this does to the way you build. A top rail nailed to the face of a post with two nails is going to look fine and may not hold anyone who leans or trips into it. The fastening, the post spacing, the post's own anchorage to the structure and the lumber grade all matter, because the railing is judged as a system. That is why contractors who build rails on site tend to do better with a repeatable detail, drawn once and used every time, than with whatever the crew can think of on the day.

We are not telling you how to engineer your rail. The standard does not hand a small employer a drawing, and the loads above are performance criteria rather than a recipe. What we can say is that a reasonable first check is to ask whether the railing you built would be described by a fair person as "obviously rigid" when you lean on it with your full weight, and to treat anything that flexes, rattles or pulls from its fasteners as a reason to rebuild rather than to explain.

Toeboards are a separate paragraph

Toeboards are a place where people get confused, because they are almost always sold and described as part of the same railing. In the standard they are not in 1926.502(b). Toeboards are covered by paragraph (j). Under (j)(2), a toeboard has to be able to withstand a force of at least 50 pounds applied in any downward or outward direction at any point along it. Read (j) in full for the height and clearance requirements before you build.

Why does this matter on a small job? Because toeboards address a different hazard. A guardrail keeps a person from going over an edge. A toeboard keeps a dropped hammer or a shifted board from going over onto whoever is below. If workers or the public will be underneath the edge, the guardrail alone does not finish the job, and a second control may be needed in addition to it. Overhead protection and barricading the area below are the usual alternatives to think about, and you should confirm with the standard which ones apply to your layout.

What to look at on Monday morning

Because 1926.20(b) puts a competent person in charge of frequent inspections, the guardrail on your site is something somebody has to look at, not something that was fine the day it was built. Jobsite inspections under 1926.20 covers the inspection duty. For guardrails specifically, the useful questions are physical ones. Is the top rail still within the 39 to 45 inch range after the crew added a layer of decking or sheathing, which changes the walking level? Is every post still firmly tied to the structure, or did someone pull a bracket to move a pallet and forget to put it back? Has a section been removed for material handling and left open? Is there a gap under the rail wider than 19 inches where a midrail or mesh used to be?

Adding a floor layer is the one that catches people. The rail was right when it was built, then the walking surface rose by an inch or two and the top edge height slid toward the low end of the range. That is a measurement problem, and it can be fixed in minutes if somebody is looking.

Training and records belong in the same conversation. Workers who might be exposed need to be able to recognize fall hazards and know what the controls are, which is the subject of 1926.503 training. If your crew is moving guardrail sections around the structure as work progresses, they are also the people who are most likely to leave an edge open. A pre-work walk before each shift starts is the cheapest way to catch it. Our fall protection pre-work check is a printable sheet you can adapt for this.

When a guardrail is not the answer

There are edges where a guardrail cannot be installed or does not make sense, such as leading edges during active decking work, and the standard has a separate framework for those situations. Do not stretch a guardrail beyond what it was meant for to avoid learning the alternatives. If you cannot put a compliant system in place, you may need a safety net or personal fall arrest system, and in a small number of cases a written fall protection plan under the rules for leading edge and similar work. Check the standard's text for the exact conditions, and get qualified help before you rely on one.

Skylights, floor holes and roof openings are their own category with their own cover and guarding rules. Our post on skylights and floor openings goes through that.

What this does not do

Building a railing that meets the figures above will not by itself make a jobsite compliant. Fall protection involves the trigger heights in 1926.501, the training requirements, the inspection duty, and the way different parts of a structure change as work progresses. Enforcement turns on the facts of a particular site, standards are revised, and state plans can set stricter rules than the federal ones. Read 1926.502 directly on osha.gov, confirm whether your state runs its own program, and bring in a qualified safety professional if you are building rails to a design you have not tested.

Related reading: Fall Protection in Construction Under 1926.501 | Skylight and Floor Opening Fall Protection | Fall Protection Training Under 1926.503

OSHA standards cited

Always verify current OSHA standards at osha.gov. This article reflects standards in effect at the date of publication.

Not sure where you stand?

Take the 5-minute compliance assessment. Answer a few questions about your business and get a prioritized list of what OSHA expects, free.

Start free assessment