{"slug":"electrician-cost-estimator","lang":"en","category":"Electrical","subcategory":"electrical costs","ui":{"inputs":[{"name":"task__hourly_rate","label":"Extra labor billed by the hour (licensed electrician)","type":"select","required":true,"default_value":"skip","options":[{"value":"skip","label":"Skip this task"},{"value":"pro","label":"Hire a pro"}]},{"name":"quantity__hourly_rate","label":"Hours of work","type":"number","required":true,"default_value":2,"min":0.1,"max":2000,"unit":"hr","help":"Enter the size in hours.","show_if":{"task__hourly_rate":["pro"]}},{"name":"task__service_call","label":"Electrician service call / trip fee (minimum charge)","type":"select","required":true,"default_value":"skip","options":[{"value":"skip","label":"Skip this task"},{"value":"pro","label":"Hire a pro"}]},{"name":"task__outlet_install","label":"Install a new standard 120V outlet (new run from nearby circuit)","type":"select","required":true,"default_value":"pro","options":[{"value":"skip","label":"Skip this task"},{"value":"pro","label":"Hire a pro"}]},{"name":"quantity__outlet_install","label":"Outlets","type":"number","required":true,"default_value":1,"min":0.1,"max":1000,"unit":"units","help":"Enter the size in units.","show_if":{"task__outlet_install":["pro"]}},{"name":"task__gfci_outlet","label":"Replace an existing outlet with a GFCI outlet","type":"select","required":true,"default_value":"skip","options":[{"value":"skip","label":"Skip this task"},{"value":"pro","label":"Hire a pro"}]},{"name":"quantity__gfci_outlet","label":"GFCI outlets","type":"number","required":true,"default_value":1,"min":0.1,"max":1000,"unit":"units","help":"Enter the size in units.","show_if":{"task__gfci_outlet":["pro"]}},{"name":"task__light_fixture","label":"Install or replace a light fixture on existing wiring","type":"select","required":true,"default_value":"skip","options":[{"value":"skip","label":"Skip this task"},{"value":"pro","label":"Hire a pro"}]},{"name":"quantity__light_fixture","label":"Light fixtures","type":"number","required":true,"default_value":1,"min":0.1,"max":1000,"unit":"units","help":"Enter the size in units.","show_if":{"task__light_fixture":["pro"]}},{"name":"task__ceiling_fan","label":"Install a ceiling fan on an existing fan-rated box","type":"select","required":true,"default_value":"skip","options":[{"value":"skip","label":"Skip this task"},{"value":"pro","label":"Hire a pro"}]},{"name":"quantity__ceiling_fan","label":"Ceiling fans","type":"number","required":true,"default_value":1,"min":0.1,"max":1000,"unit":"units","help":"Enter the size in units.","show_if":{"task__ceiling_fan":["pro"]}},{"name":"task__circuit_240v","label":"New dedicated 240V circuit and outlet (e.g. NEMA 14-50)","type":"select","required":true,"default_value":"skip","options":[{"value":"skip","label":"Skip this task"},{"value":"pro","label":"Hire a pro"}]},{"name":"quantity__circuit_240v","label":"240V circuits","type":"number","required":true,"default_value":1,"min":0.1,"max":1000,"unit":"units","help":"Enter the size in units.","show_if":{"task__circuit_240v":["pro"]}},{"name":"task__ev_charger","label":"Level 2 EV charger installation (240V circuit, charger not included)","type":"select","required":true,"default_value":"skip","options":[{"value":"skip","label":"Skip this task"},{"value":"pro","label":"Hire a pro"}]},{"name":"task__panel_200a","label":"Electrical panel upgrade to 200 amps","type":"select","required":true,"default_value":"skip","options":[{"value":"skip","label":"Skip this task"},{"value":"pro","label":"Hire a pro"}]},{"name":"task__rewire","label":"Whole-house rewiring (per sq ft of living area)","type":"select","required":true,"default_value":"skip","options":[{"value":"skip","label":"Skip this task"},{"value":"pro","label":"Hire a pro"}]},{"name":"quantity__rewire","label":"Living area","type":"number","required":true,"default_value":1500,"min":0.1,"max":100000,"unit":"sq ft","help":"Enter the size in square feet.","show_if":{"task__rewire":["pro"]}},{"name":"state","label":"Location (state or metro area)","type":"select","required":true,"default_value":"US","options":[{"value":"US","label":"National average"},{"value":"AL","label":"Alabama (AL)"},{"value":"AK","label":"Alaska (AK)"},{"value":"AZ","label":"Arizona (AZ)"},{"value":"AR","label":"Arkansas (AR)"},{"value":"CA","label":"California (CA)"},{"value":"CO","label":"Colorado (CO)"},{"value":"CT","label":"Connecticut (CT)"},{"value":"DE","label":"Delaware (DE)"},{"value":"FL","label":"Florida (FL)"},{"value":"GA","label":"Georgia (GA)"},{"value":"HI","label":"Hawaii (HI)"},{"value":"ID","label":"Idaho (ID)"},{"value":"IL","label":"Illinois (IL)"},{"value":"IN","label":"Indiana (IN)"},{"value":"IA","label":"Iowa (IA)"},{"value":"KS","label":"Kansas (KS)"},{"value":"KY","label":"Kentucky (KY)"},{"value":"LA","label":"Louisiana (LA)"},{"value":"ME","label":"Maine (ME)"},{"value":"MD","label":"Maryland (MD)"},{"value":"MA","label":"Massachusetts (MA)"},{"value":"MI","label":"Michigan (MI)"},{"value":"MN","label":"Minnesota (MN)"},{"value":"MS","label":"Mississippi (MS)"},{"value":"MO","label":"Missouri (MO)"},{"value":"MT","label":"Montana (MT)"},{"value":"NE","label":"Nebraska (NE)"},{"value":"NV","label":"Nevada (NV)"},{"value":"NH","label":"New Hampshire (NH)"},{"value":"NJ","label":"New Jersey (NJ)"},{"value":"NM","label":"New Mexico (NM)"},{"value":"NY","label":"New York (NY)"},{"value":"NC","label":"North Carolina (NC)"},{"value":"ND","label":"North Dakota (ND)"},{"value":"OH","label":"Ohio (OH)"},{"value":"OK","label":"Oklahoma (OK)"},{"value":"OR","label":"Oregon (OR)"},{"value":"PA","label":"Pennsylvania (PA)"},{"value":"RI","label":"Rhode Island (RI)"},{"value":"SC","label":"South Carolina (SC)"},{"value":"SD","label":"South Dakota (SD)"},{"value":"TN","label":"Tennessee (TN)"},{"value":"TX","label":"Texas (TX)"},{"value":"UT","label":"Utah (UT)"},{"value":"VT","label":"Vermont (VT)"},{"value":"VA","label":"Virginia (VA)"},{"value":"WA","label":"Washington (WA)"},{"value":"WV","label":"West Virginia (WV)"},{"value":"WI","label":"Wisconsin (WI)"},{"value":"WY","label":"Wyoming (WY)"},{"value":"DC","label":"District of Columbia (DC)"},{"value":"M10420","label":"Akron, OH (metro)"},{"value":"M10580","label":"Albany-Schenectady-Troy, NY (metro)"},{"value":"M10740","label":"Albuquerque, NM (metro)"},{"value":"M10900","label":"Allentown-Bethlehem-Easton, PA-NJ (metro)"},{"value":"M11260","label":"Anchorage, AK (metro)"},{"value":"M12060","label":"Atlanta-Sandy Springs-Alpharetta, GA (metro)"},{"value":"M12260","label":"Augusta-Richmond County, GA-SC (metro)"},{"value":"M12420","label":"Austin-Round Rock-San Marcos, TX (metro)"},{"value":"M12540","label":"Bakersfield-Delano, CA (metro)"},{"value":"M12580","label":"Baltimore-Columbia-Towson, MD (metro)"},{"value":"M12940","label":"Baton Rouge, LA (metro)"},{"value":"M13820","label":"Birmingham-Hoover, AL (metro)"},{"value":"M14260","label":"Boise City, ID (metro)"},{"value":"M14460","label":"Boston-Cambridge-Newton, MA-NH (metro)"},{"value":"M14860","label":"Bridgeport-Stamford-Norwalk, CT (metro)"},{"value":"M15380","label":"Buffalo-Cheektowaga, NY (metro)"},{"value":"M15980","label":"Cape Coral-Fort Myers, FL (metro)"},{"value":"M16700","label":"Charleston-North Charleston, SC (metro)"},{"value":"M16740","label":"Charlotte-Concord-Gastonia, NC-SC (metro)"},{"value":"M16860","label":"Chattanooga, TN-GA (metro)"},{"value":"M16980","label":"Chicago-Naperville-Elgin, IL-IN-WI (metro)"},{"value":"M17140","label":"Cincinnati, OH-KY-IN (metro)"},{"value":"M17410","label":"Cleveland, OH (metro)"},{"value":"M17820","label":"Colorado Springs, CO (metro)"},{"value":"M17900","label":"Columbia, SC (metro)"},{"value":"M18140","label":"Columbus, OH (metro)"},{"value":"M18580","label":"Corpus Christi, TX (metro)"},{"value":"M19100","label":"Dallas-Fort Worth-Arlington, TX (metro)"},{"value":"M19660","label":"Deltona-Daytona Beach-Ormond Beach, FL (metro)"},{"value":"M19740","label":"Denver-Aurora-Lakewood, CO (metro)"},{"value":"M19780","label":"Des Moines-West Des Moines, IA (metro)"},{"value":"M19820","label":"Detroit-Warren-Dearborn, MI (metro)"},{"value":"M20500","label":"Durham-Chapel Hill, NC (metro)"},{"value":"M21340","label":"El Paso, TX (metro)"},{"value":"M22020","label":"Fargo, ND-MN (metro)"},{"value":"M22180","label":"Fayetteville, NC (metro)"},{"value":"M23060","label":"Fort Wayne, IN (metro)"},{"value":"M23420","label":"Fresno, CA (metro)"},{"value":"M24340","label":"Grand Rapids-Wyoming-Kentwood, MI (metro)"},{"value":"M24660","label":"Greensboro-High Point, NC (metro)"},{"value":"M24860","label":"Greenville-Anderson-Greer, SC (metro)"},{"value":"M25060","label":"Gulfport-Biloxi, MS (metro)"},{"value":"M25420","label":"Harrisburg-Carlisle, PA (metro)"},{"value":"M25540","label":"Hartford-West Hartford-East Hartford, CT (metro)"},{"value":"M26420","label":"Houston-The Woodlands-Sugar Land, TX (metro)"},{"value":"M26620","label":"Huntsville, AL (metro)"},{"value":"M26900","label":"Indianapolis-Carmel-Anderson, IN (metro)"},{"value":"M27140","label":"Jackson, MS (metro)"},{"value":"M27260","label":"Jacksonville, FL (metro)"},{"value":"M28140","label":"Kansas City, MO-KS (metro)"},{"value":"M28940","label":"Knoxville, TN (metro)"},{"value":"M29460","label":"Lakeland-Winter Haven, FL (metro)"},{"value":"M29540","label":"Lancaster, PA (metro)"},{"value":"M29620","label":"Lansing-East Lansing, MI (metro)"},{"value":"M29740","label":"Las Cruces, NM (metro)"},{"value":"M29820","label":"Las Vegas-Henderson-Paradise, NV (metro)"},{"value":"M30460","label":"Lexington-Fayette, KY (metro)"},{"value":"M30780","label":"Little Rock-North Little Rock-Conway, AR (metro)"},{"value":"M31080","label":"Los Angeles-Long Beach-Anaheim, CA (metro)"},{"value":"M31140","label":"Louisville/Jefferson County, KY-IN (metro)"},{"value":"M31540","label":"Madison, WI (metro)"},{"value":"M31700","label":"Manchester-Nashua, NH (metro)"},{"value":"M32580","label":"McAllen-Edinburg-Mission, TX (metro)"},{"value":"M32820","label":"Memphis, TN-MS-AR (metro)"},{"value":"M33100","label":"Miami-Fort Lauderdale-West Palm Beach, FL (metro)"},{"value":"M33340","label":"Milwaukee-Waukesha, WI (metro)"},{"value":"M33460","label":"Minneapolis-St. Paul-Bloomington, MN-WI (metro)"},{"value":"M33660","label":"Mobile, AL (metro)"},{"value":"M33700","label":"Modesto, CA (metro)"},{"value":"M34980","label":"Nashville-Davidson-Murfreesboro-Franklin, TN (metro)"},{"value":"M35300","label":"New Haven, CT (metro)"},{"value":"M35380","label":"New Orleans-Metairie, LA (metro)"},{"value":"M35620","label":"New York-Newark-Jersey City, NY-NJ-PA (metro)"},{"value":"M35840","label":"North Port-Bradenton-Sarasota, FL (metro)"},{"value":"M36100","label":"Ocala, FL (metro)"},{"value":"M36420","label":"Oklahoma City, OK (metro)"},{"value":"M36540","label":"Omaha, NE-IA (metro)"},{"value":"M36740","label":"Orlando-Kissimmee-Sanford, FL (metro)"},{"value":"M37100","label":"Oxnard-Thousand Oaks-Ventura, CA (metro)"},{"value":"M37340","label":"Palm Bay-Melbourne-Titusville, FL (metro)"},{"value":"M37860","label":"Pensacola-Ferry Pass-Brent, FL (metro)"},{"value":"M37980","label":"Philadelphia-Camden-Wilmington, PA-NJ-DE-MD (metro)"},{"value":"M38060","label":"Phoenix-Mesa-Chandler, AZ (metro)"},{"value":"M38300","label":"Pittsburgh, PA (metro)"},{"value":"M38940","label":"Port St. Lucie, FL (metro)"},{"value":"M38860","label":"Portland-South Portland, ME (metro)"},{"value":"M38900","label":"Portland-Vancouver-Hillsboro, OR-WA (metro)"},{"value":"M39300","label":"Providence-Warwick, RI-MA (metro)"},{"value":"M39340","label":"Provo-Orem-Lehi, UT (metro)"},{"value":"M39580","label":"Raleigh-Cary, NC (metro)"},{"value":"M39900","label":"Reno, NV (metro)"},{"value":"M40060","label":"Richmond, VA (metro)"},{"value":"M40140","label":"Riverside-San Bernardino-Ontario, CA (metro)"},{"value":"M40380","label":"Rochester, NY (metro)"},{"value":"M40900","label":"Sacramento-Roseville-Folsom, CA (metro)"},{"value":"M41420","label":"Salem, OR (metro)"},{"value":"M41620","label":"Salt Lake City-Murray, UT (metro)"},{"value":"M41700","label":"San Antonio-New Braunfels, TX (metro)"},{"value":"M41740","label":"San Diego-Chula Vista-Carlsbad, CA (metro)"},{"value":"M41860","label":"San Francisco-Oakland-Berkeley, CA (metro)"},{"value":"M41940","label":"San Jose-Sunnyvale-Santa Clara, CA (metro)"},{"value":"M42220","label":"Santa Rosa-Petaluma, CA (metro)"},{"value":"M42340","label":"Savannah, GA (metro)"},{"value":"M42540","label":"Scranton--Wilkes-Barre, PA (metro)"},{"value":"M42660","label":"Seattle-Tacoma-Bellevue, WA (metro)"},{"value":"M43340","label":"Shreveport-Bossier City, LA (metro)"},{"value":"M43620","label":"Sioux Falls, SD (metro)"},{"value":"M44060","label":"Spokane-Spokane Valley, WA (metro)"},{"value":"M41180","label":"St. Louis, MO-IL (metro)"},{"value":"M44700","label":"Stockton, CA (metro)"},{"value":"M45060","label":"Syracuse, NY (metro)"},{"value":"M45300","label":"Tampa-St. Petersburg-Clearwater, FL (metro)"},{"value":"M45780","label":"Toledo, OH (metro)"},{"value":"M45940","label":"Trenton-Princeton, NJ (metro)"},{"value":"M46060","label":"Tucson, AZ (metro)"},{"value":"M46140","label":"Tulsa, OK (metro)"},{"value":"M46520","label":"Urban Honolulu, HI (metro)"},{"value":"M47260","label":"Virginia Beach-Norfolk-Newport News, VA-NC (metro)"},{"value":"M47900","label":"Washington-Arlington-Alexandria, DC-VA-MD-WV (metro)"},{"value":"M48620","label":"Wichita, KS (metro)"},{"value":"M49180","label":"Winston-Salem, NC (metro)"},{"value":"M49340","label":"Worcester, MA-CT (metro)"},{"value":"M49660","label":"Youngstown-Warren, OH (metro)"}],"help":"Labor costs vary by state and metro area (a metro area replaces the state figure); material costs are assumed nationwide."}]},"logic_script":"var QTY_MAX = {\"sq_ft\":100000,\"square\":1000,\"each\":1000,\"linear_ft\":10000,\"hour\":2000};\nvar QTY_MAX_LABEL = {\"sq_ft\":\"100,000\",\"square\":\"1,000\",\"each\":\"1,000\",\"linear_ft\":\"10,000\",\"hour\":\"2,000\"};\nvar UNIT_ONE = {\"sq_ft\":\"sq ft\",\"square\":\"roofing square (100 sq ft)\",\"each\":\"unit\",\"linear_ft\":\"linear ft\",\"hour\":\"hour\",\"project\":\"project\"};\nvar UNIT_MANY = {\"sq_ft\":\"sq ft\",\"square\":\"roofing squares\",\"each\":\"units\",\"linear_ft\":\"linear ft\",\"hour\":\"hours\",\"project\":\"projects\"};\nfunction selOpt(mod, value) {\n  for (var i = 0; i < mod.options.length; i++) { if (mod.options[i].value === value) return mod.options[i]; }\n  for (var i = 0; i < mod.options.length; i++) { if (mod.options[i].value === mod.default) return mod.options[i]; }\n  return null;\n}\nfunction applyMods(itemId, qty, steps) {\n  var matProd = 1, laborProd = 1, addM = [0, 0, 0], addL = [0, 0, 0];\n  var mods = data.modifiers || [];\n  for (var i = 0; i < mods.length; i++) {\n    var m = mods[i];\n    if (m.kind === 'qty_tier' && m.applies_to.indexOf(itemId) !== -1) {\n      var tier = null;\n      for (var ti = 0; ti < m.tiers.length; ti++) { if (qty >= m.tiers[ti].min_qty && (!tier || m.tiers[ti].min_qty > tier.min_qty)) tier = m.tiers[ti]; }\n      if (tier) {\n        var tl = tier.labor_mult !== undefined ? tier.labor_mult : 1;\n        var tm = tier.material_mult !== undefined ? tier.material_mult : 1;\n        laborProd *= tl; matProd *= tm;\n        var tparts = [];\n        if (tl !== 1) tparts.push('labor x' + tl);\n        if (tm !== 1) tparts.push('materials x' + tm);\n        steps.push(m.label + ': ' + tier.min_qty + ' or more qualifies (' + tparts.join(', ') + ')' + (tier.basis === 'reasoned' ? ' (estimate adjustment' + (tier.rationale ? ': ' + tier.rationale : '') + ')' : '') + '.');\n      }\n      continue;\n    }\n    if (m.kind !== 'select' || m.applies_to.indexOf(itemId) === -1) continue;\n    var val = inputs[m.id]; if (val === undefined || val === null || val === '') val = m.default;\n    var opt = selOpt(m, val);\n    if (!opt) continue;\n    var lm = opt.labor_mult !== undefined ? opt.labor_mult : 1;\n    var mm = opt.material_mult !== undefined ? opt.material_mult : 1;\n    laborProd *= lm; matProd *= mm;\n    if (opt.add) {\n      var per = opt.add.per === 'qty' ? qty : 1;\n      var lsA = opt.add.labor_share;\n      addM[0] += opt.add.low * (1 - lsA) * per; addM[1] += opt.add.mid * (1 - lsA) * per; addM[2] += opt.add.high * (1 - lsA) * per;\n      addL[0] += opt.add.low * lsA * per; addL[1] += opt.add.mid * lsA * per; addL[2] += opt.add.high * lsA * per;\n    }\n    if (opt.value !== m.default) {\n      steps.push(m.label + ': ' + opt.label + (opt.basis === 'reasoned' ? ' (estimate adjustment' + (opt.rationale ? ': ' + opt.rationale : '') + ')' : '') + '.');\n    }\n  }\n  return { matProd: matProd, laborProd: laborProd, addM: addM, addL: addL };\n}\n// Un paso de cantidad/info: acc <op> (by x scale). \"by\" numerico o id de un valor de \"vals\".\nfunction stepApply(acc, st, vals) {\n  var by = typeof st.by === 'number' ? st.by : vals[st.by];\n  if (st.scale !== undefined) by = by * st.scale;\n  if (st.op === 'mul') return acc * by;\n  if (st.op === 'div') return acc / by;\n  if (st.op === 'add') return acc + by;\n  return acc - by;\n}\n// Entrada compartida (data.shared_inputs) por id.\nfunction sharedById(id) {\n  var list = data.shared_inputs || [];\n  for (var i = 0; i < list.length; i++) { if (list[i].id === id) return list[i]; }\n  return null;\n}\n// Devuelve { found, qty, invalidField }: found=false = itemId no tiene DerivedQty (usar la\n// cantidad manual de siempre); found=true, qty=null = SI tiene, pero el resultado no es un numero\n// utilizable (entradas extremas -> overflow a Infinity, o <= 0): antes se dejaba pasar y\n// aparecia 'Infinity'/el guion largo en steps/footprint (el fuzzing de validateToolLogic lo\n// detecta como salida invalida sin marcar el campo culpable, CA bloqueante).\nfunction derivedFor(itemId, steps) {\n  var mods = data.modifiers || [];\n  for (var i = 0; i < mods.length; i++) {\n    var m = mods[i];\n    if (m.kind !== 'derived' || m.item !== itemId) continue;\n    var vals = {};\n    // Entradas: primero las compartidas (campo shared__<id>, una sola vez en la UI), luego las propias.\n    var specs = [];\n    var sh = m.shared || [];\n    for (var q = 0; q < sh.length; q++) { var si = sharedById(sh[q]); specs.push({ id: sh[q], field: 'shared__' + sh[q], def: si ? si.default : 1 }); }\n    for (var j = 0; j < m.inputs.length; j++) { specs.push({ id: m.inputs[j].id, field: m.id + '__' + m.inputs[j].id, def: m.inputs[j].default }); }\n    for (var j = 0; j < specs.length; j++) {\n      var raw = inputs[specs[j].field];\n      // Campo ausente (p. ej. un test_case que no lo nombra): valor por defecto. Presente pero no\n      // numérico o ≤ 0 (\"abc\", vacío): se señala en su campo; antes se sustituía en silencio por el\n      // valor por defecto y el usuario no veía el error (smoke-test de painting, 29/09).\n      if (raw === undefined || raw === null) { vals[specs[j].id] = specs[j].def; continue; }\n      var v = lib.numEn(raw);\n      if (!isFinite(v) || v <= 0) return { found: true, qty: null, invalidField: specs[j].field };\n      vals[specs[j].id] = v;\n    }\n    var acc = vals[specs[0].id];\n    for (var k = 0; k < m.steps.length; k++) acc = stepApply(acc, m.steps[k], vals);\n    if (m.round === 'ceil') acc = Math.ceil(acc);\n    if (!isFinite(acc) || acc <= 0) return { found: true, qty: null, invalidField: specs[0].field };\n    steps.push(m.label + ': ' + lib.round(acc, 2) + ' ' + m.unit + '.');\n    return { found: true, qty: acc, invalidField: null };\n  }\n  return { found: false, qty: null, invalidField: null };\n}\n// Salidas informativas (modifiers kind 'info') de la partida: parten de su cantidad final y no\n// cambian el coste. \"by\" numerico, id de un select con valores numericos o input (propio o\n// compartido) de su DerivedQty. Devuelve una lista { label, unit, value }.\nfunction infoValuesFor(itemId, qty) {\n  var out = [];\n  var mods = data.modifiers || [];\n  for (var i = 0; i < mods.length; i++) {\n    var m = mods[i];\n    if (m.kind !== 'info' || m.item !== itemId) continue;\n    var vals = {};\n    for (var j = 0; j < mods.length; j++) {\n      var d = mods[j];\n      if (d.kind === 'select') { var sv = inputs[d.id]; vals[d.id] = Number((sv === undefined || sv === null || sv === '') ? d.default : sv); }\n      else if (d.kind === 'derived' && d.item === itemId) {\n        var dsh = d.shared || [];\n        for (var k = 0; k < dsh.length; k++) {\n          var sv2 = inputs['shared__' + dsh[k]]; var sdef = sharedById(dsh[k]);\n          vals[dsh[k]] = (sv2 === undefined || sv2 === null) ? (sdef ? sdef.default : 1) : lib.numEn(sv2);\n        }\n        for (var k = 0; k < d.inputs.length; k++) {\n          var iv = inputs[d.id + '__' + d.inputs[k].id];\n          vals[d.inputs[k].id] = (iv === undefined || iv === null) ? d.inputs[k].default : lib.numEn(iv);\n        }\n      }\n    }\n    var acc = qty;\n    for (var s = 0; s < m.steps.length; s++) acc = stepApply(acc, m.steps[s], vals);\n    if (m.round === 'ceil') acc = Math.ceil(acc);\n    if (!isFinite(acc)) continue;\n    out.push({ label: m.label, unit: m.unit, value: acc });\n  }\n  return out;\n}\nfunction infoRowsFor(itemId, qty, result, steps) {\n  var rows = infoValuesFor(itemId, qty);\n  for (var r = 0; r < rows.length; r++) {\n    result[rows[r].label] = lib.round(rows[r].value, 2) + ' ' + rows[r].unit;\n    steps.push(rows[r].label + ': ' + lib.round(rows[r].value, 2) + ' ' + rows[r].unit + '.');\n  }\n}\n// Cobro minimo (data.minimum_charge): low/mid/high nunca bajan de esas cifras (no aplica si todo es\n// DIY). Lo que se sube se cuenta como mano de obra para que Materials + Labor cuadre con el total.\nfunction applyMin(t, allDiy, steps) {\n  var mc = data.minimum_charge;\n  if (!mc || allDiy) return t;\n  var low = Math.max(t.low, mc.low), mid = Math.max(t.mid, mc.mid), high = Math.max(t.high, mc.high);\n  if (mid !== t.mid) {\n    steps.push('Minimum charge: most contractors bill at least ' + lib.usd(mc.mid) + ' for a job like this, so the typical cost is raised from ' + lib.usd(t.mid) + ' to ' + lib.usd(mid) + '.');\n  } else if (low !== t.low || high !== t.high) {\n    steps.push('Minimum charge: the low and high estimates are raised to ' + lib.usd(low) + ' and ' + lib.usd(high) + '.');\n  }\n  return { low: low, mid: mid, high: high, matMid: t.matMid, labMid: t.labMid + (mid - t.mid), savedLabor: t.savedLabor };\n}\nfunction ratioFor(state) {\n  var ratio = 1, place = 'the U.S. (national average)';\n  if (table && table.rows) { for (var r = 0; r < table.rows.length; r++) { if (table.rows[r][0] === state) { ratio = Number(table.rows[r][2]); if (state !== 'US') place = String(table.rows[r][1]); break; } } }\n  if (!isFinite(ratio) || ratio <= 0) ratio = 1;\n  return { ratio: ratio, place: place };\n}\nfunction computeItem(item, qty, qMult, ratio, diyAllowed, diy, steps) {\n  var mods = applyMods(item.id, qty, steps);\n  var ls = item.labor_share;\n  var baseLow = qty * item.low * qMult, baseMid = qty * item.mid * qMult, baseHigh = qty * item.high * qMult;\n  var matLow = baseLow * (1 - ls) * mods.matProd + mods.addM[0];\n  var matMid = baseMid * (1 - ls) * mods.matProd + mods.addM[1];\n  var matHigh = baseHigh * (1 - ls) * mods.matProd + mods.addM[2];\n  var labLow = baseLow * ls * mods.laborProd * ratio + mods.addL[0] * ratio;\n  var labMid = baseMid * ls * mods.laborProd * ratio + mods.addL[1] * ratio;\n  var labHigh = baseHigh * ls * mods.laborProd * ratio + mods.addL[2] * ratio;\n  var doDiy = diyAllowed && diy;\n  return {\n    low: doDiy ? matLow : matLow + labLow, mid: doDiy ? matMid : matMid + labMid, high: doDiy ? matHigh : matHigh + labHigh,\n    matMid: matMid, labMid: doDiy ? 0 : labMid, savedLabor: labMid\n  };\n}\nif (!data.items.length) return { result: 'No tasks available.', footprint: 'No cost data available.', invalid: 'task__' };\nvar rf = ratioFor(inputs.state);\nvar ratio = rf.ratio, place = rf.place;\nvar totalLow = 0, totalMid = 0, totalHigh = 0, totalMat = 0, totalLab = 0, totalSaved = 0;\nvar anySelected = false, anyDiy = false, anyPro = false;\nvar infoTotals = {}, infoOrder = [];\nvar steps = [];\nfor (var idx = 0; idx < data.items.length; idx++) {\n  var it = data.items[idx];\n  var task = inputs['task__' + it.id];\n  if (!task || task === 'skip') continue;\n  anySelected = true;\n  var derivedSteps = [];\n  var derived = derivedFor(it.id, derivedSteps);\n  var qty;\n  if (derived.found) {\n    if (derived.qty === null) return { result: 'Enter valid measurements greater than 0 for ' + it.label + '.', footprint: 'Waiting for valid measurements.', invalid: derived.invalidField };\n    qty = derived.qty;\n  } else {\n    qty = it.unit === 'project' ? 1 : lib.numEn(inputs['quantity__' + it.id]);\n    if (!isFinite(qty) || qty <= 0) return { result: 'Enter a project size greater than 0 for ' + it.label + '.', footprint: 'Waiting for a valid project size.', invalid: 'quantity__' + it.id };\n    if (QTY_MAX[it.unit] && qty > QTY_MAX[it.unit]) return { result: 'Enter ' + QTY_MAX_LABEL[it.unit] + ' ' + UNIT_MANY[it.unit] + ' or less.', footprint: 'Waiting for a valid project size.', invalid: 'quantity__' + it.id };\n  }\n  var itemDiyOk = it.diy_allowed !== false;\n  var diy = itemDiyOk && task === 'diy';\n  if (diy) anyDiy = true; else anyPro = true;\n  var modSteps = [];\n  var comp = computeItem(it, qty, 1, ratio, itemDiyOk, diy, modSteps);\n  totalLow += comp.low; totalMid += comp.mid; totalHigh += comp.high; totalMat += comp.matMid; totalLab += comp.labMid; if (diy) totalSaved += comp.savedLabor; // solo lo que de verdad haces tú (antes sumaba también la mano de obra de las tareas en pro)\n  var unitQty = qty === 1 ? (UNIT_ONE[it.unit] || it.unit) : (UNIT_MANY[it.unit] || it.unit);\n  steps = steps.concat(derivedSteps);\n  var unitOneS = UNIT_ONE[it.unit] || it.unit;\n  var unitPrice = it.mid < 100 ? 2 : 0;\n  steps.push(it.label + ': national typical price ' + lib.usd(it.mid, unitPrice) + ' per ' + unitOneS + ' (range ' + lib.usd(it.low, unitPrice) + ' to ' + lib.usd(it.high, unitPrice) + ').');\n  steps.push(it.label + ' (' + (diy ? 'DIY, materials only' : 'pro') + '): ' + qty + ' ' + unitQty + ' x ' + lib.usd(it.mid, unitPrice) + ' = ' + lib.usd(qty * it.mid) + ' before adjustments.');\n  steps = steps.concat(modSteps);\n  steps.push(it.label + ' (' + (diy ? 'DIY' : 'pro') + ') after ' + (diy ? 'materials adjustments' : 'the regional labor factor and adjustments') + ': ' + lib.usd(comp.mid) + ' (range ' + lib.usd(comp.low) + ' to ' + lib.usd(comp.high) + ').');\n  // Salidas informativas: las de igual etiqueta de todas las tareas activas se suman.\n  var taskInfo = infoValuesFor(it.id, qty);\n  for (var ii = 0; ii < taskInfo.length; ii++) {\n    var infoKey = taskInfo[ii].label;\n    if (!infoTotals[infoKey]) { infoTotals[infoKey] = { unit: taskInfo[ii].unit, value: 0 }; infoOrder.push(infoKey); }\n    infoTotals[infoKey].value += taskInfo[ii].value;\n  }\n}\nif (!anySelected) return { result: 'Select at least one task.', footprint: 'Waiting for at least one task.', invalid: 'task__' + data.items[0].id };\nvar minSteps = [];\nvar grand = applyMin({ low: totalLow, mid: totalMid, high: totalHigh, matMid: totalMat, labMid: totalLab, savedLabor: totalSaved }, !anyPro, minSteps);\ntotalLow = grand.low; totalMid = grand.mid; totalHigh = grand.high; totalLab = grand.labMid;\nvar result = {\n  'Typical cost': lib.usd(totalMid),\n  'Low estimate': lib.usd(totalLow),\n  'High estimate': lib.usd(totalHigh),\n  'Materials': lib.usd(totalMat),\n  'Labor': lib.usd(totalLab)\n};\nif (anyDiy) result['DIY labor savings'] = lib.usd(totalSaved);\nfor (var io = 0; io < infoOrder.length; io++) {\n  var infoRow = infoTotals[infoOrder[io]];\n  result[infoOrder[io]] = lib.round(infoRow.value, 2) + ' ' + infoRow.unit;\n  steps.push('Total for all selected tasks, ' + infoOrder[io] + ': ' + lib.round(infoRow.value, 2) + ' ' + infoRow.unit + '.');\n}\nsteps = steps.concat(minSteps);\nif (inputs.state && inputs.state !== 'US') {\n  steps.push('Labor wages in ' + place + ' are adjusted with the BLS regional factor for this trade.');\n}\nsteps.push('Total for all selected tasks: ' + lib.usd(totalMid) + ' (range ' + lib.usd(totalLow) + ' to ' + lib.usd(totalHigh) + ').');\nvar footprint = 'Selected tasks in ' + place + ': typical cost ' + lib.usd(totalMid) + '.';\nreturn { result: result, footprint: footprint, steps: steps };","reference_table":{"caption":"Regional labor cost adjustment (state or metro area wage vs. the national average, BLS OEWS)","headers":["Location","Name","Labor cost factor"],"rows":[["US","National average",1],["AL","Alabama",0.8044],["AK","Alaska",1.2595],["AZ","Arizona",0.8983],["AR","Arkansas",0.7479],["CA","California",1.201],["CO","Colorado",0.9275],["CT","Connecticut",1.0825],["DE","Delaware",0.9896],["FL","Florida",0.8065],["GA","Georgia",0.8545],["HI","Hawaii",1.2991],["ID","Idaho",0.9316],["IL","Illinois",1.2901],["IN","Indiana",0.9906],["IA","Iowa",0.8839],["KS","Kansas",0.968],["KY","Kentucky",0.859],["LA","Louisiana",0.8721],["ME","Maine",1.0806],["MD","Maryland",1.0554],["MA","Massachusetts",1.1409],["MI","Michigan",1.0329],["MN","Minnesota",1.1306],["MS","Mississippi",0.8113],["MO","Missouri",1.0115],["MT","Montana",1.0062],["NE","Nebraska",0.8947],["NV","Nevada",1.059],["NH","New Hampshire",0.9201],["NJ","New Jersey",1.2128],["NM","New Mexico",0.834],["NY","New York",1.187],["NC","North Carolina",0.7952],["ND","North Dakota",0.9856],["OH","Ohio",0.9629],["OK","Oklahoma",0.887],["OR","Oregon",1.3953],["PA","Pennsylvania",1.0599],["RI","Rhode Island",1.0372],["SC","South Carolina",0.8257],["SD","South Dakota",0.867],["TN","Tennessee",0.8888],["TX","Texas",0.8292],["UT","Utah",0.9133],["VT","Vermont",1.0262],["VA","Virginia",0.9491],["WA","Washington",1.3214],["WV","West Virginia",0.9489],["WI","Wisconsin",1.0325],["WY","Wyoming",1.0471],["DC","District of Columbia",1.243],["M10420","Akron, OH",1.1151],["M10580","Albany-Schenectady-Troy, NY",1.0678],["M10740","Albuquerque, NM",0.8172],["M10900","Allentown-Bethlehem-Easton, PA-NJ",1.0464],["M11260","Anchorage, AK",1.2153],["M12060","Atlanta-Sandy Springs-Alpharetta, GA",0.8675],["M12260","Augusta-Richmond County, GA-SC",0.8937],["M12420","Austin-Round Rock-San Marcos, TX",0.8512],["M12540","Bakersfield-Delano, CA",1.1185],["M12580","Baltimore-Columbia-Towson, MD",1.0182],["M12940","Baton Rouge, LA",0.9394],["M13820","Birmingham-Hoover, AL",0.8036],["M14260","Boise City, ID",0.9214],["M14460","Boston-Cambridge-Newton, MA-NH",1.1662],["M14860","Bridgeport-Stamford-Norwalk, CT",1.1797],["M15380","Buffalo-Cheektowaga, NY",1.0553],["M15980","Cape Coral-Fort Myers, FL",0.8028],["M16700","Charleston-North Charleston, SC",0.8303],["M16740","Charlotte-Concord-Gastonia, NC-SC",0.8267],["M16860","Chattanooga, TN-GA",0.9239],["M16980","Chicago-Naperville-Elgin, IL-IN-WI",1.3212],["M17140","Cincinnati, OH-KY-IN",0.9348],["M17410","Cleveland, OH",0.9961],["M17820","Colorado Springs, CO",0.8576],["M17900","Columbia, SC",0.872],["M18140","Columbus, OH",0.9685],["M18580","Corpus Christi, TX",0.8003],["M19100","Dallas-Fort Worth-Arlington, TX",0.8387],["M19660","Deltona-Daytona Beach-Ormond Beach, FL",0.7499],["M19740","Denver-Aurora-Lakewood, CO",0.9454],["M19780","Des Moines-West Des Moines, IA",0.9101],["M19820","Detroit-Warren-Dearborn, MI",1.1084],["M20500","Durham-Chapel Hill, NC",0.8347],["M21340","El Paso, TX",0.7293],["M22020","Fargo, ND-MN",0.9993],["M22180","Fayetteville, NC",0.8214],["M23060","Fort Wayne, IN",0.9723],["M23420","Fresno, CA",1.0652],["M24340","Grand Rapids-Wyoming-Kentwood, MI",0.9268],["M24660","Greensboro-High Point, NC",0.7905],["M24860","Greenville-Anderson-Greer, SC",0.8563],["M25060","Gulfport-Biloxi, MS",0.8473],["M25420","Harrisburg-Carlisle, PA",1.0533],["M25540","Hartford-West Hartford-East Hartford, CT",1.0604],["M26420","Houston-The Woodlands-Sugar Land, TX",0.8598],["M26620","Huntsville, AL",0.8265],["M26900","Indianapolis-Carmel-Anderson, IN",0.9681],["M27140","Jackson, MS",0.7916],["M27260","Jacksonville, FL",0.8091],["M28140","Kansas City, MO-KS",1.0863],["M28940","Knoxville, TN",0.8313],["M29460","Lakeland-Winter Haven, FL",0.7861],["M29540","Lancaster, PA",1.0164],["M29620","Lansing-East Lansing, MI",1.0425],["M29740","Las Cruces, NM",0.7651],["M29820","Las Vegas-Henderson-Paradise, NV",1.052],["M30460","Lexington-Fayette, KY",0.8029],["M30780","Little Rock-North Little Rock-Conway, AR",0.7233],["M31080","Los Angeles-Long Beach-Anaheim, CA",1.1512],["M31140","Louisville/Jefferson County, KY-IN",0.9061],["M31540","Madison, WI",1.062],["M31700","Manchester-Nashua, NH",0.9075],["M32580","McAllen-Edinburg-Mission, TX",0.6951],["M32820","Memphis, TN-MS-AR",0.8769],["M33100","Miami-Fort Lauderdale-West Palm Beach, FL",0.8383],["M33340","Milwaukee-Waukesha, WI",1.0585],["M33460","Minneapolis-St. Paul-Bloomington, MN-WI",1.1729],["M33660","Mobile, AL",0.8243],["M33700","Modesto, CA",1.1721],["M34980","Nashville-Davidson-Murfreesboro-Franklin, TN",0.9331],["M35300","New Haven, CT",1.1035],["M35380","New Orleans-Metairie, LA",0.8839],["M35620","New York-Newark-Jersey City, NY-NJ-PA",1.2403],["M35840","North Port-Bradenton-Sarasota, FL",0.7769],["M36100","Ocala, FL",0.71],["M36420","Oklahoma City, OK",0.8749],["M36540","Omaha, NE-IA",0.9341],["M36740","Orlando-Kissimmee-Sanford, FL",0.7737],["M37100","Oxnard-Thousand Oaks-Ventura, CA",1.0874],["M37340","Palm Bay-Melbourne-Titusville, FL",0.8162],["M37860","Pensacola-Ferry Pass-Brent, FL",0.7657],["M37980","Philadelphia-Camden-Wilmington, PA-NJ-DE-MD",1.1431],["M38060","Phoenix-Mesa-Chandler, AZ",0.9005],["M38300","Pittsburgh, PA",1.0539],["M38940","Port St. Lucie, FL",0.8008],["M38860","Portland-South Portland, ME",1.0241],["M38900","Portland-Vancouver-Hillsboro, OR-WA",1.4412],["M39300","Providence-Warwick, RI-MA",1.0222],["M39340","Provo-Orem-Lehi, UT",0.8831],["M39580","Raleigh-Cary, NC",0.7984],["M39900","Reno, NV",1.0241],["M40060","Richmond, VA",0.8723],["M40140","Riverside-San Bernardino-Ontario, CA",1.1203],["M40380","Rochester, NY",1.0719],["M40900","Sacramento-Roseville-Folsom, CA",1.1172],["M41420","Salem, OR",1.3286],["M41620","Salt Lake City-Murray, UT",0.9317],["M41700","San Antonio-New Braunfels, TX",0.7977],["M41740","San Diego-Chula Vista-Carlsbad, CA",1.1504],["M41860","San Francisco-Oakland-Berkeley, CA",1.4504],["M41940","San Jose-Sunnyvale-Santa Clara, CA",1.3939],["M42220","Santa Rosa-Petaluma, CA",1.2032],["M42340","Savannah, GA",0.8358],["M42540","Scranton--Wilkes-Barre, PA",1.042],["M42660","Seattle-Tacoma-Bellevue, WA",1.3949],["M43340","Shreveport-Bossier City, LA",0.8263],["M43620","Sioux Falls, SD",0.8703],["M44060","Spokane-Spokane Valley, WA",1.1859],["M41180","St. Louis, MO-IL",1.0599],["M44700","Stockton, CA",1.1588],["M45060","Syracuse, NY",1.1343],["M45300","Tampa-St. Petersburg-Clearwater, FL",0.8116],["M45780","Toledo, OH",1.0252],["M45940","Trenton-Princeton, NJ",1.3263],["M46060","Tucson, AZ",0.8611],["M46140","Tulsa, OK",0.9164],["M46520","Urban Honolulu, HI",1.3228],["M47260","Virginia Beach-Norfolk-Newport News, VA-NC",0.8817],["M47900","Washington-Arlington-Alexandria, DC-VA-MD-WV",1.1141],["M48620","Wichita, KS",0.9547],["M49180","Winston-Salem, NC",0.7853],["M49340","Worcester, MA-CT",1.0235],["M49660","Youngstown-Warren, OH",0.8654]]},"cost_data":{"trade":"electrical","version":"v1","country":"us","currency":"USD","retrieved_at":"2026-10-03","labor_soc":"47-2111","diy_allowed":false,"mode":"sum","items":[{"id":"hourly_rate","label":"Extra labor billed by the hour (licensed electrician)","unit":"hour","default_qty":2,"qty_label":"Hours of work","low":50,"mid":90,"high":130,"labor_share":0.95,"default_task":"skip","sources":[{"label":"ConsumerAffairs - How Much Does an Electrician Cost","url":"https://www.consumeraffairs.com/homeowners/how-much-does-an-electrician-cost.html","quote":"an electrician costs between $50 and $130 per hour for standard work","retrieved_at":"2026-10-03","low":50,"high":130},{"label":"Grounded Electric - Electrician Service Call Fee","url":"https://www.grounded-electric.com/electrician-service-call-fee/","quote":"established electrical contractors typically bill between $80 and $130 per hour","retrieved_at":"2026-10-03","low":80,"high":130},{"label":"Mr. Electric - Cost to Install an EV Charger","url":"https://mrelectric.com/blog/how-much-does-it-cost-to-install-an-ev-charger","quote":"electricians charge $50 to $100 per hour","retrieved_at":"2026-10-03","low":50,"high":100}]},{"id":"service_call","label":"Electrician service call / trip fee (minimum charge)","unit":"project","default_qty":1,"low":75,"mid":125,"high":200,"labor_share":0.95,"default_task":"skip","sources":[{"label":"Grounded Electric - Electrician Service Call Fee","url":"https://www.grounded-electric.com/electrician-service-call-fee/","quote":"Most homeowners expect to pay between $75 and $150 for a standard service call.","retrieved_at":"2026-10-03","low":75,"high":150},{"label":"Black Rhino Electric - How Much Do Electricians Charge","url":"https://blackrhinoelectric.com/blog/how-much-do-electricians-charge/","quote":"Our service call fee usually lands between $100 and $200","retrieved_at":"2026-10-03","low":100,"high":200},{"label":"ConsumerAffairs - How Much Does an Electrician Cost","url":"https://www.consumeraffairs.com/homeowners/how-much-does-an-electrician-cost.html","quote":"can fall between $100 and $200","retrieved_at":"2026-10-03","low":100,"high":200}]},{"id":"outlet_install","label":"Install a new standard 120V outlet (new run from nearby circuit)","unit":"each","default_qty":1,"qty_label":"Outlets","low":120,"mid":160,"high":200,"labor_share":0.75,"default_task":"pro","sources":[{"label":"Fixr - Cost to Install Electrical Outlet","url":"https://www.fixr.com/costs/install-electrical-outlet","quote":"Electrical outlet installation costs range from $120 to $200","retrieved_at":"2026-10-03","low":120,"high":200},{"label":"Best Pick Reports - Cost to Install Electrical Outlets","url":"https://www.bestpickreports.com/blog/post/cost-to-install-electrical-outlets-comparing-different-types-and-features/","quote":"the cost to install a standard outlet ranges from $125 to $175","retrieved_at":"2026-10-03","low":125,"high":175}]},{"id":"gfci_outlet","label":"Replace an existing outlet with a GFCI outlet","unit":"each","default_qty":1,"qty_label":"GFCI outlets","low":130,"mid":210,"high":325,"labor_share":0.6,"default_task":"skip","sources":[{"label":"Bob Vila - GFCI Outlet Cost","url":"https://www.bobvila.com/articles/gfci-outlet-cost/","quote":"The typical GFCI outlet cost ranges from $130 to $300, with a national average of $210","retrieved_at":"2026-10-03","low":130,"high":300},{"label":"Networx - Cost to Install a GFCI Outlet","url":"https://www.networx.com/cost-guide/install-a-gfci-outlet","quote":"you can expect to pay $153 - $228, typically","retrieved_at":"2026-10-03","low":153,"high":228},{"label":"Best Pick Reports - Cost to Install Electrical Outlets","url":"https://www.bestpickreports.com/blog/post/cost-to-install-electrical-outlets-comparing-different-types-and-features/","quote":"The cost to install GFCI outlets ranges from $140 to $325","retrieved_at":"2026-10-03","low":140,"high":325}]},{"id":"light_fixture","label":"Install or replace a light fixture on existing wiring","unit":"each","default_qty":1,"qty_label":"Light fixtures","low":112,"mid":200,"high":500,"labor_share":0.7,"default_task":"skip","sources":[{"label":"Bob Vila - Cost to Replace a Light Fixture","url":"https://www.bobvila.com/articles/cost-to-replace-light-fixture/","quote":"The typical cost range to replace a light fixture is from $112 to $287","retrieved_at":"2026-10-03","low":112,"high":287},{"label":"Inch Calculator - Light Fixture Installation Cost","url":"https://www.inchcalculator.com/light-fixture-installation-cost-guide/","quote":"Most people spend $150 to $500 to install a light fixture","retrieved_at":"2026-10-03","low":150,"high":500},{"label":"Black Rhino Electric - How Much Do Electricians Charge","url":"https://blackrhinoelectric.com/blog/how-much-do-electricians-charge/","quote":"The cost to install a new fixture or fan can land anywhere from $200 to $500","retrieved_at":"2026-10-03","low":200,"high":500}]},{"id":"ceiling_fan","label":"Install a ceiling fan on an existing fan-rated box","unit":"each","default_qty":1,"qty_label":"Ceiling fans","low":100,"mid":250,"high":500,"labor_share":0.75,"default_task":"skip","sources":[{"label":"Fixr - Ceiling Fan Installation Cost","url":"https://www.fixr.com/costs/ceiling-fan-installation","quote":"The labor cost for an electrician to replace an existing ceiling fan is from $228 to $415","retrieved_at":"2026-10-03","low":228,"high":415},{"label":"Hunter Fan - Ceiling Fan Installation Cost","url":"https://www.hunterfan.com/blogs/hunter-blog/ceiling-fan-installation-cost","quote":"the average ceiling fan installation cost ranges from $60 to $250","retrieved_at":"2026-10-03","low":60,"high":250},{"label":"Black Rhino Electric - How Much Do Electricians Charge","url":"https://blackrhinoelectric.com/blog/how-much-do-electricians-charge/","quote":"The cost to install a new fixture or fan can land anywhere from $200 to $500","retrieved_at":"2026-10-03","low":200,"high":500}]},{"id":"circuit_240v","label":"New dedicated 240V circuit and outlet (e.g. NEMA 14-50)","unit":"each","default_qty":1,"qty_label":"240V circuits","low":300,"mid":450,"high":600,"labor_share":0.65,"default_task":"skip","sources":[{"label":"InstaElectricians - Cost to Install a NEMA 14-50 Outlet","url":"https://www.instaelectricians.com/blog/cost-install-240v-nema-14-50-outlet/","quote":"NEMA 14-50 installation typically costs $300–$600 for a straightforward run from the panel","retrieved_at":"2026-10-03","low":300,"high":600},{"label":"AZDC Electric - Electrical Outlet Installation Cost","url":"https://azdcelectric.com/electrical-outlet-installation-cost/","quote":"240V outlet for dryer or range: $300 to $600","retrieved_at":"2026-10-03","low":300,"high":600}]},{"id":"ev_charger","label":"Level 2 EV charger installation (240V circuit, charger not included)","unit":"project","default_qty":1,"low":300,"mid":750,"high":1200,"labor_share":0.7,"default_task":"skip","sources":[{"label":"InstaElectricians - Level 2 EV Charger Installation Cost","url":"https://www.instaelectricians.com/blog/level-2-ev-charger-installation-cost/","quote":"$300 – $1,000 depending on complexity","retrieved_at":"2026-10-03","low":300,"high":1000},{"label":"AZDC Electric - Electrical Outlet Installation Cost","url":"https://azdcelectric.com/electrical-outlet-installation-cost/","quote":"240V EV charging outlet (Level 2): $500 to $1,200","retrieved_at":"2026-10-03","low":500,"high":1200}]},{"id":"panel_200a","label":"Electrical panel upgrade to 200 amps","unit":"project","default_qty":1,"low":1300,"mid":2800,"high":4500,"labor_share":0.55,"default_task":"skip","sources":[{"label":"Sartell Electrical - Panel Upgrade Cost","url":"https://sartellelectrical.com/home-electrical-panel-upgrade-cost/","quote":"200-amp upgrades are what I recommend for most homeowners, ranging from $1,300 to $3,500","retrieved_at":"2026-10-03","low":1300,"high":3500},{"label":"Fixr - Electrical Panel Upgrade Cost","url":"https://www.fixr.com/costs/install-electrical-circuit-panel-upgrade","quote":"Costs range from $1,500 to $4,500","retrieved_at":"2026-10-03","low":1500,"high":4500}]},{"id":"rewire","label":"Whole-house rewiring (per sq ft of living area)","unit":"sq_ft","default_qty":1500,"qty_label":"Living area","low":4,"mid":9,"high":20,"labor_share":0.7,"default_task":"skip","sources":[{"label":"Elliot Services - Home Rewire Cost","url":"https://elliotservices.com/news/home-rewire-cost/","quote":"an average charge of $4 to $10 per square foot","retrieved_at":"2026-10-03","low":4,"high":10},{"label":"Prairie Electric - Cost of Rewiring a House","url":"https://www.prairielectric.com/electrical-service/cost-of-rewiring-a-house/","quote":"the average cost to rewire can range from $10 to $20 per square foot","retrieved_at":"2026-10-03","low":10,"high":20}]}],"modifiers":[]},"cost_data_ref":{"trade":"electrical","version":"v1"},"price_date":"2026-10","title":"Electrician Cost Estimator","description":"Estimate the cost of hiring a licensed electrician for common residential projects, from installing outlets and light fixtures to whole-house rewiring.","seo_title":"Electrician Cost Estimator: Hourly Rates & Project Prices","seo_description":"Calculate the cost of hiring an electrician for your project. Estimate prices for outlets, ceiling fans, rewiring, and hourly rates in your local area.","seo_footprint":{"text_intro":"When planning electrical work in your home, understanding the cost of an electrician is essential for budgeting. Whether you need a simple repair, a new ceiling fan, or a complete 200-amp panel upgrade, labor and material prices can vary significantly based on your location and the complexity of the job. This electrician cost estimator helps you calculate expected expenses for common tasks, including the hourly cost for an electrician, service call fees, and specific project rates. By selecting your state or metropolitan area, you can adjust the national average prices to reflect local wage differences, ensuring your electrician estimate cost is as accurate as possible. Keep in mind that electrical work requires specialized knowledge and adherence to local building codes, making it crucial to hire a licensed professional rather than attempting dangerous electrical modifications yourself.","faq":[{"question":"How much does an electrician cost per hour?","answer":"The national average hourly cost for an electrician is $90. However, this rate varies depending on your state or metropolitan area. Electricians may also charge a minimum service call fee, which averages $125, to cover travel and initial assessment."},{"question":"How much does it cost to rewire a 1500 sq ft house?","answer":"Based on the national average electrician cost per square foot of $9, rewiring a 1,500-square-foot living area typically costs around $13,500. This price includes both labor and materials for a complete whole-house rewiring project."},{"question":"What is the cost for an electrician to install a ceiling fan?","answer":"The typical cost of an electrician to install a ceiling fan on an existing fan-rated box is $250. If new wiring or a new support box is required, the price will increase accordingly."},{"question":"How much does an electrician cost to replace an outlet?","answer":"The cost for an electrician to install a standard 120V outlet is typically $160. If you need to replace an existing outlet with a GFCI outlet, the average cost increases to $210 due to the higher price of the GFCI receptacle."},{"question":"How much should an electrician charge for a 200-amp panel upgrade?","answer":"An electrical panel upgrade to 200 amps typically costs around $2,800. This is a significant project that involves replacing the main breaker box to safely accommodate higher electrical loads, such as those required by EV chargers or modern HVAC systems."},{"question":"What is the cost of electrician training and certification?","answer":"While this calculator focuses on residential project costs, many people ask about the cost of becoming an electrician. Electrician education cost, including trade school programs and electrician apprenticeship costs, can range from a few thousand to over $20,000 depending on the institution and length of the electrician courses. Electrician license costs and certification fees also vary by state."}],"how_to_use_steps":["Select the specific electrical tasks you need completed, such as installing outlets, light fixtures, or ceiling fans.","Enter the quantity or size for each selected task, such as the number of units or the square footage of your living area.","Choose your location from the state or metro area dropdown to adjust the labor costs to your local market.","Review the estimated typical cost, along with the breakdown of materials and labor expenses."]},"content_sections":[{"heading":"Understanding Electrician Labor Cost and Hourly Rates","paragraphs":["The cost of hiring an electrician typically depends on whether they charge a flat rate for a specific task or an hourly rate. The national average hourly cost of an electrician is around $90, though this can fluctuate based on your specific metropolitan area. In addition to the hourly rate, many professionals charge an electrician service call cost or trip fee, which averages $125. This minimum charge covers their travel time and initial diagnostic work.","When requesting an estimate, clarify whether the quote includes this service call fee or if it is billed separately. Understanding these baseline charges helps you evaluate whether a flat-rate quote for a small job is reasonable compared to paying the hourly cost for an electrician."]},{"heading":"Common Electrical Projects and Their Costs","paragraphs":["Different projects carry different price tags based on the time and materials required. For example, the cost for an electrician to install an outlet is typically $160 for a standard 120V receptacle, while the electrician cost to replace an outlet with a GFCI model averages $210. If you are looking to upgrade your home lighting, having one installed is generally around $200, and the cost of ceiling fan installation by an electrician averages $250.","Larger projects require more extensive labor and expensive materials. A Level 2 EV charger installation averages $750, assuming a dedicated 240V circuit is needed but the charger itself is purchased separately. Meanwhile, an electrical panel upgrade to 200 amps typically costs $2,800, which is a necessary step for older homes looking to support modern electrical demands."]},{"heading":"Whole-House Rewiring and Major Upgrades","paragraphs":["For older homes, updating the electrical system is a major investment. The electrician rewiring cost is usually calculated based on the size of the home. On average, the electrician cost per square foot for whole-house rewiring is $9. This means that rewiring a standard 1,500-square-foot living area would cost approximately $13,500.","These major upgrades ensure your home meets current safety standards and can handle the electrical load of modern appliances. Always ensure your licensed electrician pulls the necessary permits and schedules the required inspections, as the electrician inspection cost is often factored into the total project price."]},{"heading":"Worked Example: Calculating Your Electrician Estimate Cost","paragraphs":["Let us look at a practical example using the calculator. Suppose you want to hire a pro to install a new standard 120V outlet in your home, and you live in an area that matches the national average. You select 'Hire a pro' for the standard 120V outlet installation and enter a quantity of 1. The calculator determines that the typical cost is $160, with a low estimate of $120 and a high estimate of $200. Out of the $160 typical cost, $40 goes toward materials and $120 covers the labor.","If you were to change your location to the Austin-Round Rock-San Marcos, TX metro area and calculate 2 hours of standard labor instead, the typical cost would adjust to $155 due to regional labor cost factors. This demonstrates how local wage differences can impact the final cost of hiring an electrician."]}],"sources":[{"label":"U.S. Bureau of Labor Statistics (BLS), Occupational Employment and Wage Statistics","url":"https://www.bls.gov/oes/"},{"label":"ConsumerAffairs - How Much Does an Electrician Cost","url":"https://www.consumeraffairs.com/homeowners/how-much-does-an-electrician-cost.html"},{"label":"Grounded Electric - Electrician Service Call Fee","url":"https://www.grounded-electric.com/electrician-service-call-fee/"},{"label":"Mr. Electric - Cost to Install an EV Charger","url":"https://mrelectric.com/blog/how-much-does-it-cost-to-install-an-ev-charger"}],"default_output":{"result":{"Typical cost":"$160","Low estimate":"$120","High estimate":"$200","Materials":"$40","Labor":"$120"},"footprint":"Selected tasks in the U.S. (national average): typical cost $160.","steps":["Install a new standard 120V outlet (new run from nearby circuit): national typical price $160 per unit (range $120 to $200).","Install a new standard 120V outlet (new run from nearby circuit) (pro): 1 unit x $160 = $160 before adjustments.","Install a new standard 120V outlet (new run from nearby circuit) (pro) after the regional labor factor and adjustments: $160 (range $120 to $200).","Total for all selected tasks: $160 (range $120 to $200)."]},"status":"published","reviewed_at":"2026-10-19","verification_note":"Lote de pricestead, auditoría del 19/10"}