A recessed medicine cabinet can completely change how your bathroom feels and functions. It frees up counter space, hides toiletries behind a sleek mirror, and gives the room a built-in, custom look. But cutting into your wall can feel intimidating, especially if you are worried about hitting wires or pipes. This guide shows you exactly how to install a medicine cabinet into the wall with confidence, covering everything from choosing the right spot to sealing the final edges. You will learn the tools you need, the safety checks to perform, and the step-by-step process to get a professional result in just a few hours.
Choose the Right Location for Your Medicine Cabinet
Measure Height and Clearance
The ideal height for a medicine cabinet is 48 to 52 inches from the floor to the center of the cabinet. This places the mirror at eye level for most adults and keeps frequently used items within easy reach.
If you are installing above a sink, leave at least 6 inches of clearance between the sink rim and the cabinet bottom. This gap prevents water splashes from damaging the cabinet and gives you room to lean over while washing your face or brushing your teeth.
Check for Obstructions Behind the Wall
Before you commit to a location, you must know what is inside the wall. Use a stud finder and a voltage detector to scan the area thoroughly. Look for these potential hazards:
- Electrical wiring running near outlets or light switches
- Plumbing pipes, especially behind sinks or showers
- Wall studs that are too close together to fit the cabinet
- Ductwork or other HVAC components
The cabinet needs a cavity wide enough to fit between two studs. Standard stud spacing is 16 or 24 inches on center, so measure carefully to confirm your chosen spot will work.
Select the Right Cabinet Type
Recessed vs. Surface-Mounted
For the cleanest look, choose a recessed medicine cabinet. These units fit inside the wall cavity and sit flush with the drywall surface. They look custom-built and take up zero floor or counter space.
Surface-mounted cabinets attach directly to the outside of the wall. They are easier to install because you do not need to cut into drywall, but they protrude into the room and can feel bulky in smaller bathrooms.
This guide focuses on recessed installation, which requires more work but delivers a far more polished result.
Standard Sizes and Framing Compatibility
Medicine cabinets come in several common sizes:
- 16 inches wide by 24 inches high
- 20 inches wide by 24 inches high
- 21 inches wide by 30 inches high
Most recessed cabinets need 3.5 to 4 inches of depth to fit properly. This works perfectly with standard 2×4 stud walls, which have about 3.5 inches of cavity space. Measure your cabinet’s depth before cutting to ensure it will fit.
Prepare the Wall for Installation
Mark and Cut the Drywall Opening
Place the cabinet against the wall at your chosen height and trace its outline with a pencil. Use a level to make sure the top edge is perfectly horizontal and the sides are perfectly vertical.
Cut along your traced lines with a keyhole saw or drywall saw. Start by drilling a small starter hole near one corner, then insert the saw blade and cut slowly along your marks. Take your time to avoid jagged edges or accidental overcutting.
Pro Tip: Cut the opening about 1/8 inch smaller than the cabinet frame. This allows room for shims and ensures a snug, secure fit.
Inspect the Wall Cavity
Once the drywall is removed, reach inside and check the cavity carefully. Confirm that:
- No pipes, wires, or ducts are blocking the space
- Both side studs are intact and plumb
- The cavity depth matches your cabinet requirements
If you discover an obstruction, stop and relocate the cabinet. Cutting into a live wire or water pipe can cause serious damage or injury. When in doubt, consult a professional.
Secure the Cabinet to the Wall

