{"name":"electrician.wiki published test cases","url":"https://electrician.wiki/methodology/test-cases/","license":"CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)","cases":[{"calculator":"residential-load","name":"Example D1(a), one-family dwelling, standard method (2023)","source":"NFPA 70 (National Electrical Code), Informative Annex D, Example D1(a), 2023 edition","sourceUrl":"https://docinfofiles.nfpa.org/files/AboutTheCodes/70/70_A2025_NEC_P02_SD_PrelimSR.pdf","standard":"nec-2023","inputs":{"area":1500,"smallAppliance":2,"laundry":1,"rangeKw":12,"dryerKw":5.5,"waterHeaterKw":0,"dishwasherKw":0,"disposalKw":0,"otherKw":0,"otherCount":0,"acKva":0,"heatType":"none","heatKw":0,"evseKw":0,"volts":"240","method":"standard"},"expected":["18,600 VA","78 A"],"result":"18,600 VA · 78 A","pass":true},{"calculator":"residential-load","name":"Example D1(a), one-family dwelling, standard method (2026)","source":"NFPA 70 (National Electrical Code), Informative Annex D, Example D1(a), 2026 edition (balloted revision)","sourceUrl":"https://docinfofiles.nfpa.org/files/AboutTheCodes/70/70_A2025_NEC_P02_SD_PrelimSR.pdf","standard":"nec-2026","inputs":{"area":1500,"smallAppliance":2,"laundry":1,"rangeKw":12,"dryerKw":5.5,"waterHeaterKw":0,"dishwasherKw":0,"disposalKw":0,"otherKw":0,"otherCount":0,"acKva":0,"heatType":"none","heatKw":0,"evseKw":0,"volts":"240","method":"standard"},"expected":["18,075 VA","75 A"],"result":"18,075 VA · 75 A","pass":true},{"calculator":"residential-load","name":"Example D2(a), optional method, heating larger than A/C (2023)","source":"NFPA 70 (National Electrical Code), Informative Annex D, Example D2(a), 2023 edition","sourceUrl":"https://docinfofiles.nfpa.org/files/AboutTheCodes/70/70_A2025_NEC_P02_SD_PrelimSR.pdf","standard":"nec-2023","inputs":{"area":1500,"smallAppliance":2,"laundry":1,"rangeKw":12,"dryerKw":5,"waterHeaterKw":2.5,"dishwasherKw":1.2,"disposalKw":0,"otherKw":0,"otherCount":0,"acKva":1.38,"heatType":"ge4","heatKw":9,"evseKw":0,"volts":"240","method":"optional"},"expected":["21,480 VA","90 A"],"result":"21,480 VA · 90 A","pass":true},{"calculator":"residential-load","name":"Example D2(a), optional method, heating larger than A/C (2026)","source":"NFPA 70 (National Electrical Code), Informative Annex D, Example D2(a), 2026 edition (balloted revision)","sourceUrl":"https://docinfofiles.nfpa.org/files/AboutTheCodes/70/70_A2025_NEC_P02_SD_PrelimSR.pdf","standard":"nec-2026","inputs":{"area":1500,"smallAppliance":2,"laundry":1,"rangeKw":12,"dryerKw":5,"waterHeaterKw":2.5,"dishwasherKw":1.2,"disposalKw":0,"otherKw":0,"otherCount":0,"acKva":1.38,"heatType":"ge4","heatKw":9,"evseKw":0,"volts":"240","method":"optional"},"expected":["19,680 VA","82 A"],"result":"19,680 VA · 82 A","pass":true},{"calculator":"residential-load","name":"Example D2(b), optional method, A/C larger than heating (2023)","source":"NFPA 70 (National Electrical Code), Informative Annex D, Example D2(b), 2023 edition","sourceUrl":"https://docinfofiles.nfpa.org/files/AboutTheCodes/70/70_A2025_NEC_P02_SD_PrelimSR.pdf","standard":"nec-2023","inputs":{"area":1500,"smallAppliance":2,"laundry":1,"rangeKw":13.1,"dryerKw":5,"waterHeaterKw":4.5,"dishwasherKw":1.2,"disposalKw":0,"otherKw":0,"otherCount":0,"acKva":10.08,"heatType":"lt4","heatKw":1.5,"evseKw":0,"volts":"240","method":"optional"},"expected":["29,200 VA","122 A"],"result":"29,200 VA · 122 A","pass":true},{"calculator":"residential-load","name":"Example D2(b), optional method, A/C larger than heating (2026)","source":"NFPA 70 (National Electrical Code), Informative Annex D, Example D2(b), 2026 edition (balloted revision)","sourceUrl":"https://docinfofiles.nfpa.org/files/AboutTheCodes/70/70_A2025_NEC_P02_SD_PrelimSR.pdf","standard":"nec-2026","inputs":{"area":1500,"smallAppliance":2,"laundry":1,"rangeKw":13.1,"dryerKw":5,"waterHeaterKw":4.5,"dishwasherKw":1.2,"disposalKw":0,"otherKw":0,"otherCount":0,"acKva":10.08,"heatType":"lt4","heatKw":1.5,"evseKw":0,"volts":"240","method":"optional"},"expected":["27,400 VA","114 A"],"result":"27,400 VA · 114 A","pass":true},{"calculator":"residential-load","name":"Example D2(c), optional method, heat pump with supplemental heat (2023)","source":"NFPA 70 (National Electrical Code), Informative Annex D, Example D2(c), 2023 edition","sourceUrl":"https://docinfofiles.nfpa.org/files/AboutTheCodes/70/70_A2025_NEC_P02_SD_PrelimSR.pdf","standard":"nec-2023","inputs":{"area":2000,"smallAppliance":2,"laundry":1,"rangeKw":12,"dryerKw":5,"waterHeaterKw":4.5,"dishwasherKw":1.2,"disposalKw":0,"otherKw":0,"otherCount":0,"acKva":5.76,"heatType":"heatpump","heatKw":15,"evseKw":0,"volts":"240","method":"optional"},"expected":["34,790 VA","145 A"],"result":"34,790 VA · 145 A","pass":true},{"calculator":"residential-load","name":"Example D2(c), optional method, heat pump with supplemental heat (2026)","source":"NFPA 70 (National Electrical Code), Informative Annex D, Example D2(c), 2026 edition (balloted revision)","sourceUrl":"https://docinfofiles.nfpa.org/files/AboutTheCodes/70/70_A2025_NEC_P02_SD_PrelimSR.pdf","standard":"nec-2026","inputs":{"area":2000,"smallAppliance":2,"laundry":1,"rangeKw":12,"dryerKw":5,"waterHeaterKw":4.5,"dishwasherKw":1.2,"disposalKw":0,"otherKw":0,"otherCount":0,"acKva":5.76,"heatType":"heatpump","heatKw":15,"evseKw":0,"volts":"240","method":"optional"},"expected":["32,790 VA","137 A"],"result":"32,790 VA · 137 A","pass":true},{"calculator":"wire-size","name":"Example D7: 175 A dwelling service conductors by the 83 % rule (2023)","source":"NFPA 70 (National Electrical Code), Informative Annex D, Example D7: 175 A × 0.83 = 145.25 A → 1/0 AWG copper","sourceUrl":"https://docinfofiles.nfpa.org/files/AboutTheCodes/70/70_A2025_NEC_P02_SD_PrelimSR.pdf","standard":"nec-2023","inputs":{"circuit":"dwelling","ratingA":175,"insulation":"xhhw2","vdCheck":false},"expected":["1/0"],"result":"1/0 AWG Cu · 175 A · 6 AWG EGC","pass":true},{"calculator":"wire-size","name":"Example D7: same service at 49 °C (120 °F) ambient (2026)","source":"NFPA 70 (National Electrical Code), Informative Annex D, Example D7, 2026 edition (balloted revision): 145.25 A ÷ 0.82 → 2/0 AWG copper","sourceUrl":"https://docinfofiles.nfpa.org/files/AboutTheCodes/70/70_A2025_NEC_P02_SD_PrelimSR.pdf","standard":"nec-2026","inputs":{"circuit":"dwelling","ratingA":175,"insulation":"xhhw2","vdCheck":false,"ambient":49,"tempUnit":"C"},"expected":["2/0"],"result":"2/0 AWG Cu · 175 A · 6 AWG EGC","pass":true},{"calculator":"voltage-drop","name":"40 A over 150 ft of 6 AWG copper at 240 V, single-phase (K method)","source":"Hand calculation: VD = 2 × 12.9 × 40 × 150 / 26,240 cmil = 5.90 V = 2.46 % of 240 V","standard":"nec-2023","inputs":{"system":"1ph","amps":40,"volts":240,"length":150,"lengthUnit":"ft","awg":"6","material":"cu"},"expected":["5.90 V","2.46 %"],"result":"5.90 V · 2.46 %","pass":true},{"calculator":"ground-wire-size","name":"60 A circuit, phase conductors upsized from 6 to 4 AWG copper","source":"Hand calculation, NEC 250.122(B) (2023): 10,380 cmil × 41,740/26,240 = 16,511 cmil, just over 8 AWG (16,510 cmil), so 6 AWG","standard":"nec-2023","inputs":{"mode":"egc","ocpdA":60,"upsized":true,"minPhase":"6","phaseSize":"4"},"expected":["6 AWG"],"result":"6 AWG Cu EGC","pass":true},{"calculator":"conduit-fill","name":"Maximum 12 AWG THHN in 3/4 trade size EMT","source":"Hand calculation from NEC Chapter 9 Tables 1, 4 and 5: 40 % of 0.533 in² = 0.213 in²; ÷ 0.0133 in² = 16","standard":"nec-2023","inputs":{"raceway":"EMT","tradeSize":"3/4","t1":"THHN","s1":"12","mode":"max"},"expected":["16 × 12 AWG"],"result":"3/4 EMT: 16 × 12 AWG THHN","pass":true},{"calculator":"box-fill","name":"4 × 2-1/8 in square box, six 12 AWG and two devices","source":"Hand calculation from NEC 314.16: 6 × 2.25 + 2 devices × 2 × 2.25 = 22.5 in³ needed; the box gives 30.3 in³","standard":"nec-2023","inputs":{"box":"square-4x2-1/8","ringVol":0,"c18":0,"c16":0,"c14":0,"c12":6,"c10":0,"c8":0,"c6":0,"devices":2,"egc":0,"maxSize":"12"},"expected":["22.5 in³","30.3 in³"],"result":"22.5 in³ needed · 30.3 in³ available","pass":true},{"calculator":"available-fault-current","name":"75 kVA three-phase transformer, 208 V secondary, 2 %Z, infinite primary","source":"Hand calculation: full-load 75,000/(√3 × 208) = 208.2 A; ÷ 0.02 = 10,409 A","standard":"nec-2023","inputs":{"source":"xfmr","kva":75,"V":208,"z":2,"length":0,"sets":1},"expected":["10.41 kA"],"result":"10.41 kA available","pass":true},{"calculator":"ohms-law","name":"12 V across 4.7 kΩ","source":"Hand calculation: I = V/R = 12/4700 = 2.553 mA; P = V²/R = 30.6 mW","inputs":{"known":"VR","V":12,"R":4700},"expected":["2.55 mA","30.6 mW"],"result":"I = 2.55 mA · P = 30.6 mW","pass":true},{"calculator":"ohms-law","name":"12 V driving 2 A","source":"Hand calculation: R = V/I = 6 Ω; P = V·I = 24 W","inputs":{"known":"VI","V":12,"I":2},"expected":["6 Ω","24 W"],"result":"R = 6 Ω · P = 24 W","pass":true},{"calculator":"amps-to-watts","name":"15 A at 120 V, single-phase, unity power factor","source":"Hand calculation: P = V·I·PF = 120 × 15 × 1 = 1,800 W","inputs":{"system":"ac1","I":15,"V":120,"pf":1},"expected":["1,800 W"],"result":"P = 1,800 W (1.8 kW)","pass":true},{"calculator":"watts-to-amps","name":"1,500 W at 120 V, single-phase","source":"Hand calculation: I = P/(V·PF) = 1500/120 = 12.5 A","inputs":{"system":"ac1","P":1500,"pUnit":"W","V":120,"pf":1},"expected":["12.5 A"],"result":"I = 12.5 A","pass":true},{"calculator":"three-phase-power","name":"100 A per line at 480 V, power factor 0.85","source":"Hand calculation: P = √3 × 480 × 100 × 0.85 = 70,668 W; S = √3 × 480 × 100 = 83,138 VA","inputs":{"mode":"current","V":480,"I":100,"pf":0.85},"expected":["70.67 kW","83.14 kVA"],"result":"P = 70.67 kW · S = 83.14 kVA","pass":true},{"calculator":"transformer","name":"75 kVA three-phase, 480 V to 208 V, full-load current","source":"Hand calculation: I = S/(√3·V) = 75,000/(√3 × 480) = 90.21 A and 75,000/(√3 × 208) = 208.2 A","inputs":{"mode":"fla","phases":"3","kva":75,"V1":480,"V2":208},"expected":["90.21 A","208.2 A"],"result":"90.21 A primary · 208.2 A secondary","pass":true},{"calculator":"cable-size","name":"Multicore PVC on tray, 40 °C, 7 circuits bunched, 100 A, three-phase","source":"ABB Electrical installation handbook (6th ed., 2010), pp. 304–305: It ≥ 100/(0.87 × 0.54) = 212.85 A → 95 mm², Iz = 111.81 A","sourceUrl":"https://content.voltimum.com/au/145/abb-electrical-installation-handbook.pdf","standard":"iec-60364","inputs":{"phases":"3","Ib":100,"In":100,"method":"E","insulation":"PVC","material":"Cu","ambient":40,"groups":7,"grouping":"bunched","length":10},"expected":["95 mm²"],"result":"95 mm² · Iz 111.8 A · 0.10 % drop","pass":true},{"calculator":"cable-size","name":"Multicore PVC on tray, 30 °C, no other circuits, 115 A, three-phase","source":"ABB Electrical installation handbook (6th ed., 2010), p. 306: 35 mm² (126 A)","sourceUrl":"https://content.voltimum.com/au/145/abb-electrical-installation-handbook.pdf","standard":"iec-60364","inputs":{"phases":"3","Ib":115,"In":115,"method":"E","insulation":"PVC","material":"Cu","ambient":30,"groups":1,"length":10},"expected":["35 mm²"],"result":"35 mm² · Iz 126 A · 0.32 % drop","pass":true},{"calculator":"earth-fault-loop-impedance","name":"B16, 77 m of 1.5/1.0 mm² twin and earth, Ze 0.35 Ω","source":"IET Wiring Matters, May 2024: Zs = 0.35 + 0.0302 × 1.2 × 77 = 3.14 Ω, over the 2.73 Ω maximum for a B16","sourceUrl":"https://electrical.theiet.org/wiring-matters/years/2024/100-may-2024/why-are-the-values-of-maximum-earth-fault-loop-impedance-different/","standard":"bs7671","inputs":{"zeSource":"measured","ze":0.35,"cable":"te","lineMm2":"1.5","length":77,"device":"mcbB","In":16},"expected":["3.14 Ω","2.73 Ω"],"result":"Zs 3.14 Ω > 2.73 Ω · Fail","pass":true},{"calculator":"earth-fault-loop-impedance","name":"Maximum Zs for a B32 MCB at 0.4 s","source":"BS 7671:2018 Regulation 411.4.4 and Table 41.3: Zs ≤ Cmin × U0/Ia = 0.95 × 230/(5 × 32) = 1.37 Ω","standard":"bs7671","inputs":{"device":"mcbB","In":32},"expected":["1.37 Ω"],"result":"Zs 1.05 Ω ≤ 1.37 Ω · Pass","pass":true},{"calculator":"cpc-size","name":"6 mm² cpc on a BS 88-3 63 A fuse, 320 A for 5 s","source":"NICEIC technical article, Professional Electrician (2018): k²S² = 476,100 A²s < I²t = 512,000 A²s, so 6 mm² fails; S = √(320² × 5)/115 = 6.22 mm² → 10 mm²","standard":"bs7671","inputs":{"faultSource":"current","If":320,"timeSource":"time","t":5,"lineMm2":"16","cpcMm2":"6"},"expected":["6.22 mm²","10 mm²"],"result":"6.22 mm² minimum → 10 mm² · 6 mm² too small","pass":true},{"calculator":"resistor-color-code","name":"Brown, black, orange, gold","source":"IEC 60062:2016, Table 1 (digits, multipliers and tolerances)","inputs":{"mode":"decode","bands":"4","b1":"brown","b2":"black","b3":"orange","b4":"gold"},"expected":["10 kΩ","5 %"],"result":"10 kΩ ±5 %","pass":true},{"calculator":"resistor-color-code","name":"Yellow, violet, red, gold","source":"IEC 60062:2016, Table 1","inputs":{"mode":"decode","bands":"4","b1":"yellow","b2":"violet","b3":"red","b4":"gold"},"expected":["4.7 kΩ"],"result":"4.7 kΩ ±5 %","pass":true},{"calculator":"voltage-divider","name":"9 V across 10 kΩ over 4.7 kΩ","source":"Hand calculation: Vout = 9 × 4.7/(10 + 4.7) = 2.878 V","inputs":{"mode":"vout","Vin":9,"R1":10000,"R2":4700,"loaded":false},"expected":["2.878 V"],"result":"Vout = 2.878 V","pass":true},{"calculator":"led-resistor","name":"Red LED at 20 mA from 12 V","source":"Hand calculation: R = (12 − 2.0)/0.020 = 500 Ω; next E12 value up is 560 Ω","inputs":{"Vs":12,"colour":"red","mA":20,"arrangement":"single"},"expected":["500 Ω","560 Ω"],"result":"R = 560 Ω · ½ W","pass":true},{"calculator":"555-timer","name":"Astable, R1 = 1 kΩ, R2 = 10 kΩ, C = 10 µF","source":"Texas Instruments NE555 datasheet (SLFS022): f = 1/(ln 2 · (R1 + 2R2) · C)","sourceUrl":"https://www.ti.com/lit/ds/symlink/ne555.pdf","inputs":{"mode":"astable","R1":1000,"R2":10000,"C":0.00001,"diode":false},"expected":["6.87 Hz","52.4 %"],"result":"f = 6.87 Hz · duty 52.4 %","pass":true},{"calculator":"555-timer","name":"Monostable, R = 100 kΩ, C = 10 µF","source":"Texas Instruments NE555 datasheet (SLFS022): t = ln 3 · R · C ≈ 1.1RC","sourceUrl":"https://www.ti.com/lit/ds/symlink/ne555.pdf","inputs":{"mode":"monostable","R":100000,"Cm":0.00001},"expected":["1.099 s"],"result":"t = 1.099 s","pass":true}]}