Two numbers decide where a toilet can go: the clearances the plumbing code requires around it, and the rough-in, the distance from the finished wall behind it to the center of its drain. This guide gives the residential code clearances (IRC and IPC), the ADA dimensions for accessible toilets, how to measure rough-in, and the smallest spaces that meet the rules.
Toilet clearance code (houses)
| Clearance | Minimum | Code section |
|---|---|---|
| Side clearance | At least 15 in from the center of the toilet to a side wall, partition or vanity | IRC R307.1; IPC 405.3.1 |
| Between adjacent fixtures (toilets, bidets, lavatories) | At least 30 in center to center | IPC 405.3.1 |
| Front clearance | At least 21 in clear in front of the toilet to a wall, fixture or door | IRC R307.1; IPC 405.3.1 |
| In front of a shower | At least 24 in clear in front of the shower opening | IRC R307.1 |
| Ceiling height in a bathroom | At least 6 ft 8 in; under a sloped ceiling the fixture must still be usable, and a shower or tub with a showerhead needs 6 ft 8 in over a 30 x 30 in area at the head | IRC R305.1 |
What the clearances mean for a bathroom layout
- Narrowest space for a toilet: 15 in each side of the centerline gives a 30 in wide space between walls, the minimum for a toilet in an alcove or water closet compartment.
- Toilet beside a vanity: keep 15 in from the toilet centerline to the edge of the vanity cabinet or countertop, not just to the wall. A 24 in vanity beside a toilet therefore needs at least 24 + 15 + 15 = 54 in of wall if the toilet sits against the opposite side wall.
- Depth: a toilet is commonly about 27 to 31 in deep from the wall. With the required 21 in in front, plan on roughly 48 to 52 in from the back wall to the facing wall or door swing; check the actual model’s depth.
- Door swing: the 21 in front clearance must stay clear of a door that swings into it, so outswing or pocket doors help in small rooms. For bathroom ceiling heights and other room minimums, see the house dimension code guide.
Toilet rough-in sizes
| Rough-in | Where you find it | Notes |
|---|---|---|
| 12 in | The standard in most US homes | Fits the widest range of toilets |
| 10 in | Older houses and some tight bathrooms | Fewer models; a 12 in toilet will not fit |
| 14 in | Some older houses | Fewer models; a 12 in toilet fits but leaves a gap behind the tank |
To measure, find the bolts that hold the toilet to the floor (or the flange if the toilet is off) and measure from the finished wall behind, ignoring the baseboard, to the center of the bolts. About 12 in means a 12 in rough-in; 10 or 14 in means you need a toilet made for that size. Measuring to the baseboard instead of the wall is the most common mistake.
Accessible (ADA) toilet dimensions
| Item | Requirement | 2010 ADA Standards |
|---|---|---|
| Centerline from side wall | 16 to 18 in | 604.2 |
| Clear floor space | At least 60 in measured from the side wall and at least 56 in measured from the rear wall | 604.3.1 |
| Seat height | 17 to 19 in to the top of the seat | 604.4 |
| Grab bars | Side wall bar at least 42 in long; rear wall bar at least 36 in long | 604.5 |
| Flush control | On the open side of the toilet | 604.6 |
Where the grab bars go and how long they must be, at toilets, tubs and showers: ADA grab bar height and placement. Sink, vanity and mirror heights: ADA counter and sink height. Sizing the exhaust fan for the room: bathroom exhaust fan CFM calculator.
Frequently asked questions
How much space do you need on each side of a toilet?
At least 15 in from the center of the toilet to any side wall, partition or vanity, so at least 30 in between two walls (IRC R307.1, IPC 405.3.1).
How much space is required in front of a toilet?
At least 21 in of clear space in front of the toilet to a wall, fixture or door under the IRC and IPC. Many designers aim for 24 to 30 in for comfort.
What is the standard toilet rough-in?
12 in from the finished wall to the center of the drain or floor bolts. Some older homes have 10 or 14 in rough-ins, which need toilets made for them.
What is the ADA toilet clearance?
The centerline 16 to 18 in from the side wall and a clear floor space 60 in wide by 56 in deep, with the seat 17 to 19 in high (2010 ADA Standards 604).
Can a toilet be next to a shower?
Yes, if the toilet centerline is at least 15 in from the shower wall or curb edge and 24 in is left clear in front of the shower opening.
Sources
- International Code Council, 2021 International Residential Code (IRC). Requirements are paraphrased with their section numbers; local codes and amendments may differ, so confirm with your building department.
- International Code Council, 2021 International Plumbing Code (IPC), section 405.3.1; paraphrased.
- US Department of Justice, 2010 ADA Standards for Accessible Design, section 604 (water closets).
Last reviewed: 24 October 2026. Numbers in the tables are our arithmetic from the sources listed; code sections are summarised, not quoted. How we check our work: methodology and corrections. Spotted an error? Please let us know.