Toilet Clearance Code and Rough-In Sizes

As an Amazon Affiliate we earn from qualifying purchases. All earnings are directly reinvested into this site to bring you free tutorials and project files - Thank you for your support!

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)

ClearanceMinimumCode section
Side clearanceAt least 15 in from the center of the toilet to a side wall, partition or vanityIRC R307.1; IPC 405.3.1
Between adjacent fixtures (toilets, bidets, lavatories)At least 30 in center to centerIPC 405.3.1
Front clearanceAt least 21 in clear in front of the toilet to a wall, fixture or doorIRC R307.1; IPC 405.3.1
In front of a showerAt least 24 in clear in front of the shower openingIRC R307.1
Ceiling height in a bathroomAt 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 headIRC R305.1
Summarised from the 2021 IRC (Figure and Section R307.1) and 2021 International Plumbing Code 405.3.1; paraphrased, not quoted. Some states use the Uniform Plumbing Code, whose figures can differ; confirm locally.

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-inWhere you find itNotes
12 inThe standard in most US homesFits the widest range of toilets
10 inOlder houses and some tight bathroomsFewer models; a 12 in toilet will not fit
14 inSome older housesFewer models; a 12 in toilet fits but leaves a gap behind the tank
Rough-in is the distance from the finished wall (not the baseboard or the drywall before tile) to the center of the toilet flange bolts or drain. 12 in is the usual standard; check before buying a toilet.

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

ItemRequirement2010 ADA Standards
Centerline from side wall16 to 18 in604.2
Clear floor spaceAt least 60 in measured from the side wall and at least 56 in measured from the rear wall604.3.1
Seat height17 to 19 in to the top of the seat604.4
Grab barsSide wall bar at least 42 in long; rear wall bar at least 36 in long604.5
Flush controlOn the open side of the toilet604.6
From the 2010 ADA Standards for Accessible Design, section 604; summarised. These apply to public and commercial facilities and are widely used as a guide for accessible home bathrooms.

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

  1. 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.
  2. International Code Council, 2021 International Plumbing Code (IPC), section 405.3.1; paraphrased.
  3. 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.