Demystifying Subnetting: IP Masking & CIDR Notations
Network engineering essentials. Learn to divide classes of IP addresses into sub-networks, calculate binary masks, and map maximum hosts.
Written by the CalcUni Editorial Team | Updated: May 2026
In modern computer networking, IP addresses are precious resources. Subnetting is the process of breaking a single large network into smaller, more manageable sub-networks (subnets). Subnetting improves security, optimizes routing performance, and dramatically reduces broadcast traffic.
1. The Structure of an IP Address
An IPv4 address is a 32-bit binary number divided into four 8-bit octets, usually written in dotted-decimal format (e.g., 192.168.1.1). A subnet mask tells a computer which part of the address represents the Network ID and which part represents the Host ID.
2. What is CIDR Notation?
Classless Inter-Domain Routing (CIDR) simplifies subnetting by appending a slash and the number of network bits to the IP address. For example:
- 192.168.1.0/24: The first 24 bits are the network. The subnet mask is 255.255.255.0. This subnet provides 2^(32-24) = 256 addresses (254 usable hosts, minus network and broadcast IDs).
- 192.168.1.0/26: The first 26 bits are the network. The subnet mask is 255.255.255.192. This subnet provides 2^(32-26) = 64 addresses (62 usable hosts).
3. Finding the Network and Broadcast Addresses
For any IP address and mask, you can find the boundaries using binary math:
- Network Address: Calculated by performing a bitwise AND operation between the IP address and the subnet mask.
- Broadcast Address: Calculated by taking the network address and setting all the host bits to binary 1s.
Summary
Subnet masking is an indispensable skill for network administrators, systems engineers, and cybersecurity experts. Instantly calculate network limits, broadcast ranges, and CIDR lists using our free, graphical Subnet Calculator.