An over the toilet medicine cabinet turns the most wasted wall in a small bathroom into closed, dust-free storage, but it is also the spot where installations most often go wrong. The cabinet ends up too low to lift the tank lid, too wide for the wall, or hung on drywall anchors that pull loose once the shelves fill up. Getting it right comes down to three decisions: how high to mount it, how wide it should be relative to the toilet, and whether you can recess it or need a surface-mount unit fastened into framing.
Part of our Bathroom Remodeling & Flooring guide — explore the full guide →
For most bathrooms the answer is a surface-mount cabinet roughly as wide as the toilet tank or slightly wider, with its bottom edge about 24 to 30 inches above the top of the tank, screwed into studs or solid blocking. Recessing is attractive but frequently impossible on this particular wall, because the wall behind a toilet usually hides plumbing.
- How High to Mount an Over the Toilet Medicine Cabinet
- Choosing the Right Width and Depth
- Why the Wet Wall Often Blocks Recessing
- Tools and Materials for Surface-Mount Installation
- Step-by-Step: Mounting a Surface-Mount Cabinet Safely
- Over the Door and Freestanding Alternatives
- Troubleshooting Common Problems
- Cost Ranges
- When to Call a Licensed Professional
- Frequently Asked Questions
How High to Mount an Over the Toilet Medicine Cabinet
Height is the first decision because it drives everything else. You need enough clearance to remove the tank lid for repairs, to reach the flush handle comfortably, and to avoid hitting your head when you stand up. At the same time, the cabinet needs to be low enough that you can see and reach the top shelf.
- Minimum clearance above the tank: Leave at least 18 inches between the top of the tank lid and the bottom of the cabinet. Many installers prefer 24 inches or more so the lid can be lifted straight up and set aside.
- Typical bottom edge height from the floor: About 54 to 60 inches for a standard toilet with a tank top around 28 to 30 inches high.
- Top shelf reach: Keep the top shelf no higher than roughly 72 inches so an average adult can see items without a step stool.
- Alignment with other fixtures: If a vanity mirror or medicine cabinet is on an adjacent wall, matching the top edges usually looks cleaner than matching the bottoms.
Before you mark anything, take the tank lid off and hold it vertically over the tank. Measure from the top of the tank to the top of the lid in that position, then add a few inches. That is your real-world minimum for a medicine cabinet above toilet tanks, and it is often more than people expect, especially with taller comfort-height toilets.
Choosing the Right Width and Depth
A cabinet that is narrower than the tank tends to look like an afterthought, while one that is much wider can crowd the walls on either side. A good rule is to match the tank width or exceed it by up to 6 inches total. Most tanks run between 17 and 21 inches wide, so cabinets in the 20 to 24 inch range fit most toilets.
Also check the side clearances. Building codes commonly require a minimum distance from the toilet centerline to a side wall or obstruction, and a deep cabinet hung close to a side wall can make the space feel tight even if it technically clears. Measure from the toilet centerline to each side wall and center the cabinet on the toilet, not on the wall, unless the two happen to line up.
Depth matters for a different reason. A surface-mount cabinet typically projects 4 to 6 inches from the wall. When you stand up from the toilet and lean forward, a deep cabinet can be in the way of your head. Shallow cabinets around 4 to 5 inches deep are usually the most comfortable choice for this location, and they still hold toothpaste, medicine bottles, cotton swabs and spare razors.
Why the Wet Wall Often Blocks Recessing
Recessed medicine cabinets sit between studs so only the door and frame project from the wall. They look sleek, but the wall behind a toilet is usually the plumbing wall, also called the wet wall. That cavity commonly holds the vent stack, which runs vertically from the toilet drain up through the roof, and sometimes the water supply lines and drain lines for a sink or tub on the other side.
- A 3 inch vent stack often runs straight up inside the stud bay directly behind the toilet, exactly where you would want to recess the cabinet.
- Many wet walls are framed with deeper studs or have extra blocking around pipes, which makes cutting an opening complicated.
- An exterior wall behind the toilet adds insulation and vapor barrier issues; recessing there reduces insulation and can lead to condensation.
- Electrical cable for a nearby fan, light or outlet may also run through the bay.
Before planning a recessed unit, cut a small inspection hole (about 4 by 4 inches) inside the area the cabinet will cover, then look inside with a flashlight. If you see pipes, cables or ductwork, switch to a surface-mount cabinet. Never cut, notch or relocate a vent or drain line yourself; rerouting plumbing requires a licensed plumber and often a permit.
If you do have an open cavity, a recessed or semi-recessed cabinet can work. Semi-recessed models sit partly in the wall and project an inch or two, which allows a shallower cut and more flexibility around framing.
Tools and Materials for Surface-Mount Installation
- Stud finder and a small finishing nail to confirm stud locations
- 4 foot level and tape measure
- Drill with bits sized for your screws
- #10 or larger wood screws, 2.5 to 3 inches long, or the hardware specified by the cabinet maker
- Rated toggle bolts for any mounting point that cannot reach a stud
- Painter’s tape, pencil and a helper
- Safety glasses
Step-by-Step: Mounting a Surface-Mount Cabinet Safely
- Shut off and empty the area. Remove items from the tank top and lay a towel over the tank and bowl to catch dropped screws.
- Locate framing. Use a stud finder, then confirm each stud with a finishing nail in a spot the cabinet will hide. Studs are usually 16 inches on center, but bathroom framing is often irregular around plumbing.
- Mark the height and centerline. Mark the toilet centerline on the wall, then your chosen bottom edge height. Use painter’s tape to outline the cabinet so you can check it visually.
- Plan your fastening points. Most cabinets have a mounting rail or pre-drilled holes in the back panel. Drill new holes in the back if needed so at least two screws hit studs.
- Pre-drill and drive the first screw. With a helper holding the cabinet level, drive one screw into a stud near the top. Check level, then add the remaining screws.
- Add toggles only where necessary. If a mounting point cannot reach a stud, use a rated toggle bolt, not plastic expansion anchors. Toggles should supplement stud screws, never replace them entirely.
- Adjust doors and test. Adjust hinges so the door closes square, then load the shelves and check that the cabinet stays tight to the wall.
Safety and structural notes
A medicine cabinet loaded with glass bottles and mirror glass can weigh 30 to 50 pounds. Anchor it into studs or solid wood blocking, not drywall alone. If the studs do not line up with the cabinet, open the wall and add horizontal 2x blocking between studs, or mount a hardwood cleat across two studs and hang the cabinet from it. Tile walls need a carbide or diamond bit and slow drilling to avoid cracking; wear safety glasses.
Lighted or outlet-equipped cabinets add wiring. For any hardwired cabinet, turn off the breaker and confirm power is off with a non-contact voltage tester before touching wires, and never work on wiring that is still powered. Adding a new circuit or outlet in a bathroom is a job for a licensed electrician, and bathroom outlets require GFCI protection. Plug-in models should be plugged directly into a GFCI-protected outlet.
Over the Door and Freestanding Alternatives
If you rent, have a tile wall you do not want to drill, or face a wet wall with no usable studs, an over the door medicine cabinet can be a practical substitute. These units hang from hooks on top of a bathroom door and hold slim shelves behind a mirrored front. They do not hold as much weight and can rattle when the door swings, so keep heavy glass items elsewhere. Freestanding over-toilet etagere units are another option, though they offer open shelving rather than an enclosed cabinet with a mirror.
Troubleshooting Common Problems
- Cabinet pulls away at the top: Screws missed the stud or rely on drywall anchors. Remove the cabinet and refasten into framing or blocking.
- Door will not stay closed: The cabinet is out of plumb. Shim behind the bottom or top edge and readjust the hinges.
- Cannot remove the tank lid: The cabinet is too low. Relocate it higher, or choose a shorter cabinet.
- Mirror fogs constantly: Improve exhaust fan run time; consider an anti-fog mirrored door on a replacement unit.
- Rust spots on a metal cabinet: Condensation behind the cabinet. Leave a small air gap and run the fan longer after showers.
Cost Ranges
Basic surface-mount cabinets sized for over a toilet are widely available at budget prices, while solid wood, framed-mirror and lighted designs cost more. Recessed models are priced similarly to surface units, but the installation cost rises if drywall or tile needs patching. A handyman can typically hang a surface-mount cabinet in an hour or two. Expect higher labor costs for recessed installs, added blocking, tile drilling or wiring a lighted unit by an electrician.
When to Call a Licensed Professional
Call a contractor when the wall needs to be opened and reframed with blocking, when recessing requires cutting or moving framing, or when the wall is tile over cement board and you are uncomfortable drilling it. Any pipe, drain or vent in the cavity is a licensed plumber’s job, and any new wiring, circuit or outlet calls for a licensed electrician and possibly a permit. A pro can also check whether your layout meets local clearance rules around the toilet.
Handled carefully, the area over a toilet becomes one of the most useful storage spots in a small bathroom, with everyday items enclosed and a mirror where you can actually use it.
Frequently Asked Questions
How high should a medicine cabinet be above a toilet?
Leave at least 18 inches and ideally 24 inches or more between the top of the tank and the bottom of the cabinet, which usually puts the bottom edge 54 to 60 inches off the floor.
Can I recess a medicine cabinet above the toilet?
Sometimes, but the wall behind a toilet often contains the vent stack and other plumbing. Cut a small inspection hole first; if you find pipes or wiring, use a surface-mount cabinet.
How wide should an over the toilet medicine cabinet be?
Match the width of the tank or go up to about 6 inches wider. Most toilets suit cabinets 20 to 24 inches wide.
Can drywall anchors hold a medicine cabinet?
Drywall anchors alone are not recommended. Fasten into studs or blocking, and use rated toggle bolts only as supplemental support.
Are over the door medicine cabinets sturdy?
They are fine for light toiletries, but they hold less weight than wall-mounted units and can rattle as the door moves. Keep heavy glass bottles in a wall cabinet.