> For the complete documentation index, see [llms.txt](https://resources.viewrail.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.viewrail.com/code-compliance/railing-code.md).

# Railing Code

- [Maximum and Minimum Handrail Heights](https://resources.viewrail.com/code-compliance/railing-code/maximum-and-minimum-handrail-heights.md): Handrail height code explained for residential and commercial stairs, including IRC, IBC, ADA, and guardrail height differences.
- [Handrail Size Requirements](https://resources.viewrail.com/code-compliance/railing-code/handrail-size-requirements.md): Handrail size code explained, including IRC Type I and Type II graspability requirements, circular diameter limits, non-circular perimeter limits, and finger recess rules.
- [4" Sphere Rule](https://resources.viewrail.com/code-compliance/railing-code/4-sphere-rule.md): Learn the 4-inch sphere rule for guardrails, baluster spacing, stair guards, cable railing, and open riser stairs under IRC code.
- [Handrail Continuity and Termination Requirements](https://resources.viewrail.com/code-compliance/railing-code/handrail-continuity-and-termination-requirements.md): Learn handrail continuity and termination code under IRC R311.7.8.4, including continuous handrail rules, permitted interruptions, and compliant handrail end conditions.
- [Guard and Handrail Requirements](https://resources.viewrail.com/code-compliance/railing-code/guard-and-handrail-requirements.md)
- [Opening Rules](https://resources.viewrail.com/code-compliance/railing-code/opening-rules.md)
- [Strength Requirements](https://resources.viewrail.com/code-compliance/railing-code/strength-requirements.md)
- [Post and Cable Spacing](https://resources.viewrail.com/code-compliance/railing-code/post-and-cable-spacing.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://resources.viewrail.com/code-compliance/railing-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
