Hide Medicine in Bathroom Mirror Box (Flush Mount)
A flush-recessed mirror cabinet fits into a wall cavity so its face sits near the finished wall, creating a tidy place for bathroom items. Before buying, check cavity size, depth, framing, wiring, plumbing, and door swing. Do not store medicine there by default: follow each label, since bathroom heat and moisture may damage some medicines.
A well-fitted cabinet can make a bathroom feel less crowded without adding a bulky box to the wall. The craft lies in the details: the cabinet must fit the real cavity, stay secure, and open without striking a light, wall, or person. A clean mirror face is the visible result; careful planning behind the wall makes it possible.
I treat the first site visit as a survey, not a cutting exercise. Studs can look evenly spaced, yet pipes, cables, boxes, and blocking may occupy the space between them. And a cavity that looks clear is not permission to cut framing. The safest plan is to confirm the wall and services, then choose a cabinet that fits the opening you can actually make.
Planning the Recessed Cabinet
A recessed cabinet sits partly or fully inside a wall cavity. Its body, cutout, and mounting method must match the wall, not just the product’s advertised width. Check the maker’s instructions and the locally adopted building and electrical codes before you buy or cut.
Measure the wall and cabinet
Measure the cabinet’s required rough opening, not only the mirror’s outside dimensions. The rough opening is the cutout size specified by the maker. Also note the body depth, mounting flange, and any space the hinges need. Product dimensions vary, so do not assume a cabinet will fit because its face appears narrow enough.
A nominal 16-inch-on-center stud layout has 14½ inches between stud faces only when the framing is true and undisturbed. That figure is a guide, not a guarantee. Measure the actual clear space at the proposed location, and check for bowed studs, extra framing, or a wall that has been altered.
Standard 2×4 framing is 3½ inches deep before wall finishes. Drywall, tile, and other layers reduce the usable cavity depth. A cabinet body that seems to match the framing depth may still hit a pipe, cable, or other obstruction. Never force it into place or compress a service behind it.
| Check | What to measure or confirm | Why it matters |
|---|---|---|
| Opening width and height | Maker’s required cutout | A face size does not tell you the cutout size |
| Usable depth | Clear cavity depth, including finish layers | The body must fit without pressing on services |
| Stud spacing | Actual clear distance between stud faces | The common 14½-inch figure may not match your wall |
| Door movement | Full door swing and handle projection | Prevents clashes with walls, lights, or nearby fixtures |
| Support | Maker’s mounting method and stated limits | Fasteners and support depend on the cabinet and wall |
As a useful next step, mark the proposed cabinet outline and door path with painter’s tape. Check the view from the sink, the mirror’s position, and whether the door will open fully.
Wall, Door-Swing, and Service Clearances
Clearance means the open space needed for the cabinet body, its door, and any nearby equipment to work as intended. There is no universal code dimension for a medicine cabinet or a single clearance that suits every bathroom. Use the product instructions and confirm local requirements for the specific wall.
Scan before opening the wall
Use a suitable scanner to help locate studs, wiring, and pipes, then verify what you find before cutting. Scanners can miss or misread objects, so treat them as one check, not proof that a cavity is empty. If the wall contains a box, pipe, duct, or cable in the cutout area, pause and plan another location or a compliant design.
Do not cut, notch, or drill a stud by guesswork. Cutting a load-bearing stud can weaken the wall, and even a non-load-bearing wall can contain services or required fireblocking. If the wall’s role is unclear, or the proposed opening intersects framing, ask a qualified building professional to assess it before work begins.
Electrical working-space rules are often misunderstood. NEC 110.26 sets working-space requirements for electrical equipment; it is not a general keep-away distance for every mirror cabinet. Still, concealed wiring and electrical boxes must be located before cutting, and required access to electrical equipment must remain clear. Do not cover a box or block access to equipment.
Plan for the door and the room
Check the open door against the wall, light fixtures, taps, and the person using the sink. Look at hinge direction and the cabinet’s handle or edge pull. A cabinet can fit the opening and still be awkward if its door blocks access or collides with another surface.
Also confirm that the mirror face will sit as intended against the finished wall. Tile thickness, trim, and uneven surfaces can affect how the flange rests. Use the manufacturer’s details to understand how the cabinet meets the wall finish; do not rely on a guessed gap or an improvised spacer.
Before moving on, resolve every known conflict. Relocate the cabinet or get a code-compliant design rather than altering framing or services without approval.
Framing, Mounting, and Finishing
Mounting means securing the cabinet to the wall in the way its maker specifies. The right fasteners and support depend on the cabinet, wall construction, and instructions. There is no universal screw size or safe load rating that applies to all recessed cabinets.
Prepare the opening safely
First confirm whether the wall is load-bearing and whether the opening affects required fireblocking or a fire-resistance-rated assembly. If you do not know, stop for a qualified review. A stud bay that appears wide enough does not make cutting a stud safe.
Once the location is approved, follow the maker’s cutout dimensions and installation sequence. Keep the opening within the stated limits. If the cutout exposes unexpected framing or a service, stop rather than enlarging it. Do not move or alter wiring, pipes, ducts, or boxes unless the work is properly designed and permitted where required.
Fireblocking is material or construction that limits the spread of fire through concealed spaces. If your work removes or interrupts required fireblocking, it must be restored with approved materials and details. If the wall is part of a rated assembly, use a repair method suitable for that assembly and local code.
Secure and finish the cabinet
Use only the mounting method and fasteners specified for the cabinet and the wall type. Follow stated load limits; do not infer a rating from the cabinet’s size or appearance. Check that the cabinet is level, firmly anchored, and supported as directed before loading its shelves.
Finish the wall-to-cabinet edge as the product instructions require. Avoid forcing the frame against tile or drywall if it prevents proper seating. When the cabinet is in place, test the door through its full range, check mirror clearance, and confirm that nearby electrical equipment remains accessible.
A careful finish should look clean without hiding a poor fit. If the cabinet rocks, binds, or needs pressure to close, correct the cause before use. The key takeaway is simple: secure mounting and a sound wall matter more than making the opening larger.
Installation and Ventilation Verification
Verification is the final check that the cabinet is secure, its door works, and the room’s services remain usable. Bathroom exhaust serves the room, not the cabinet. There is no universal medicine-cabinet ventilation rate, and adding improvised vents is not a substitute for proper room ventilation.
Check the room exhaust
Common IRC provisions call for bathroom exhaust of 50 cubic feet per minute when operated intermittently, or 20 cubic feet per minute for continuous operation. The applicable section and adopted code edition vary by location. These are room-ventilation provisions, not a requirement to vent a cabinet.
Confirm the locally adopted requirement and check that the bathroom exhaust operates as intended. Do not cut an extra vent into the cabinet or connect it to a fan unless the cabinet instructions and a compliant design allow it. Unapproved changes can affect the product or the wall assembly.
Keep medicine in a suitable place
A mirror cabinet may conceal toiletries, but concealment does not make it a suitable place for medicine. Follow each medicine’s storage label. Bathroom heat and humidity can affect some medicines, so store them elsewhere when the label calls for a cool, dry place or when bathroom conditions do not meet its directions.
I keep the distinction clear when planning a cabinet: it can solve a storage problem, but it should not be treated as a medicine-storage solution by default. Choose a dry location that meets the label’s instructions, and keep medicines away from children as directed on the packaging.
Site scenarios: what to do when conditions differ
These are planning scenarios, not claims about a specific completed project. They show how I would respond to common findings during a wall survey.
| What the survey finds | Safer next step |
|---|---|
| A pipe or cable crosses the planned cutout | Move the cabinet or obtain a compliant service-routing plan |
| The opening would cut a stud | Do not cut by guesswork; seek structural review or choose another location |
| The cabinet body is deeper than the clear cavity | Select a shallower model or another location; do not compress services |
| A wall box would be covered | Relocate the cabinet or resolve the box location under applicable rules |
| Tile changes the finished depth | Recheck the maker’s fit and mounting details before cutting |
After installation, check the anchor points, door swing, mirror clearance, and access to electrical equipment. Confirm the bathroom exhaust works and meets the locally adopted rule. If anything binds, shifts, or obstructs access, fix that issue before storing items in the cabinet.
Conclusion
A flush mirror cabinet works best when its size follows the wall’s actual conditions. Measure the cutout and cavity, locate framing and services, and use the cabinet maker’s mounting details. Do not cut structural members or alter services without a proper review. Use the cabinet for suitable bathroom items, and store medicine according to its label in a more appropriate place.
FAQ
Can I keep medicine in a recessed bathroom mirror cabinet?
Do not assume it is suitable. Follow each medicine’s label, since bathroom heat and moisture may affect some medicines.
How much space is between studs on a 16-inch layout?
It is 14½ inches between stud faces only when the framing is true and undisturbed. Measure the actual wall before selecting a cabinet.
Will a cabinet made for a 2×4 wall fit every 2×4 wall?
No. Finishes reduce usable depth, and pipes, cables, or other obstructions may take up space. Check the clear cavity and product instructions.
Can I cut a stud to make the cabinet fit?
Do not cut or notch a stud by guesswork. Get a structural review or choose another location if the opening conflicts with framing.
Can a mirror cabinet cover an electrical box?
No. Keep required access to electrical boxes and equipment. Locate wiring and boxes before cutting and follow applicable code.
Does NEC 110.26 set a clearance around mirror cabinets?
No. It covers working space for electrical equipment, not a general cabinet clearance. Keep electrical equipment accessible and follow local rules.
How much bathroom exhaust is required?
Common IRC provisions specify 50 cfm intermittent or 20 cfm continuous. The adopted edition and local requirements vary, and this is room ventilation, not cabinet ventilation.
Should I add vents to the cabinet?
Not unless the manufacturer’s instructions and a compliant design call for them. There is no universal cabinet ventilation rate.
What fasteners should I use?
Use the mounting method and fasteners specified by the cabinet maker for your wall type. No single screw size or load rating suits every installation.
What if a pipe or cable is inside the planned opening?
Do not cut or move it by guesswork. Relocate the cabinet or obtain a compliant plan from a qualified professional.
(This article was written by one of our staff writers, Andrew Fairchild. Visit our Meet the Team page.)






