Yes, an electrician can install a receptacle outlet inside a bathroom vanity cabinet. The National Electrical Code (NEC) doesn't ban outlets simply for being enclosed in cabinetry — but the outlet still has to satisfy NEC 210.8(A)(1), which requires GFCI (ground-fault circuit interrupter) protection for every 125-volt, 15- or 20-amp receptacle in a bathroom. Because the outlet also sits close to the vanity sink, the 2020 NEC's sink-proximity rule in 210.8(A)(7) can independently trigger the same GFCI requirement for any receptacle within 6 feet of a sink's edge. The receptacle also needs to be tamper-resistant under NEC 406.12. Local jurisdictions adopt NEC editions on their own schedule, so confirm which edition your area enforces before assuming a specific section applies.
The Short Answer: In-Cabinet Bathroom Outlets Are Allowed With GFCI Protection
Nothing in the NEC singles out receptacles that happen to sit inside a cabinet versus one mounted on an open wall. The code regulates receptacles based on their voltage, amperage, and location — not their visibility. That means an outlet installed inside a bathroom vanity cabinet is treated exactly like any other 125-volt, 15- or 20-amp bathroom receptacle: it must be GFCI protected, it must be tamper-resistant, and it must be supplied by a circuit that meets the bathroom receptacle circuit requirement.
What changes is the practical side of the installation: accessibility for testing and resetting the GFCI device, moisture exposure from a nearby sink or supply lines, and whether the homeowner wants an easy way to cut power to something plugged in and forgotten inside a closed cabinet. Those are the details covered below.
Why Homeowners Add an Outlet Inside a Vanity Cabinet
A concealed outlet is a common request during a vanity remodel or a cabinet upgrade. Typical uses include:
- Charging an electric toothbrush, electric razor, or trimmer out of sight
- Powering a small nightlight or motion-sensor light strip inside the cabinet
- Running a power strip that charges hair tools like flat irons and curling irons between uses
- Supplying a built-in appliance such as an in-cabinet outlet dock for a bathroom scale or grooming mirror
None of these uses change the code requirements below. A hidden outlet used to charge a toothbrush still has to meet the same GFCI and tamper-resistant rules as the outlet next to the mirror.
NEC GFCI Requirements That Apply Inside a Vanity Cabinet
Two separate NEC provisions can each independently require GFCI protection for an in-cabinet vanity outlet, and in most bathrooms both apply at once.
NEC 210.8(A)(1): All Bathroom Receptacles
NEC 210.8(A)(1) requires GFCI protection for all 125-volt, 15- and 20-amp receptacles installed in bathrooms of dwelling units. A "bathroom" under the NEC is an area with a basin and at least one additional fixture such as a toilet, tub, or shower. This rule applies regardless of where in the room the receptacle sits — wall-mounted, inside a cabinet, or behind a mirror, it makes no difference.
NEC 210.8(A)(7): The Sink-Proximity Rule
Earlier NEC editions limited a separate sink-based GFCI rule to receptacles near kitchen sinks, primarily to cover dishwashers and garbage disposals. The 2020 NEC broadened that language by removing the word "kitchen," so the rule now applies to receptacles within 6 feet of the outside edge of any sink — including a bathroom vanity sink, a wet bar sink, or a laundry sink. Since a vanity cabinet sits directly beneath or beside the sink basin, an in-cabinet outlet will almost always fall inside that 6-foot radius, triggering GFCI protection under this section as well, in jurisdictions that have adopted the 2020 NEC or later.
Not every city or state has adopted the 2020 or 2023 NEC. Some jurisdictions still enforce the 2017 or an earlier edition, and some apply local amendments. Ask your permit office or licensed electrician which edition is currently enforced before assuming a specific section number applies to your project.
NEC 406.12: Tamper-Resistant Receptacles
Separately, NEC 406.12 requires tamper-resistant (TR) receptacles in most dwelling unit locations, including bathrooms. A TR receptacle has internal shutters that block objects from being inserted into just one slot, reducing shock risk from children probing the outlet. This requirement is based on the receptacle's location classification, not on whether a cabinet door limits everyday access to it — so an in-cabinet vanity outlet still needs to be a TR device.
| Requirement | What It Covers | Typical NEC Reference | Applies Inside a Cabinet? |
|---|---|---|---|
| GFCI protection — bathroom location | Any 125V, 15/20A receptacle located in a bathroom | 210.8(A)(1) | Yes — location-based, not visibility-based |
| GFCI protection — sink proximity | Receptacles within 6 ft of the outside edge of any sink | 210.8(A)(7), 2020 NEC and later | Yes, in most vanity layouts |
| Tamper-resistant receptacle | Dwelling-unit receptacle locations, including bathrooms | 406.12 | Yes — based on room, not accessibility |
| Dedicated 20A bathroom circuit | Circuit serving bathroom receptacle outlets | 210.11(C)(3) | Typically yes, if it serves only that bathroom |
In practice, this means a compliant in-cabinet vanity outlet is a GFCI-protected, tamper-resistant, 125-volt receptacle wired to the bathroom's dedicated 20-amp receptacle circuit. GFCI protection can be provided either by a GFCI receptacle installed at that location or by a GFCI circuit breaker at the panel that protects the whole circuit — both are code-compliant ways to satisfy 210.8(A)(1) and 210.8(A)(7).
Does the In-Cabinet Outlet Need Its Own Circuit?
Not because it's inside a cabinet, no. NEC 210.11(C)(3) already requires at least one 20-amp branch circuit dedicated to bathroom receptacle outlets. If that circuit supplies receptacles in only one bathroom, it is also permitted to supply other outlets in that same bathroom, such as the vanity light fixture, as long as the load calculations support it. An in-cabinet outlet added during a remodel is usually just another outlet added to that existing dedicated circuit — a new, separate circuit is not required simply because the receptacle sits inside a cabinet rather than on an exposed wall.
What does change the calculation is if the circuit currently serves more than one bathroom. In that case, it cannot also serve non-receptacle loads, and an electrician will need to verify capacity and configuration before adding another outlet to it.
Why Placement Inside the Cabinet Still Matters
Code compliance covers protection and wiring, but placement inside the cabinet affects how usable and safe the outlet actually is day to day.
- GFCI devices need to be tested and reset. Manufacturers of GFCI receptacles generally recommend testing the device monthly using its built-in test/reset buttons. An outlet buried at the back of a deep cabinet, behind stored items, is harder to reach for that routine test — which is a practical reason to mount it near the cabinet opening or on a side wall close to the door rather than at the very back.
- Moisture exposure from plumbing. A vanity cabinet houses the sink's water supply lines and drain trap. Positioning the outlet away from the area directly under the trap, and above the cabinet floor rather than at floor level, reduces the chance that a slow leak or condensation reaches the device.
- Clearance from the cabinet's plumbing and structure. The receptacle box needs enough clear space around it to be wired and later serviced without removing plumbing components.
An in-cabinet outlet installed at floor level, directly under the P-trap, is a common mistake. Even a small drip from a loose slip-joint fitting can reach the device over time. Ask your electrician to position the receptacle higher on a side wall of the cabinet, away from the direct path of the plumbing.
Do You Need a "Cord Safety Switch" for an In-Cabinet Outlet?
This is where GFCI protection and a control switch get confused, and they solve two different problems.
GFCI protection is a code-required safety device that continuously monitors current and shuts the circuit off within milliseconds if it detects current leaking to ground — the scenario that causes electric shock. It is not optional for a bathroom vanity outlet, and it is not something a homeowner can substitute with a switch.
A cord safety switch — an in-line switch on a cord set, or a power strip with its own rocker switch — is a convenience and fire-safety feature, not an NEC mandate. It lets someone cut power to whatever is plugged in without unplugging it. This matters most for heat-producing tools like flat irons and curling irons, which are sometimes stored warm inside a cabinet still plugged into a power strip.
Under NEC Article 422, a cord-and-plug connection is generally permitted to serve as the appliance's required disconnecting means, provided the plug and receptacle remain accessible. Closing a cabinet door does not make a receptacle "inaccessible" in the code sense, since it can still be reached by opening the door — but it does make unplugging something less convenient in daily use, which is the real-world reason a switched receptacle or switched power strip is a popular upgrade.
If the outlet will regularly power heat tools, ask your electrician about a listed switched receptacle or a listed power strip with its own on/off switch. It gives a fast way to de-energize the tool before closing the cabinet, without relying on someone remembering to physically unplug it. This is a recommended practice, not something the NEC requires for this application.
GFCI Protection
Code-required. Protects against electric shock from ground faults. Applies based on the receptacle's location and rating.
Cord Safety Switch
Optional convenience feature. Lets you cut power to a plugged-in tool without unplugging it. Recommended for heat tools, not mandated by the NEC.
Common Mistakes to Avoid
- Wiring a standard (non-GFCI) receptacle inside the cabinet because "no one will see it"
- Using a non-tamper-resistant receptacle salvaged from another part of the house
- Running the outlet off an extension cord from outside the cabinet instead of a properly boxed, permanent receptacle
- Mounting the receptacle directly under the sink trap or supply valves
- Skipping a permit or inspection for what seems like a "small" electrical addition
- Assuming a GFCI outlet elsewhere in the bathroom already protects a newly added in-cabinet outlet without verifying the wiring configuration
That last point is worth emphasizing: GFCI protection can come from an upstream GFCI receptacle wired to protect downstream outlets, or from a GFCI breaker at the panel. Either can be valid, but it has to be verified by whoever does the work — don't assume protection exists just because a GFCI test/reset button is visible somewhere else in the room.
How to Add or Verify a Code-Compliant In-Cabinet Outlet
- Confirm the room meets the NEC definition of a bathroom. A basin plus a toilet, tub, or shower in the same room triggers the full set of bathroom receptacle rules described above.
- Identify the existing dedicated bathroom circuit. Have an electrician confirm whether a 20-amp circuit already serves only this bathroom's receptacles, and whether it has capacity for another outlet.
- Choose the GFCI method. Decide whether protection will come from a GFCI receptacle at the new location or a GFCI breaker at the panel protecting the whole circuit.
- Select a listed, tamper-resistant device. The receptacle should be labeled TR and rated for the circuit's voltage and amperage.
- Plan the mounting location inside the cabinet. Position it away from the sink trap and supply lines, and close enough to the cabinet opening to remain reachable for monthly testing.
- Decide if a switched receptacle or switched power strip makes sense. This is optional, based on what will be plugged in.
- Pull a permit if your jurisdiction requires one for new circuits or outlets. Many areas require a permit and inspection for new electrical outlets, even small additions.
- Have the completed work inspected if a permit was pulled, and test the GFCI device's test/reset buttons before considering the job finished.
Before You Hire an Electrician: Verification Checklist
- The proposed receptacle is GFCI protected, either by device or by breaker
- The receptacle is a listed, tamper-resistant (TR) device
- The outlet is wired to a circuit that meets the dedicated bathroom receptacle circuit rule
- The mounting location avoids the sink trap and supply line path
- The location remains reachable for testing and resetting the GFCI device
- A permit has been pulled if your local jurisdiction requires one
- You've discussed whether a switched receptacle or power strip fits how you'll use the outlet
Frequently Asked Questions
Is it against code to put an outlet inside a bathroom vanity cabinet?
No. The NEC does not prohibit a receptacle inside a vanity cabinet. It still has to meet the same rules as any other bathroom receptacle: GFCI protection, tamper-resistant construction, and placement on a code-compliant bathroom receptacle circuit.
Does an outlet inside a vanity cabinet need GFCI protection even though it's hidden from view?
Yes. GFCI protection is triggered by the receptacle's location and voltage/amperage rating, not by whether it is visible. A 125-volt, 15- or 20-amp receptacle inside a bathroom, or within 6 feet of a sink under the 2020 NEC's sink-proximity rule, requires GFCI protection whether it sits in the open or inside a closed cabinet.
Can I plug a power strip into a vanity cabinet outlet to charge hair tools?
Generally yes, as long as the receptacle it's plugged into is GFCI protected and the power strip is a listed product used within its rating. A power strip does not need its own GFCI if it is downstream of a GFCI-protected receptacle, but it also does not replace the requirement for that upstream GFCI protection.
Do I need a separate electrical circuit for an outlet inside a vanity cabinet?
Usually not. An in-cabinet outlet can typically share the dedicated 20-amp bathroom receptacle circuit required by NEC 210.11(C)(3), as long as that circuit serves only that one bathroom. A separate circuit is not required simply because the outlet is located inside cabinetry.
What is the difference between GFCI protection and a "cord safety switch"?
GFCI protection is a code-required device that shuts off power when it detects a ground fault, protecting against electric shock. A cord safety switch, such as an in-line switch or a switched power strip, is an optional convenience feature that lets a homeowner cut power to a plugged-in appliance without unplugging it. The NEC requires the first; it does not require the second.
Does a vanity cabinet outlet still need to be tamper-resistant if children can't reach it?
Yes. NEC 406.12 requires tamper-resistant receptacles based on the receptacle's location in a dwelling unit, including bathrooms, regardless of whether a cabinet door limits everyday access to it.
Before You Wire It: The Bottom Line
An outlet inside a bathroom vanity cabinet is a normal, code-permitted addition — as long as it's treated as exactly what it is: a bathroom receptacle. That means GFCI protection from either a GFCI receptacle or a GFCI breaker, a tamper-resistant device, placement on the bathroom's dedicated 20-amp receptacle circuit, and a mounting spot that keeps the receptacle away from plumbing and reachable enough to test. A switch to control what's plugged in is a reasonable add-on for heat tools, but it's a homeowner convenience choice, not something the electrical code requires. Confirm the NEC edition your local jurisdiction enforces before the work starts, and have the finished outlet inspected if your area requires a permit for the addition.