Calculate comprehensive subnet information for IPv4 and IPv6 networks including network addresses, usable host ranges, subnet masks, and CIDR notation for network planning and administration.
Calculate network parameters and host ranges for IPv4 addresses with CIDR notation.
Advanced IPv6 subnet calculations with prefix length support and address expansion.
Subnetting is a fundamental networking concept that involves dividing a larger network into smaller, more manageable subnetworks for efficient IP address management, network security, and performance optimization.
Classless Inter-Domain Routing (CIDR) notation is the modern standard for expressing subnet masks using a slash followed by the number of network bits (e.g., /24 instead of 255.255.255.0).
/8 = 255.0.0.0 (Class A) - 16,777,214 hosts
/16 = 255.255.0.0 (Class B) - 65,534 hosts
/24 = 255.255.255.0 (Class C) - 254 hosts
/30 = 255.255.255.252 (Point-to-point) - 2 hosts
Pro Tip: Always plan subnets with future growth in mind. It's easier to allocate larger subnets initially than to renumber later.
While IPv6 adoption continues to grow, dual-stack implementations remain common. Network administrators should plan for IPv6 transition while maintaining IPv4 compatibility during the migration period.
Complete CIDR notation reference with host calculations
| CIDR | Subnet Mask | Usable Hosts | Network Class |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 | Class A |
| /16 | 255.255.0.0 | 65,534 | Class B |
| /24 | 255.255.255.0 | 254 | Class C |
| /25 | 255.255.255.128 | 126 | |
| /26 | 255.255.255.192 | 62 | |
| /27 | 255.255.255.224 | 30 | |
| /28 | 255.255.255.240 | 14 | |
| /29 | 255.255.255.248 | 6 | |
| /30 | 255.255.255.252 | 2 | |
| /31 | 255.255.255.254 | 0 | |
| /32 | 255.255.255.255 | 0 |
Private IP addresses are reserved for use within private networks and are not routable on the public Internet. These ranges are defined by RFC 1918 and are commonly used for internal networks.
10.0.0.0/8
Range: 10.0.0.0 - 10.255.255.255
Hosts: 16,777,216
172.16.0.0/12
Range: 172.16.0.0 - 172.31.255.255
Hosts: 1,048,576
192.168.0.0/16
Range: 192.168.0.0 - 192.168.255.255
Hosts: 65,536
Used for router-to-router connections where only 2 hosts are needed.
Suitable for small departments or branch offices with up to 14 devices.
Traditional Class C network, perfect for most office environments.