Box Fill Calculator
Find the minimum electrical box size for your wires. Count wires, grounds, devices and clamps by NEC 314.16, check your box and see how much room is left.
Leave clamps off for plastic boxes that already include them in the marked volume. Wire connectors and locknuts are not counted.
Your box fill result
You need 15.75 cu in and the box holds 18 cu in. 2.25 cu in is left over.
Minimum volume needed
258.1 cm³
Box fill
Within the limit
Smallest standard box
3 x 2 x 3-1/2 in. device box
Room for more wires
or 1 x 12 AWG · 0 x 10 AWG
How the volume adds up
| Item | Count | Each (cu in) | Total (cu in) |
|---|---|---|---|
| 12 AWG conductors | 4 | 2.25 | 9 |
| Ground wires (2), sized as 12 AWG | 1 | 2.25 | 2.25 |
| Receptacle (outlet) (12 AWG) | 2 | 2.25 | 4.5 |
| Total needed | 15.75 | ||
Which standard boxes pass?
| Box | cu in | Fill | Result |
|---|---|---|---|
| 3 x 2 x 1-1/2 in. device box | 7.5 | 210% | Too small |
| 3 x 2 x 2 in. device box | 10 | 158% | Too small |
| 4 x 2-1/8 x 1-1/2 in. handy box | 10.3 | 153% | Too small |
| 3 x 2 x 2-1/4 in. device box | 10.5 | 150% | Too small |
| 3 x 2 x 2-1/2 in. device box | 12.5 | 126% | Too small |
| 4 in. round/octagonal x 1-1/4 in. deep | 12.5 | 126% | Too small |
| 4 x 2-1/8 x 1-7/8 in. handy box | 13 | 121% | Too small |
| FS box, 1-3/4 in. deep, single gang | 13.5 | 117% | Too small |
| 3 x 2 x 2-3/4 in. device box | 14 | 113% | Too small |
| 3-3/4 x 2 x 2-1/2 in. masonry box | 14 | 113% | Too small |
| 4 x 2-1/8 x 2-1/8 in. handy box | 14.5 | 109% | Too small |
| 4 in. round/octagonal x 1-1/2 in. deep | 15.5 | 102% | Too small |
| 3 x 2 x 3-1/2 in. device box | 18 | 88% | Fits |
| FD box, 2-3/8 in. deep, single gang | 18 | 88% | Fits |
| FS box, 1-3/4 in. deep, multiple gang | 18 | 88% | Fits |
| 4 in. square x 1-1/4 in. deep | 18 | 88% | Fits |
| 3-3/4 x 2 x 3-1/2 in. masonry box | 21 | 75% | Fits |
| 4 in. square x 1-1/2 in. deep | 21 | 75% | Fits |
| 4 in. round/octagonal x 2-1/8 in. deep | 21.5 | 73% | Fits |
| FD box, 2-3/8 in. deep, multiple gang | 24 | 66% | Fits |
| 4-11/16 in. square x 1-1/4 in. deep | 25.5 | 62% | Fits |
| 4-11/16 in. square x 1-1/2 in. deep | 29.5 | 53% | Fits |
| 4 in. square x 2-1/8 in. deep | 30.3 | 52% | Fits |
| 4-11/16 in. square x 2-1/8 in. deep | 42 | 38% | Fits |
Where the box volume goes
Share of the total volume used by wires, grounds, devices and fittings.
Your need compared with standard boxes
Green bars are boxes that can hold 15.75 cu in. Gray bars are too small.
How many wires fit in each box?
Number of wires of one size that fit when the box holds nothing else. Devices, clamps and grounds take space away.
| Box | cu in | 14 AWG | 12 AWG | 10 AWG |
|---|---|---|---|---|
| 3 x 2 x 1-1/2 in. device box | 7.5 | 3 | 3 | 3 |
| 3 x 2 x 2 in. device box | 10 | 5 | 4 | 4 |
| 4 x 2-1/8 x 1-1/2 in. handy box | 10.3 | 5 | 4 | 4 |
| 3 x 2 x 2-1/4 in. device box | 10.5 | 5 | 4 | 4 |
| 3 x 2 x 2-1/2 in. device box | 12.5 | 6 | 5 | 5 |
| 4 in. round/octagonal x 1-1/4 in. deep | 12.5 | 6 | 5 | 5 |
| 4 x 2-1/8 x 1-7/8 in. handy box | 13 | 6 | 5 | 5 |
| FS box, 1-3/4 in. deep, single gang | 13.5 | 6 | 6 | 5 |
| 3 x 2 x 2-3/4 in. device box | 14 | 7 | 6 | 5 |
| 3-3/4 x 2 x 2-1/2 in. masonry box | 14 | 7 | 6 | 5 |
| 4 x 2-1/8 x 2-1/8 in. handy box | 14.5 | 7 | 6 | 5 |
| 4 in. round/octagonal x 1-1/2 in. deep | 15.5 | 7 | 6 | 6 |
| 3 x 2 x 3-1/2 in. device box | 18 | 9 | 8 | 7 |
| FD box, 2-3/8 in. deep, single gang | 18 | 9 | 8 | 7 |
| FS box, 1-3/4 in. deep, multiple gang | 18 | 9 | 8 | 7 |
| 4 in. square x 1-1/4 in. deep | 18 | 9 | 8 | 7 |
| 3-3/4 x 2 x 3-1/2 in. masonry box | 21 | 10 | 9 | 8 |
| 4 in. square x 1-1/2 in. deep | 21 | 10 | 9 | 8 |
| 4 in. round/octagonal x 2-1/8 in. deep | 21.5 | 10 | 9 | 8 |
| FD box, 2-3/8 in. deep, multiple gang | 24 | 12 | 10 | 9 |
| 4-11/16 in. square x 1-1/4 in. deep | 25.5 | 12 | 11 | 10 |
| 4-11/16 in. square x 1-1/2 in. deep | 29.5 | 14 | 13 | 11 |
| 4 in. square x 2-1/8 in. deep | 30.3 | 15 | 13 | 12 |
| 4-11/16 in. square x 2-1/8 in. deep | 42 | 21 | 18 | 16 |
Wire size volume table
Volume allowance for each conductor, from NEC Table 314.16(B).
| Wire size | Cubic inches | Cubic cm |
|---|---|---|
| 18 AWG | 1.50 | 24.6 |
| 16 AWG | 1.75 | 28.7 |
| 14 AWG | 2.00 | 32.8 |
| 12 AWG | 2.25 | 36.9 |
| 10 AWG | 2.50 | 41.0 |
| 8 AWG | 3.00 | 49.2 |
| 6 AWG | 5.00 | 81.9 |
Box Fill Calculator: Find the Right Electrical Box Size
Every electrical box has a limit on how much it can hold. Wires, switches, outlets and cable clamps all take up room, and the National Electrical Code (NEC) says the total must fit inside the box. This is called box fill. If a box is too full, the wires get squeezed, they run hot, and the insulation can get damaged when you push a device back into the wall.
This box fill calculator does the counting for you. Tell it which cables enter the box, what devices are inside, and whether the box has clamps or a fixture stud. It adds up the volume you need in cubic inches and shows the smallest standard box that will work. You can also pick the box you already have and see if it passes.
It is built for homeowners who are adding an outlet, for apprentices who are learning to size boxes, and for working electricians who want a quick second check before they leave for the supply house. It is free, it needs no sign-up, and the answer updates as you type.
What Is Box Fill?
Box fill is the total space that everything inside an electrical box needs. The rule is found in NEC Section 314.16. It works like a simple budget. Each box has a volume, measured in cubic inches, and each item you put in it costs a certain amount of that volume. When the costs add up to more than the box can hold, you need a bigger box.
Two numbers matter. The first is the box volume. Metal boxes get their volume from a table in the code, and plastic boxes have the volume printed inside, usually as a number followed by "cu. in." The second is the volume you need, which comes from adding up the wires and the other items.
The reason for the rule is heat and damage. Wires that are packed in tightly cannot lose heat, and the insulation can nick or crack when you cram everything in. A box with enough room is also much easier to work in, so the job is safer and faster.
How to Calculate Box Fill Step by Step
You do not need special tools. You need a pencil, the wire sizes and a list of what goes into the box. The code gives every wire size its own volume. Look at the table below, because you will use it in every calculation.
- 18 AWG wire: 1.50 cubic inches each
- 16 AWG wire: 1.75 cubic inches each
- 14 AWG wire: 2.00 cubic inches each
- 12 AWG wire: 2.25 cubic inches each
- 10 AWG wire: 2.50 cubic inches each
- 8 AWG wire: 3.00 cubic inches each
- 6 AWG wire: 5.00 cubic inches each
The Five Things You Count
Here is how each item is counted. The calculator follows the same rules, so you can use this list to check its work.
- Wires: Every insulated wire that comes into the box and is connected or spliced there counts once. A wire that runs straight through the box without a cut also counts once. A long wire that is looped through the box without a break, with at least 12 inches of length, counts twice. A short jumper that starts and ends inside the box does not count at all.
- Ground wires: All the bare or green ground wires together count as one wire, using the largest ground size in the box. Under the 2023 code, if more than four ground wires enter the box, each extra one adds a quarter of a wire. A separate isolated ground set is counted as its own wire.
- Cable clamps: If the box has one or more clamps inside it, count one wire in total, using the largest wire size present. Clamps that are on the outside of the box do not count. Many plastic single-gang boxes that meet the code are exempt from this part.
- Devices: Each switch, outlet, GFCI or dimmer counts as two wires, using the largest wire connected to it. A device that is wider than a normal single gang, such as a wide dimmer, counts as two wires for every gang it needs.
- Fittings: A fixture stud or a hickey counts as one wire each, using the largest wire in the box. Small parts like locknuts and wire connectors are free.
Worked Examples You Can Copy
The best way to learn box fill is to run a few real boxes. These examples use the same logic as the calculator.
Example 1, a light switch with two 14/2 cables. Each 14/2 cable has two insulated wires, so you have four 14 AWG wires. That is 4 times 2.00, or 8.00 cubic inches. The two ground wires count as one 14 AWG wire, which is 2.00. The switch counts as two 14 AWG wires, which is 4.00. The total is 14.00 cubic inches. A 3 x 2 x 2-3/4 inch device box holds exactly 14.00, so it just fits. A 3 x 2 x 3-1/2 inch box, at 18.00, gives you room to work.
Example 2, a 20 amp outlet with two 12/2 cables. You have four 12 AWG wires, which is 4 times 2.25, or 9.00. The grounds add one more wire at 2.25. The outlet adds two wires, which is 4.50. The total is 15.75 cubic inches. The 14.00 box is too small here. You need the 18.00 box.
Example 3, a 3-way switch with one 14/3 cable and one 14/2 cable. That is five insulated 14 AWG wires, or 10.00. The grounds add 2.00, and the switch adds 4.00. The total is 16.00 cubic inches, so a 3 x 2 x 3-1/2 inch device box is the smallest choice.
Example 4, a ceiling box with three 14/2 cables, a fixture stud and metal clamps. Six wires give you 12.00. Grounds add 2.00, the stud adds 2.00 and the clamps add 2.00. The total is 18.00 cubic inches. A 4 inch square box that is 1-1/4 inches deep holds 18.00, but a 4 inch square box that is 1-1/2 inches deep, at 21.00, is a safer pick.
How to Use This Box Fill Calculator
Start with a preset that looks like your job, or fill in the boxes yourself. You can change anything the preset gives you.
- Pick a project type, such as a light switch, an outlet, a 3-way switch, a GFCI or a junction box. Or skip this and enter your own wires.
- Add the cables or wires that enter the box. Choose the wire size, the cable type and how many there are. If a wire loops through the box unbroken, switch it to the looped setting.
- Add the devices. Choose a switch, an outlet, a GFCI, a dimmer or a wide device. Leave the wire size on automatic unless you know it is different.
- Tick the clamps, fixture stud or hickey if your box has them. Add any extra volume if a barrier or special fitting takes up room.
- Choose your box. You can pick a standard metal box from the list, or type the volume that is printed inside your plastic box. If you plan to use an extension ring, add its volume too.
- Read the result. You will see the volume you need, the fill percentage, the smallest standard box that works and a list of every box with a pass or fail mark.
- Copy the summary, download the CSV or print the page to keep with your job notes.
Standard Electrical Box Sizes and Their Volumes
Metal boxes follow a table in the code, so their volume is easy to find. These are the sizes you will see most often. Volumes are in cubic inches.
- 3 x 2 x 2-1/2 inch device box: 12.5. Fine for simple switches with few wires.
- 3 x 2 x 3-1/2 inch device box: 18.0. The most common deep box for outlets and GFCIs.
- 4 inch square x 1-1/2 inch deep: 21.0. A popular choice for junctions and lights.
- 4 inch square x 2-1/8 inch deep: 30.3. Good for crowded splices.
- 4-11/16 inch square x 2-1/8 inch deep: 42.0. The biggest common box, used for lots of wires.
- 4 inch round or octagonal x 1-1/2 inch deep: 15.5. A common ceiling box.
- 4 inch round or octagonal x 2-1/8 inch deep: 21.5. Deeper ceiling box.
How Many Wires Fit in an Electrical Box?
People search for this all the time, and the answer depends on the wire size and on what else is in the box. A simple rule of thumb is to divide the box volume by the wire volume. An 18 cubic inch box can hold nine 14 AWG wires, but only eight 12 AWG wires, because each one is bigger.
That number is for a box with nothing else inside. As soon as you add a device, a clamp or a ground wire, you lose some of those spaces. A single outlet takes up room for two wires, and the ground wires take up one more. So a box that looks like it can hold nine wires may only hold about six once the outlet and the ground wires are in place.
This is why a plain wire count can mislead you. Always count the whole box, and use the calculator when you are close to the limit. The reference table on this page shows how many 14, 12 and 10 AWG wires fit in each standard box when it is empty.
Metal Boxes vs Plastic Boxes
Metal boxes have a volume in the code table. Plastic boxes are different. The maker prints the volume inside the box, and you should use that number. Plastic single-gang boxes often fall somewhere between 14 and 22 cubic inches, but the range is wide, so always read the label.
If a plastic box has no volume marked, it must be treated with care. Look at the box, check the packaging or look up the model number from the maker. When you cannot find the number, pick a different box that is marked.
Boxes with built-in clamps, like many plastic ones, already include the clamps in the printed volume. In that case, leave the clamps box off in the calculator so you do not count them twice.
What to Do When the Box Is Too Full
It happens on almost every remodel. You open the wall, count the wires and the box is already full. You have a few good options.
- Use a deeper box. Going from a 2-1/2 inch deep box to a 3-1/2 inch deep box adds several cubic inches with the same wall opening.
- Add an extension ring. A listed ring adds its own marked volume to the box. Add that volume in the calculator to see the new total.
- Move to a larger box type. A 4 inch square or 4-11/16 inch square box holds far more than a standard device box.
- Cut down the number of wires. Sometimes you can join wires in a bigger box nearby and run just one cable to the device.
- Split the circuit. Two smaller boxes are better than one jammed box.
Common Box Fill Mistakes
Most failed inspections on box fill come from a few simple errors. Watch for these.
- Forgetting the device. A switch or outlet costs two wires of space, and people often leave it out.
- Counting each ground wire. Grounds are counted as one wire, not one for each cable, until you pass four.
- Using the wrong wire size for a mix. If you have 12 AWG and 14 AWG wires together, count each at its own size, and base the clamps and device on the largest.
- Skipping the clamps. If the metal box has internal clamps, add one wire of space.
- Using a plastic box without checking its stamped volume.
- Assuming a bigger box is always better. Oversized boxes can be hard to mount and may not fit the wall.
Box Fill and Safety
Box fill is not just about passing an inspection. A box that is stuffed full can damage insulation, which can lead to a short or a ground fault. Tight bundles also hold heat. That matters most on 20 amp circuits and on boxes with dimmers, which make heat of their own.
Give yourself some room. If your count lands right on the limit, think about stepping up one size. It costs a few dollars and saves a lot of struggle when you push the device in.
This calculator is a tool to help you plan and learn. It follows the 2023 NEC counting rules, but local codes can differ and older code editions used slightly different rules for ground wires. The final word always belongs to your local inspector. If you are not sure about any part of your wiring, hire a licensed electrician.
Frequently Asked Questions
How do you calculate box fill?
Count every wire that enters the box, count the ground wires together as one, then add two wires for each device, one for the clamps and one for each fixture stud or hickey. Multiply each count by the volume for that wire size, such as 2.00 cubic inches for 14 AWG, and add it all up. The total must not be more than the box volume.
How many 12 gauge wires can go in a 20 cubic inch box?
A 20 cubic inch box can hold eight 12 AWG wires when it holds nothing else, because each one needs 2.25 cubic inches and 20 divided by 2.25 is 8.9. Once you add a device, clamps or ground wires, you can fit fewer. Use the calculator to count your exact box.
How many 14 gauge wires can go in a 4 square box?
A 4 inch square box that is 1-1/2 inches deep holds 21 cubic inches, which is ten 14 AWG wires if nothing else is inside. A 2-1/8 inch deep box holds 30.3 cubic inches, or fifteen wires. Devices, clamps and grounds reduce that number.
How much volume does a wire take up in a box?
It depends on the size. A 14 AWG wire takes 2.00 cubic inches, a 12 AWG wire takes 2.25, a 10 AWG wire takes 2.50, an 8 AWG wire takes 3.00 and a 6 AWG wire takes 5.00. These figures come from Table 314.16(B) of the NEC.
Do ground wires count in box fill?
Yes, but not one by one. All the ground wires together count as one wire, using the largest ground size in the box. Under the 2023 NEC, each ground wire beyond four adds a quarter of a wire. An isolated ground set counts as its own extra wire.
Does a switch or outlet count as a wire in box fill?
Yes. Each device mounted on a yoke counts as two wires, sized by the largest wire connected to it. A wide device that needs two gangs counts as two wires for each gang, so four in total.
Do wire nuts count in box fill?
No. Wire connectors, locknuts and bushings are small fittings and are not counted. Cable clamps inside the box are counted, though, as one wire in total.
What size box do I need for a GFCI outlet?
A GFCI is a bulky device, so use a deep box. A 3 x 2 x 3-1/2 inch device box at 18 cubic inches is a common pick. With two 12/2 cables and clamps, a GFCI needs about 18 cubic inches, so check your own count.
What size box do I need for a 3-way switch?
A 3-way switch with one 14/3 cable and one 14/2 cable needs about 16 cubic inches, so a 3 x 2 x 3-1/2 inch device box is the smallest standard choice. If more cables enter the box, the number goes up.
Can I use a box extension to fix a full box?
Yes, if the extension ring is listed and has a marked volume. Add that volume to the box volume. Many extension rings add about 6 to 12 cubic inches, but check the label on yours.
Does a plastic box have a different box fill rule?
The counting rules are the same. The difference is the box volume. A plastic box has its volume marked inside, and you must use that number instead of a code table value.
What does a looped wire mean in box fill?
A looped wire is one long, unbroken wire that goes into the box and out again, with at least 12 inches of length in the box. It counts as two wires instead of one. Short pass-through wires count once.
What is NEC 314.16?
It is the section of the National Electrical Code that sets the box fill rules. It lists how much volume each wire, device and fitting needs and says the total must not be more than the volume of the box.
Is this box fill calculator accurate for my local code?
It follows the NEC counting rules, and it is a good guide for planning. Local codes can add rules or use another edition, so check with your local inspector before you buy or install.