Calculate electrical box fill (NEC 314.16)
calculate_box_fillNEC 314.16 box fill: volume allowances (each insulated conductor 1, all internal clamps 1, each fixture stud or hickey 1, each device yoke 2, equipment grounds 1 for up to four plus ¼ for each additional, NEC 2023) times the Table 314.16(B)(1) volume per conductor of the largest wire (14 AWG 2.00 in³, 12 AWG 2.25 in³, 10 AWG 2.50 in³), against the box volume. Says whether it fits, how many more wires fit and the smallest metal box of Table 314.16(A) that holds it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"box_volume_in3": "<box_volume_in3>",
"insulated_conductors": "<insulated_conductors>"
},
"name": "calculate_box_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| devices | No | Switches and receptacles on a yoke: 2 each | |
| ground_wires | No | Equipment grounding conductors: 1 for up to four, ¼ each beyond | |
| largest_wire | No | Largest conductor in the box, 18 to 6 AWG | 12 |
| box_volume_in3 | Yes | Box volume in cubic inches: stamped inside plastic boxes; metal 4 in square × 1½ in = 21, × 2⅛ in = 30.3. Add a ring's marked volume | |
| internal_clamps | No | Internal cable clamps: one allowance for all | |
| insulated_conductors | Yes | Hots and neutrals entering the box (a wire passing through once counts 1, pigtails 0) | |
| fixture_studs_hickeys | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| more | Yes | ||
| steps | Yes | ||
| passes | Yes | ||
| warnings | Yes | ||
| fill_percent | Yes | ||
| box_volume_in3 | Yes | ||
| volume_allowances | Yes | ||
| smallest_metal_box | Yes | Smallest Table 314.16(A) metal box that holds it | |
| required_volume_in3 | Yes | ||
| room_for_more_conductors | Yes | ||
| volume_per_conductor_in3 | Yes |