The demand factor is a ratio that measures the actual maximum demand of a system compared to the total connected load, providing insights into the efficiency and utilization of electrical systems. It is crucial in designing electrical infrastructure to ensure systems are neither overbuilt nor underutilized, optimizing for cost and performance.