Twenty cameras is one of the most common project sizes we quote, and it is also where sizing mistakes start to cost real money. Here is the calculation we actually run, step by step.
Step one: count ports, then add headroom. Twenty cameras need twenty PoE ports. Reserve at least two spare ports for a future camera, a temporary unit during maintenance, or a door access reader. That puts you at a 24-port switch, which happens to be the standard chassis size for rack mounting.
Step two: classify the cameras by power class. A fixed 4 MP dome typically draws 5 to 7 W. A varifocal bullet with IR draws 8 to 12 W. A PTZ with heater can draw 25 to 45 W. Write the worst-case figure from each datasheet, not the typical figure.
Step three: sum the worst case. A realistic mix for twenty cameras is eighteen units at 10 W and two PTZ at 40 W. That is 180 W plus 80 W, or 260 W at the device.
Step four: convert to switch budget. PoE conversion is roughly 85 percent efficient, so 260 W at the devices means about 306 W drawn from the switch power supply. Add 20 to 30 percent headroom for inrush current at power-on, for cameras that draw more in cold weather, and for the switch itself. 306 W plus 25 percent lands near 385 W.
The conclusion: look for a 24-port PoE+ switch with a total budget of at least 400 W. Many 24-port at switches on the market are sold with 370 W, which is marginally short for this configuration. This is a detail worth checking on the datasheet, because the port count and the budget are independent specifications.
Step five: check the uplink. Twenty cameras at 4 MP, 15 fps and H.265 use roughly 2 to 4 Mbps each, so 40 to 80 Mbps total. A single gigabit uplink carries that comfortably. If the recorder sits on the same switch, keep the cameras and the NVR on the same unit and the traffic never crosses the uplink at all. If you need redundancy or the cameras are split across buildings, use two SFP ports and fibre between cabinets.
Step six: decide whether one switch or two. A single 24-port unit is simpler and cheaper. Two 16-port units, each with its own power supply, remove the single point of failure and let you keep cable runs under 100 metres from each cabinet. For projects where downtime is expensive, the second option is usually worth the small extra cost.
Step seven: respect the cable. Every camera run must stay under 100 metres of channel length. Count the actual route, including vertical drops and service loops, not the straight-line distance on the drawing. For runs beyond 100 metres, use fibre to a remote cabinet rather than trying to stretch copper.
Two field notes that do not show up in the calculation. First, twenty PoE ports in one switch generate real heat: allow free air around the unit, do not stack it directly under another heat source, and prefer a fan-cooled model in an outdoor cabinet in summer. Second, label every port to the camera it feeds at installation time. When one camera fails two years later, the label is what saves the service call.
If you send us the camera models and the site layout, we will return a port plan, the budget calculation and a quotation for the configuration that matches it.