How the Bathroom Fixture Clearance Checker works
Check the space around your toilet, sink and shower against the residential code minimums, rule by rule, before the drain is set and the walls are closed.
How this is calculated
Two model codes set minimum clearances around bathroom fixtures in houses, and they do not agree. This tool checks your measurements against one of them at a time, the one you pick, and never mixes the two.
| Minimum | 2021 IRC | 2024 UPC |
|---|---|---|
| Toilet or bidet: centre to the side | 15 in to a side wall, partition or vanity | 15 in to a side wall or obstruction |
| Toilet or bidet: centre to centre to the next fixture | 30 in between adjacent fixtures | 30 in to a similar fixture |
| Toilet, bidet or lavatory: clear space in front | 21 in | 24 in |
| Lavatory: centre to a side wall, partition or vanity (a cabinet is read as a vanity; a shower’s wall, glass panel or door as a side wall or partition) | 15 in | no figure |
| Lavatory: centre to the rim of a bathtub, or to the bare edge of another fixture | not in the text or the figure: shown as “Ask” | no figure |
| Lavatory: centre to centre to the next fixture | 30 in | no figure |
| Shower: inside area | 900 sq in | 1,024 sq in |
| Shower: smallest inside dimension | 30 in | must hold a 30 in circle |
| Shower: exception | 25 in allowed where the area is at least 1,300 sq in | area and circle not required for a receptor at least 30 in by 60 in overall |
| Shower: clear width of the opening | 22 in | 22 in |
| Shower: clear space in front of the opening | 24 in (figure only) | no figure found |
each clearance passes when finished-surface distance ≥ the code minimum
shower area = finished inside width × finished inside depth (rectangular showers only)
result = fail if any line fails; otherwise not a pass while a question is open or a line rests on a reading to confirm; otherwise passWhere the IRC figures come from. Section R307.1 of the 2021 IRC says fixtures are to be spaced as its Figure R307.1 shows and as Section P2705.1 requires. P2705.1 gives the side, centre-to-centre and front distances for water closets, lavatories and bidets in words. Section P2708.1 gives the shower area and smallest dimension, and P2708.1.1 the width of the opening. The 24 in in front of the shower opening is printed only in the figure, which is an image; it was read from the image, along with the points the figure measures from.
Where the UPC figures come from. Section 402.5 of the 2024 UPC gives the side and centre-to-centre distances for a water closet or bidet and the clear space in front of a water closet, lavatory or bidet. Section 408.7 gives the shower area and the 30 in circle, and Section 408.6 the 22 in door opening. For a rectangle, holding a 30 in circle is the same as having a shorter side of at least 30 in.
Where each distance is measured. Both codes measure the side distance from the centre of the fixture, not its edge. Neither says in words where the space in front starts; the IRC figure draws it from the front of the bowl and the front of the lavatory, and this tool uses the front edge of the fixture under both codes. Shower sizes are finished inside dimensions in both codes, taken at the height of the top of the threshold and kept up to 70 in above the drain. The IRC leaves valves, shower heads, soap dishes and grab bars out of that measurement; the UPC leaves out the same things and shelves.
Finished surfaces. For the toilet and lavatory distances neither code says whether a wall is measured at the studs or at the tile. This tool checks finished-surface distances, because that is the room the inspector sees, and it subtracts nothing for you. If your walls are still bare framing, take the thickness of the board and tile still to come off each measurement before you enter it: once for a distance to one wall, a shower wall or a curb, twice for a distance between two of them. The tool asks you to confirm that your figures are finished-surface distances, with nothing filled in; until you answer Yes the result is not a pass, and No is refused with that instruction. A clearance that passes with under 1 in to spare is named in the result.
What is on each side. For each side of a toilet or lavatory you choose what is nearest: a wall or partition, a tub or shower, a sink, a cabinet with no sink, another toilet or bidet, or nothing within 36 in. Beside a toilet the sink answer is a sink on its own or one set in a vanity or cabinet. Beside a lavatory it is another sink in its own vanity, measured to the side of that vanity; a second basin in the same top, or a sink with no vanity, is a separate answer, measured to the edge of that basin. Beside a lavatory a tub or shower is two answers as well: a shower's wall, glass panel or door, including one standing on a tub, or the rim of a bathtub with none of those on it. That one answer decides which rules run. Nothing is filled in for you, and until you answer the result is not a pass. An open side gets no line at all; the 36 in is measured from the centre of the fixture and is this tool's own threshold, chosen to be larger than any side figure in either code.
Exceptions. The IRC exception for a shower with a smallest dimension of 25 in is applied as worded: it needs 1,300 sq in, and below 25 in nothing passes. The IRC exception for fold-down seats (the required area must still be there with the seat folded up) has no entry of its own: measure with the seat up. The UPC exception for a shower receptor at least 30 in wide and 60 in long overall is applied from your answer to that question: where the inside size is under a minimum, Yes replaces the area and circle lines with one marked "Exempt", No fails them, and no answer is not a pass. A Yes beside a shower whose longer inside side is under 48 in is sent back as a question, since no receptor that long could be that short inside; that figure is this tool's own check, not the code's. The UPC exception for showers designed to ICC A117.1 is not checked. The UPC also says paper dispensers and accessibility grab bars are not obstructions.
Rounding. Figures are rounded away from a pass: a distance or area down, a shortfall up, so a value under its minimum is never printed as equal to it.
Scope and caveats
Readings this tool takes where the wording leaves room.
- The IRC text names a side wall, partition or vanity for the 15 in, and its figure draws the same distance from a water closet or bidet to the edge of a tub. Beside a toilet this tool also applies it to a cabinet with no sink and to the nearest edge of another fixture; those lines say they are this tool's reading. The UPC says side wall or obstruction, which covers all of them.
- The same sentence covers the lavatory, so beside a lavatory a side wall, a partition, a vanity and (read as a vanity) a cabinet closer than 15 in to its centre fail, exactly as beside a toilet. So does a shower's wall, glass panel or door, which this tool reads as a side wall or partition. The rim of a bathtub, the edge of a second basin in the same top or of a sink with no vanity, and the bare edge of a toilet or bidet are not in that list, and the figure shows the 15 in to a tub only from a water closet or bidet. Those are shown as "Ask", this tool's reading for you to confirm, and never as a fail. Until you say what is beside the lavatory that line is not run.
- The IRC sentence asks for 30 in centre to centre between adjacent fixtures and does not say which fixtures. It is read here as toilets, bidets and lavatories, the three the sentence is about, and not tubs or showers. Between two toilets or bidets, or two lavatories, a shortfall is a fail. Between a toilet and a lavatory the figure draws the pair side by side with only the 15 in dimension, so a shortfall there is shown as "Ask", and when it is the only thing short the result says the layout passes unless your inspector applies the 30 in to that pair. A toilet 15 in from the edge of a narrow vanity is the usual case.
- Under the UPC the centre-to-centre rule is to a "similar fixture", which this tool reads as another toilet or bidet. A sink beside a toilet is treated as an obstruction under the side rule instead.
- The space in front of the shower opening is measured from the outside face of the shower, because the figure does not say where it starts.
- A built-in shower bench is measured to its face, because neither list of things left out of the measurement includes seats.
Editions. The 2024 IRC renumbers the section and figure to R327.1 with the same dimensions, and its P2705.1 and P2708.1 carry the same figures; so does Chapter 27 of the 2018 edition. The 2021 UPC has the same figures as the 2024 edition one section number earlier for showers.
Scope. These are the ordinary minimums for one- and two-family dwellings. They are not accessible design clearances: the ADA Standards and ICC A117.1 call for larger spaces and are not checked here. Door swings (the IRC requires hinged shower doors to open outward), ceiling height over fixtures, ventilation, glazing, tub sizes and drain or vent sizing are not covered, and only rectangular showers are checked. States and cities adopt these codes with their own amendments, which govern: one 2018 adoption read for this tool, for example, lets a lavatory in a remodel sit 12 in from its centre to a side wall. Check which code and edition your jurisdiction enforces.
What this calculator is tested against
This tool cannot be published unless it reproduces every example below. 1 is copied from a published source. 31 were worked by hand from the cited rule.
| Example | Expected | Basis |
|---|---|---|
| IRC: shower 30 in by 30 in inside, 22 in opening (24 in clear in front, the figure’s minimum) | 30 × 30 = 900 sq in, the printed minimum area — passes | Published 2021 IRC P2708.1 (30 in minimum dimension, 900 sq in) and P2708.1.1 (22 in opening); the 24 in in front is from Figure R307.1 in Chapter 3 |
| IRC: toilet 15 in from its centreline to a wall on each side, 21 in clear in front | passes, exactly at each minimum | By hand 2021 IRC P2705.1 item 5 (Figure R307.1 draws the same 15 in and 21 in) |
| UPC: toilet 15 in from its centreline to a wall on each side, 24 in clear in front (the figures a City of Pleasant Hill handout, written to the 2019 California Plumbing Code, also gives for CPC 402.5) | passes under the 2024 UPC, exactly at each minimum | By hand 2024 UPC 402.5 |
| IRC: toilet 14 7/8 in from its centreline to the left wall | fails on the left side only: 1/8 in short of 15 in | By hand 2021 IRC P2705.1 item 5 |
| A toilet with 22 in clear in front, checked under the IRC | passes: the IRC minimum in front is 21 in | By hand 2021 IRC P2705.1 item 5 |
| The same toilet with 22 in clear in front, checked under the UPC | fails: the UPC minimum in front is 24 in | By hand 2024 UPC 402.5 |
| IRC: toilet with 20 7/8 in clear in front | fails: 1/8 in short of 21 in | By hand 2021 IRC P2705.1 item 5 |
| IRC: toilet 15 in to each wall, but not confirmed that those are finished-surface distances | not a pass — off bare framing, the board and tile still to come would put it under 15 in | By hand 2021 IRC P2705.1 item 5, checked between finished surfaces (this tool’s convention) |
| IRC: toilet with a bidet on the right, 29 7/8 in centre to centre, its nearest edge 20 in away | fails the 30 in centre-to-centre rule by 1/8 in; the 15 in side rule passes | By hand 2021 IRC P2705.1 item 5 |
| IRC: toilet 15 in from the edge of a 24 in vanity with a sink in it, 27 in centre to centre | not a pass and not a plain fail: 27 in is short only if the 30 in applies between a toilet and a sink; the 15 in to the vanity passes | By hand 2021 IRC P2705.1 item 5 |
| UPC: the same toilet and vanity, 27 in centre to centre, vanity edge 15 in away | passes: the UPC 30 in rule is between a toilet or bidet and a similar fixture, and the vanity is 15 in away | By hand 2024 UPC 402.5 |
| Toilet inside every minimum, but what stands on its right not answered | not a pass — which rules apply on that side depends on the answer | By hand 2021 IRC P2705.1 item 5 |
| IRC: lavatory 15 in from its centre to each side wall, 21 in clear in front | passes, exactly at each minimum | By hand 2021 IRC P2705.1 item 5 |
| IRC: two sinks in one vanity, 29 7/8 in centre to centre | fails: adjacent lavatories must be 30 in centre to centre | By hand 2021 IRC P2705.1 item 5 |
| IRC: lavatory 14 in from its centre to the rim of a bathtub, 18 in to a wall on the other side | not a fail: neither the text nor the figure gives 15 in from a lavatory to a tub; shown as a question for the inspector | By hand 2021 IRC P2705.1 item 5 and Figure R307.1 (which dimensions a tub only beside a water closet or bidet) |
| IRC: lavatory 14 in from its centre to the glass panel of a shower, 18 in to a wall on the other side | fails: 1 in short of the 15 in the text gives from a lavatory to a side wall or partition | By hand 2021 IRC P2705.1 item 5 (side wall, partition or vanity; a shower’s wall, glass panel or door is read as a side wall or partition) |
| IRC: lavatory 14 in from its centre to the side of a cabinet | fails: 1 in short of the 15 in the text gives from a lavatory to a vanity | By hand 2021 IRC P2705.1 item 5 (side wall, partition or vanity; a cabinet is read as a vanity) |
| IRC: lavatory 14 in from its centre to the side of the next vanity, the two basins 30 in apart | fails on the 15 in to the vanity; the 30 in centre to centre passes | By hand 2021 IRC P2705.1 item 5 |
| IRC: lavatory 12 in from its centre to a side wall | fails: the text gives 15 in from a lavatory to a side wall | By hand 2021 IRC P2705.1 item 5 |
| UPC: lavatory with 23 7/8 in clear in front | fails: 1/8 in short of 24 in (the UPC sets no side distance for a lavatory) | By hand 2024 UPC 402.5 |
| IRC: shower 25 in by 52 in inside (Exception 2) | 1,300 sq in — passes under the exception for a 25 in dimension | By hand 2021 IRC P2708.1, Exception 2 |
| IRC: shower 25 in by 51 7/8 in inside | 1,296.875 sq in — fails: under 30 in the shower needs 1,300 sq in | By hand 2021 IRC P2708.1, Exception 2 |
| IRC: shower 29 7/8 in by 36 in inside | fails: 1/8 in under 30 in, so it would need 1,300 sq in and has 1,075.5 | By hand 2021 IRC P2708.1 and P2708.1.1 |
| IRC: shower 24 7/8 in by 60 in inside | fails: under 25 in no exception applies, whatever the area | By hand 2021 IRC P2708.1 and P2708.1.1 |
| IRC: shower 36 in by 36 in with a 21 7/8 in opening | fails on the opening only: 1/8 in short of 22 in | By hand 2021 IRC P2708.1 and P2708.1.1 |
| IRC: shower 36 in by 36 in with 23 7/8 in clear in front of the opening | fails: 1/8 in short of the 24 in shown in the figure | By hand 2021 IRC Figure R307.1 |
| UPC: shower 32 in by 32 in inside, 22 in opening | 1,024 sq in — passes, exactly at the minimum area | By hand 2024 UPC 408.6 and 408.7 |
| UPC: shower 30 in by 30 in inside, the IRC minimum, on a receptor smaller than 30 in by 60 in | 900 sq in — fails: the UPC minimum is 1,024 sq in | By hand 2024 UPC 408.6 and 408.7 |
| UPC: shower 29 7/8 in by 40 in inside, receptor smaller than 30 in by 60 in | fails: a 30 in circle does not fit, though the area is enough | By hand 2024 UPC 408.6 and 408.7 |
| UPC: tub-replacement shower, 58 in by 28 1/2 in inside, on a receptor at least 30 in by 60 in overall | passes: the area and 30 in circle minimums do not apply to a receptor that size | By hand 2024 UPC 408.7, Exception 2 |
| UPC: shower 30 in by 30 in inside, with the receptor said to be at least 30 in by 60 in overall | not a pass — a 30 in by 30 in inside cannot sit on a 60 in receptor, so the answer is sent back to be checked | By hand 2024 UPC 408.7, Exception 2 |
| UPC: the same 58 in by 28 1/2 in shower with the receptor question not answered | not a pass and not a fail — it depends on the overall size of the receptor | By hand 2024 UPC 408.7, Exception 2 |
Sources
- 2021 International Residential Code, Section R307.1 and Figure R307.1, Minimum fixture clearancesRead on UpCodes, a third-party reproduction, on its page titled Texas IHB Residential Code 2021 (which adopts the 2021 IRC with amendments). R307.1 says fixtures are to be spaced as the figure shows and as P2705.1 requires. The figure is an image: it was downloaded and viewed, and these values were read from it: 15 in from the centreline of a water closet to a wall and to a tub, 21 in clearance in front of the water closet and of the lavatory, a shower of 30 in by 30 in minimum, and 24 in clearance in front of the shower opening. The 24 in appears only in the figure.
- 2021 International Residential Code, Sections P2705.1 (item 5), P2708.1 and P2708.1.1Same site. The 15 in centre-to-side, 30 in centre-to-centre and 21 in front clearances for water closets, lavatories and bidets, the 900 sq in and 30 in shower minimums with the two exceptions, and the 22 in access opening were read from this text.
- 2024 International Residential Code, Section R327.1 and Figure R327.1Read on UpCodes, on its page titled Texas Windstorm Insurance Association Residential Code 2024 (adopts the 2024 IRC without amendments). The section and figure are renumbered from R307.1 to R327.1; the figure, viewed as an image, shows the same dimensions. P2705.1 item 5, P2708.1 and P2708.1.1 in Chapter 27 of that edition carry the same figures as 2021.
- 2018 International Residential Code, Sections P2705.1, P2708.1 and P2708.1.1Read on UpCodes, on its page titled Colorado State Plumbing Board Residential Code 2018. Same figures as 2021. That page also carries an exception, for remodels only, allowing a lavatory 12 in from its centre to a side wall or partition; it is not in the 2021 or 2024 text read, and this tool does not apply it. Chapter 3 of that edition was not read.
- 2024 Uniform Plumbing Code, Sections 402.5, 408.6 and 408.7IAPMO’s free read-only edition, a page-flip book: Chapter 4 starts on printed page 29. The 15 in, 30 in and 24 in fixture figures (402.5), the 22 in door opening (408.6) and the 1,024 sq in and 30 in circle shower minimums with their two exceptions (408.7), one of them for a receptor at least 30 in by 60 in overall, were read from its text. No clearance in front of a shower opening was found anywhere in the text.
- 2021 Uniform Plumbing Code, Sections 402.5, 408.5 and 408.6IAPMO’s free read-only edition. Same figures as 2024, one section number earlier for the shower threshold (408.5) and shower compartments (408.6).
- City of Pleasant Hill, California: Bathroom Remodel Requirements (information guideline, August 2020)A building-division handout written to the 2019 California Plumbing Code. It gives 15 in from the centre line of the bowl to each side and 24 in from the front edge of the bowl for toilets and bidets, 24 in in front of lavatory sinks, and 1,024 sq in with a 30 in circle for showers, citing CPC 402.5 and 408.6: the same section numbers and figures as the 2021 UPC read here. It was written to the 2019 California code, not to the UPC edition this tool checks, so it is read for comparison and for its wording of where the 24 in is measured from; no tested example is marked as published from it.
- ICC, 2015 IRC Study Companion, sample pages (Sections R303 through R310)International Code Council study guide for the 2015 edition. The link is an archived copy, captured by the Internet Archive on 28 March 2025: the file’s own address on the Council’s shop site did not open when checked in October 2026. Its commentary on R307 says the minimum permitted shower is 30 in by 30 in with at least 24 in of clearance in front of the shower opening, the two figures this tool takes from the image of Figure R307.1.