viewof switchBudget = Inputs.range([100, 740], {value: 370, step: 10, label: "Switch PoE budget (W)"})
viewof numCameras1080 = Inputs.range([0, 24], {value: 12, step: 1, label: "1080p IP Cameras (12.5 W each)"})
viewof numCamerasPTZ = Inputs.range([0, 12], {value: 4, step: 1, label: "4K PTZ Cameras (25 W each)"})
viewof numAPs = Inputs.range([0, 12], {value: 6, step: 1, label: "Wi-Fi 6 Access Points (18 W each)"})
viewof numVoIP = Inputs.range([0, 40], {value: 20, step: 1, label: "VoIP Phones (6.5 W each)"})
viewof numGateways = Inputs.range([0, 10], {value: 3, step: 1, label: "IoT Sensor Gateways (8 W each)"})
viewof numDoors = Inputs.range([0, 10], {value: 4, step: 1, label: "Door Access Controllers (10 W each)"})PoE Switch Budget Calculator
PoE Switch Budget Calculator
animation
ethernet
networking
Try Change device counts and Switch PoE budget (W), then press Calculate.
Observe Watch Peak allocation and the budget reserve after pressing Calculate.
Explain Explain why increasing device counts reduces the assumed 20% reserve.
Technical boundaries. Preset wattages are examples of switch-side port allocations including cable-loss allowance. The calculator assumes a 20% budget reserve and typical draw at 70% of peak allocation.
NoteTry It: PoE Switch Budget Calculator
Adjust the device counts to test an illustrative switch-side PoE allocation budget. Enter port allocations, including cable-loss allowance, from the device and switch specifications; the preset wattages are examples. The calculator uses an assumed 20% budget reserve and a 70%-of-peak typical-load illustration.
{
const totalMax = numCameras1080 * 12.5 + numCamerasPTZ * 25 + numAPs * 18
+ numVoIP * 6.5 + numGateways * 8 + numDoors * 10;
const totalTypical = totalMax * 0.7;
const utilization = switchBudget > 0 ? (totalMax / switchBudget * 100) : 0;
const headroom = switchBudget - totalMax;
const spareDevices = Math.max(0, Math.floor((switchBudget * 0.8 - totalMax) / 15));
const statusColor = headroom < 0 ? "#E74C3C" : utilization > 80 ? "#E67E22" : "#16A085";
const statusText = headroom < 0
? `Over budget by ${Math.abs(headroom).toFixed(0)} W — device power may be denied or removed; check switch policy`
: utilization > 80
? `Caution: ${utilization.toFixed(0)}% allocated — below the assumed 20% reserve`
: `OK: ${utilization.toFixed(0)}% allocated — room for ~${spareDevices} more 15 W port allocations while keeping 20% reserve`;
const rows = [
["1080p IP Camera", numCameras1080, 12.5, "PoE (802.3af)"],
["4K PTZ Camera", numCamerasPTZ, 25.0, "PoE+ (802.3at)"],
["Wi-Fi 6 Access Point", numAPs, 18.0, "PoE+ (802.3at)"],
["VoIP Phone", numVoIP, 6.5, "PoE (802.3af)"],
["IoT Sensor Gateway", numGateways, 8.0, "PoE (802.3af)"],
["Door Access Controller", numDoors, 10.0, "PoE (802.3af)"],
];
const tableRows = rows.map(([name, count, w, std]) => {
const total = count * w;
return `<tr>
<td>${name}</td><td style="text-align:center">${count}</td>
<td style="text-align:right">${w.toFixed(1)} W</td>
<td style="text-align:right">${total.toFixed(1)} W</td>
<td>${std}</td>
</tr>`;
}).join("");
return html`<div style="font-family:Arial,sans-serif;max-width:640px">
<table style="width:100%;border-collapse:collapse;font-size:0.9em;margin-bottom:12px">
<thead>
<tr style="background:#2C3E50;color:#fff">
<th style="padding:6px 8px;text-align:left">Device</th>
<th style="padding:6px 8px;text-align:center">Count</th>
<th style="padding:6px 8px;text-align:right">Each</th>
<th style="padding:6px 8px;text-align:right">Total</th>
<th style="padding:6px 8px;text-align:left">Standard</th>
</tr>
</thead>
<tbody>${tableRows}</tbody>
<tfoot>
<tr style="font-weight:bold;border-top:2px solid #2C3E50">
<td style="padding:6px 8px">Totals</td>
<td style="padding:6px 8px;text-align:center">${rows.reduce((s,[,c]) => s+c, 0)}</td>
<td></td>
<td style="padding:6px 8px;text-align:right">${totalMax.toFixed(1)} W assumed peak allocation</td>
<td style="padding:6px 8px">${totalTypical.toFixed(1)} W illustrative typical draw</td>
</tr>
</tfoot>
</table>
<div style="padding:10px 14px;border-radius:6px;background:${statusColor}18;border-left:4px solid ${statusColor};color:#2C3E50">
<strong>Switch budget: ${switchBudget} W</strong> |
<strong>Peak allocation: ${totalMax.toFixed(1)} W</strong> |
<span style="color:${statusColor};font-weight:bold">${statusText}</span>
</div>
</div>`;
}