IPv4 Subnet & CIDR Calculator

Instantly compute network boundaries, broadcast addresses, usable host counts, wildcard masks, and Cisco IOS configuration snippets.

Continue with CCNA networking lessons →

Quick Presets:
Network Address
-
Broadcast Address
-
First Usable Host
-
Last Usable Host
-
Usable Hosts Count
-
Subnet Mask (Decimal)
-
Wildcard Mask
-
IP Class & Scope
-
Binary Subnet Mask
-
⚡ Cisco IOS Interface Configuration Example

                

Understanding IPv4 Subnetting & CIDR

Subnetting is the process of dividing a single large IP network into smaller, manageable sub-networks (subnets). In modern network architecture and the CCNA 200-301 curriculum, Classless Inter-Domain Routing (CIDR) notation (e.g. /24) defines how many bits are dedicated to the network portion versus the host portion.

The total number of usable hosts in any standard subnet is calculated with the formula: 2(32 - prefix) - 2. The - 2 subtracts the Network ID (all host bits 0) and the Broadcast Address (all host bits 1), which cannot be assigned to individual devices.

Common Subnet Cheat Sheet

Prefix Subnet Mask Total IPs Usable Hosts Common Use Case
/30255.255.255.25242Point-to-point router links
/29255.255.255.24886Small DMZ, WAN blocks
/28255.255.255.2401614Branch office subnets
/27255.255.255.2243230Department VLANs
/26255.255.255.1926462Medium VLAN subnets
/24255.255.255.0256254Standard LAN / Office Network
/16255.255.0.065,53665,534Enterprise core network