How to use the IP Subnet Calculator
Enter any IPv4 address in dotted-decimal notation (e.g. 192.168.1.100) and set the CIDR prefix length (0–32). All subnet values update instantly. Use the quick-prefix buttons to switch between the most common subnet sizes.
What each field means
- Network Address: The first address of the subnet, where all host bits are zero. Identifies the subnet itself — it cannot be assigned to a host.
- Subnet Mask: Dotted-decimal representation of the prefix. Used in traditional networking configurations.
- Wildcard Mask: The bitwise complement of the subnet mask. Used in Cisco ACLs and OSPF area statements.
- Broadcast Address: The last address of the subnet, where all host bits are one. Packets sent here reach every host in the subnet.
- First / Last Usable Host: The range of addresses that can be assigned to devices. Excludes the network and broadcast addresses.
- Usable Hosts: Total addresses minus 2 (network + broadcast). For /31 and /32, special RFC 3021 rules apply.
Binary breakdown explained
The binary panel shows the IP address and subnet mask in 32-bit binary. Network bits (purple) are the fixed portion shared by all hosts in the subnet. Host bits (teal) are the variable portion used to address individual hosts.
Frequently asked questions
What is CIDR notation?
CIDR (Classless Inter-Domain Routing) expresses an IP address and its network prefix as a single string — for example 192.168.1.0/24. The number after the slash tells you how many bits belong to the network portion. CIDR replaced the older classful system (Class A/B/C) in 1993, allowing far more flexible address allocation.
How many usable hosts does a /24 subnet have?
A /24 subnet contains 256 total addresses (2^8). Two are reserved — the network address and the broadcast address — leaving 254 usable hosts. In general, usable hosts = 2^(32 - prefix) - 2 for prefixes shorter than /31.
What is the difference between subnet mask and wildcard mask?
The subnet mask uses 1s to mark network bits (e.g. 255.255.255.0 = 11111111.11111111.11111111.00000000). The wildcard mask is its bitwise complement — it uses 1s for host bits (e.g. 0.0.0.255). Wildcard masks are standard in Cisco IOS access control lists and OSPF network statements.
What are the private IP address ranges?
RFC 1918 defines three private ranges not routable on the public internet: 10.0.0.0/8 (Class A — up to 16M hosts), 172.16.0.0/12 (Class B — up to 1M hosts), and 192.168.0.0/16 (Class C — up to 65K hosts). Devices on private networks access the internet through NAT.