Size wire and breaker for a load (NEC 310.16 / IEC 60364)
size_wire_for_loadWire size and breaker size for a load by amps (or kW) and distance: NEC 310.16 ampacity with 310.15(B)(1) ambient correction and 310.15(C)(1) bundling adjustment, 240.4(D) small-conductor limits, 125 % for continuous loads (210.19(A)(1)), 75 °C / 60 °C terminations, NM-B at 60 °C; or IEC 60364-5-52 current-carrying capacity (Ib ≤ In ≤ Iz) for installation methods A1–E, PVC or XLPE, with temperature (B.52.14) and grouping (B.52.17) factors. Then the wire is upsized until the voltage drop is within the limit, and the result says whether ampacity or voltage drop decided it. Also gives the equipment grounding conductor (NEC 250.122) or protective conductor (IEC 60364-5-54).
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": {
"length": "<length>"
},
"name": "size_wire_for_load"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kw | No | Load power in kW, instead of amps (uses voltage and power factor) | |
| amps | No | Load current, A | |
| volts | No | Supply voltage, line-to-line for three phase. Default: NEC 120 V / 208 V, IEC 230 V / 400 V | |
| length | Yes | One-way length of the run | |
| supply | No | single | |
| standard | No | nec | |
| conductor | No | IEC tables here are copper only | copper |
| temp_unit | No | C | |
| continuous | No | NEC: load runs 3 h or more, so OCPD and wire at 125 % (210.19(A)(1)). EV chargers, water heaters: true | |
| insulation | No | IEC: PVC 70 °C or XLPE/EPR 90 °C | pvc |
| length_unit | No | Default: ft for NEC, m for IEC | |
| ambient_temp | No | Ambient temperature | |
| power_factor | No | ||
| nec_wire_type | No | NM-B (Romex) is held to the 60 °C column (334.80); THHN/THWN-2 in conduit uses 90 °C for derating | nm-b |
| install_method | No | IEC installation method: A1/A2 in conduit in an insulated wall, B1/B2 conduit or trunking on a wall, C clipped direct, E on a perforated tray | C |
| grouped_circuits | No | IEC: circuits bunched together (Table B.52.17) | |
| max_drop_percent | No | Voltage drop limit, % | |
| terminal_rating_c | No | NEC equipment terminal rating, °C | |
| current_carrying_conductors | No | NEC: current-carrying conductors in the raceway or cable (Table 310.15(C)(1)) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| more | Yes | ||
| basis | Yes | Which check decided the size, with the code rule | |
| steps | Yes | ||
| method | Yes | ||
| safety | Yes | ||
| standard | Yes | ||
| warnings | Yes | ||
| conductor | Yes | ||
| load_amps | Yes | ||
| wire_size | Yes | Size to install, or null when nothing in the table fits | |
| governed_by | Yes | ||
| ambient_used | Yes | ||
| breaker_amps | Yes | Overcurrent device: NEC 240.6(A) or IEC standard rating | |
| ampacity_rule | Yes | ||
| derating_factor | Yes | ||
| size_by_ampacity | Yes | ||
| voltage_drop_volts | Yes | ||
| grounding_conductor | Yes | NEC Table 250.122 (and 250.122(B) when upsized for drop) or IEC 60364-5-54 Table 54.2 | |
| size_by_voltage_drop | Yes | ||
| voltage_drop_percent | Yes | ||
| ampacity_derated_amps | Yes | ||
| voltage_at_load_volts | Yes | ||
| size_if_not_continuous | No |