Subnet math applies a prefix length to the 32 bits of an IPv4 address. Binary reasoning prevents mistakes at prefix boundaries that do not align with decimal octets.
Subnetting · Lesson 3
Subnet Math
Learn how to calculate IPv4 network, broadcast, range, and address counts from a prefix.