Insert and Level the Cabinet
Slide the cabinet into the opening carefully. Most recessed models have metal wings or flanges on the sides that expand outward to grip the back of the drywall.
Place a 4-foot level across the top and along the sides of the cabinet. Adjust the position using wood shims between the cabinet frame and the studs until everything is perfectly plumb and level.
Fasten the Mounting Flanges
Once the cabinet is level, tighten the adjustable mounting screws on each side. These screws drive the flanges outward, pressing them firmly against the back of the drywall to hold the cabinet in place.
Do not overtighten. Excessive force can crack the drywall or warp the cabinet frame. Test the stability by gently pushing on the cabinet from different angles. It should feel solid and immovable.
Seal and Finish the Edges
Apply Caulk Around the Frame
Use mildew-resistant silicone caulk to seal the gap between the cabinet frame and the drywall. This step is essential in a bathroom, where moisture can seep behind the cabinet and cause mold or rot.
Run a thin, continuous bead of caulk around the entire perimeter. Smooth it with a damp finger or a caulk tool, then wipe away any excess immediately. Let it dry completely before moving on.
Patch and Paint Surrounding Areas
If your drywall cut was not perfectly clean, patch any damaged areas with joint compound. Apply a thin layer, let it dry, sand it smooth, and apply a second coat if needed.
Prime and paint the patched areas to match the surrounding wall. Use a small brush to cut in along the cabinet edges for a crisp, professional finish.
Install Mirror and Accessories
Attach the Mirror or Door
Follow the manufacturer’s instructions to mount the mirror or door on your cabinet. Most units use pivot clips or magnetic hinges that allow for easy adjustment.
Make sure the mirror aligns evenly and opens and closes smoothly. Clean the glass with a streak-free glass cleaner before you start using the cabinet.
Add Interior Features
Many modern medicine cabinets include useful extras:
- Adjustable shelves for flexible storage
- Interior lighting for better visibility
- GFCI-protected electrical outlets for grooming tools
If your cabinet requires electrical wiring, hire a licensed electrician to handle the installation. Working with electricity in a bathroom, where water is present, carries serious risks that are not worth taking on yourself.
Common Mistakes to Avoid
Cutting Too Large an Opening
A gap larger than 1/8 inch makes it difficult to secure the cabinet and leaves unsightly gaps that are hard to conceal. Measure twice and cut once, and always err on the smaller side.
Ignoring Wall Studs and Utilities
Drilling into a water pipe or electrical wire can cause thousands of dollars in damage and create serious safety hazards. Always use detection tools and take your time with this step.
Skipping the Leveling Step
An unlevel cabinet looks crooked and causes doors to sag or misalign. Spend the extra few minutes to shim and recheck with a level before tightening everything down.
When to Call a Professional
Some situations call for expert help. Consider hiring a contractor or handyman if:
- You find plumbing or electrical lines in the wall cavity
- Your cabinet requires hardwired lighting or an outlet
- Your wall is made of tile, brick, or concrete, which needs masonry tools
- You are unsure about load-bearing walls or structural changes
Professionals have the right tools and experience to handle complex installations safely and efficiently.
Final Tips for a Flawless Installation
Work Clean and Safe
Cover the sink and floor with drop cloths to catch dust and debris. Wear safety goggles and gloves when cutting drywall. Keep your tools organized and out of reach of children.
Choose the Right Tools
Gather these tools before you start:
- Stud finder
- Voltage detector
- Tape measure and pencil
- Level (both 2-foot and 4-foot sizes)
- Drywall or keyhole saw
- Caulk gun and silicone caulk
- Shims and screwdriver
Having everything ready before you begin makes the job faster, safer, and more enjoyable.
Plan for Future Access
If the cabinet backs onto another room, such as a closet, consider installing a removable access panel behind it. This gives you a way to reach the back of the cabinet for future repairs or maintenance without cutting into the wall again.
Frequently Asked Questions About Installing a Medicine Cabinet
How long does it take to install a recessed medicine cabinet?
Most DIYers complete the installation in 3 to 5 hours, depending on their experience level and the complexity of the wall. If you need to patch and paint drywall, add another hour or two.
Can I install a medicine cabinet in a tiled wall?
Yes, but it requires special masonry tools like a diamond blade or tile cutter. The process is more complex and carries a higher risk of cracking tiles. Many homeowners hire a professional for tiled installations.
What if my wall studs are not the standard 16 inches apart?
You can still install a recessed cabinet, but you may need to build out the opening with additional framing. This involves attaching new studs or blocking to create a cavity that matches your cabinet’s width.
Do I need a permit to install a medicine cabinet?
Most medicine cabinet installations do not require a permit because they do not involve structural changes or new electrical work. However, if you are adding an outlet or hardwired lighting, check with your local building department for permit requirements.
How do I know if there are pipes behind my chosen wall location?
Use a stud finder with wire and pipe detection capabilities, or tap on the wall and listen for hollow sounds that might indicate a cavity. If you are still unsure, consult your home’s blueprints or call a professional to scan the area.
Can I install a medicine cabinet myself, or should I hire a pro?
If you are comfortable with basic tools and have checked for utilities, this is a manageable DIY project. However, if you encounter unexpected obstacles or feel unsure at any point, hiring a professional is a wise investment.
Key Takeaways for Installing Your Medicine Cabinet
Installing a recessed medicine cabinet is a rewarding project that adds both storage and style to your bathroom. The three most critical steps are choosing a safe location, cutting a precise opening, and leveling the cabinet perfectly before securing it. Skipping any of these can lead to frustration, damage, or a crooked final result.
Take your time during the preparation phase. Scan for utilities, measure carefully, and confirm your cabinet fits the cavity before you make any cuts. A little extra effort upfront saves you from costly mistakes later.
Once your cabinet is installed and sealed, step back and enjoy the transformation. You have created a built-in look that elevates the entire room. With proper care, your new medicine cabinet will serve you well for years to come. If you run into any issues during the process, do not hesitate to call a professional. The investment is worth the peace of mind.





