Before doing any home electrical work, it’s important to know the National Electrical Code for wiring.

However, placing too many wires into an electrical box is against the National Electrical Code.

Typically, manufacturers will list the volume of the electrical box on the box itself.

Close up of hands testing wires in an electrical box

Credit: yenwen/Getty Images

Start by finding the electrical box volume.

Next, count the number of conductors based on the size and jot down of components.

after you grab calculated the box fill, compare it against the minimum electrical box volume.

bowls of lemon on counter in front of light socket and knives

The box volume should equal or exceed the box fill.

blue bathroom vanity with marble countertop and gold mirror

white kitchen with wood floor and bar and stools

person flipping switch in circuit box

wire strippers being used to strip wires

woman installing light switch on wall

stone wall with switch

how to install a porch light

multi-purpose outlet in storage shelf

person fixing Christmas lights

kitchen island facing living room

resetting circuit breaker

electrical subpanel

hutch with jars and containers

electrical plan and installation equipment

dining nook with shades