Bathroom layout in a configurator: placement, snapping and clearance rules
How a bathroom planner puts shower, bathtub, vanity and WC on the walls, checks door swing and clear areas, suggests fixes and works out tile areas.
Short answer: a bathroom layout configurator needs four building blocks: a room with door and window, a placement that snaps every fixture to a wall, a clearance check for the space in front of the WC, vanity, shower and bathtub, and an equipment list from the same plan. Our example configurator shows all four with example values. A red check does not just warn; it suggests a fix you can apply in one click.
What does the example take as input?
| Input | Example values | Affects |
|---|---|---|
| Room | width 1.60–4.60 m, depth 1.60–4.00 m in 0.1 m steps; height fixed at 2.50 m | wall lengths, placement, tile areas |
| Door | fixed in the door wall, 80 cm, door swing drawn | blocked areas |
| Window | none, back, right or left wall; 90 × 90 cm, sill at 1.20 m, position in 0.1 m steps | mirror, shower area |
| Preset | shower room, bath room, family bathroom, spa bathroom | all fixtures, room size if needed |
| Shower | none; walk-in 1.20 / 1.40 / 1.60 × 0.90 m; corner shower 0.90 or 1.00 m | wall length, clear area, tiling height |
| Bathtub | none; built-in 1.70 × 0.75 m; freestanding 1.65 × 0.78 m with a 15 cm gap to the wall and at both ends | wall length, clear area |
| Vanity, mirror | 0.60 / 0.80 / 1.00 / 1.20 / 1.40 m; double basin from 1.20 m; mirror cabinet, mirror or none | clear area, window check |
| WC, radiator | wall-hung WC with in-wall frame; towel radiator 0.50 × 1.00 m, on or off | placement, clear area |
All values are example values of a fictional range, kept in a separate data file apart from the program logic.
How does the planner put fixtures on the walls?
Every fixture has a slot on its wall: its body plus a side gap under the example rule. For the WC that is a 36 cm bowl with 22 cm on each side, so 80 cm of wall; for the radiator 50 cm plus 5 cm on each side. The freestanding tub thus needs 1.95 m. Slots may not overlap, may not leave the room and may not reach into the door swing. On top of that, no fixture may stand where the open door leaf rests against the side wall.
Positions lie on a 50 mm grid along the wall, plus the two corners. The arrows move a fixture in 10 cm steps, skipping to the next spot where it fits; if there is none, the arrow is disabled. A fixture put on a taken spot snaps to the nearest free one: "moved to the next free spot".
Fixtures in a corner or at a chosen position are placed first, automatic ones after; an automatic position is first sought outside earlier clear areas with its own clear area free, otherwise the nearest free spot is taken. A wall without room is disabled with the reason, such as "no room (needs 1.70 m)" or "door in the way". A fixture that loses its place when the room shrinks turns into a red block, and a red line states the shortfall, for example "Vanity does not fit on the back wall: needs 0.80 m, 0.50 m free" in a 1.70 × 1.70 m room.
How does the clearance check work?
| Fixture | Clear area (example value, width × depth) | Where |
|---|---|---|
| WC | 80 × 75 cm | centred in front of the bowl |
| Vanity | 90 × 55 cm with a single basin, 150 × 55 cm with a double basin, at least as wide as the vanity | centred in front of the vanity |
| Shower | 80 × 75 cm | walk-in: in front of the entry; corner shower: centred in front |
| Bathtub | 90 × 75 cm | centred along the long side |
The clear area slides along the wall rather than run past its end. The planner then tests in 1 cm steps how deep the area stays free until it meets another fixture or the opposite wall. Each area is drawn on the floor: green when clear, red when not, with the free part green and the free depth labelled. The review adds what is in the way, for example "Only 22 cm clear instead of 75 cm: the WC is in the way", or that the room ends.
Under this demo's example rule, clear areas may overlap each other and the door swing; the radiator has none. The status above the model counts clear areas ("3 of 3 clear"), or, if no clear area is blocked, names another failing check, such as "Mirror over window".
An example from the QA log: in the 2.40 × 2.40 m shower room all three areas are clear. At 2.00 m depth only 22 cm stay clear in front of the vanity and the shower, blocked by the radiator and the WC. The line under the sliders names both, the suggestion sits right below, and applying it clears everything.
Which fixes does the planner suggest?
When a check is red, the planner looks for a change after which all checks pass, in this order:
- Move along the same wall, starting with the nearest position.
- Another wall, in a corner or placed automatically.
- A larger room: the smallest room from the current size up in which everything fits.
If the mirror or mirror cabinet overlaps the window, the planner suggests moving the window along the same wall, putting it in another wall, or planning without a mirror on that wall. A window in the shower area is marked amber as a note. A preset that needs more space shows the size on its button: from the 2.40 m room, "needs about 2.9 m × 3.1 m" for the family bathroom and 3.5 m × 3.2 m for the spa bathroom. Applying it resizes the room and moves the window off the mirror or shower area.
The most serious defect found by the independent QA round was at the door: a towel radiator could stand behind the open door while the check said "door swing clear". Since the fix, the strip where the leaf rests against the wall is blocked. A second reviewer recomputed 2,810 states with their own door geometry (five room sizes, five fixtures on the right wall and the door wall, 50 mm steps): no conflict while the check was green. All tests ran on emulated devices, not real phones.
How are tile areas and the equipment list worked out?
Wall tiles go to half height at 1.20 m or full height at 2.50 m; with half-height tiling, the shower area is tiled to 2.10 m. The area is wall length times tiling height, minus the door and the tiled part of the window, plus the shower walls up to 2.10 m, plus 10 % cutting allowance as an example value. By default: 4 × 2.40 m × 1.20 m = 11.52 m², minus 0.96 m² for the door, plus 1.89 m² on the two shower walls, gives 12.45 m², or 13.7 m² with the allowance. The floor is 5.76 m², 6.3 m² with the allowance. At full height the wall tiles come to 23.7 m².
The example equipment list names every planned fixture with its size, plus wall and floor tiles with colour, format and area. The quantities are example values, not an order list. Review, checks and list go into the enquiry text and a PDF with a 3/4 view and a plan with clear areas.
Example configurator · fictional product
Bathroom planner
Plan a bathroom in a 3D cut-away: set the room size, place shower, bathtub, vanity and WC on the walls, choose tiles and fittings, and see at once whether there is enough free space in front of each fixture.
What the demo does not check
The clear areas are rectangles: no turning circles, no walking path from the door, no test of the door swing against clear areas. Room height, door position and window size are fixed, with one door and one window, and fixtures move with buttons, not by dragging. The demo names no standard. The distances for a real bathroom come from the manufacturer's documentation and a professional planner.
What does a project add?
For your range, your products and documented distances replace the example values, presets become your series, the list gets item numbers, and the enquiry goes to a dealer, an installer or your CRM. Data preparation, materials and load time are covered in Furniture configurator implementation, the sales view in Bathroom planner for manufacturers and the project process on 3D configurator development. The demo itself is on its library page.
Frequently asked questions
What happens if several checks are red at once?
The review lists every check. The suggestion looks for one change after which all of them pass; if no other position or wall works, it offers a larger room.
Are the clear areas taken from a standard?
No. They are example values of a planning aid; the demo names no standard and says nothing about whether a layout meets any rules. In a project you set the distances you recommend yourself.
Can we add more fixtures?
Yes. Each fixture is a slot with a body, a side gap and an optional clear area; a bidet or a tall cabinet would follow the same logic.
Sources
- Demo features: "Live in this demo" list and note on the bathroom planner library page, read 18 November 2026: modelwright.de/en/library/bathroom-planner-configurator/
- Placement, clear areas, suggestions and tile areas: demo source code (data.js: RANGE, GRID, RULE, PRESETS; app.js: spec, solve, computeSuggestion, growRoom, equipment) and schema notes, read 18 November 2026; examples from the QA log of 17 and 18 November 2026 with an independent QA round and re-check, emulated devices.


