Visual Subnet Calculator
Plan, visualize, and manage IP subnets with an interactive tool for network engineers and IT professionals.
Select a network type to customize IP address calculations for specific cloud providers.
Understanding IP Subnets
What is Subnetting?
Subnetting is the process of dividing a single network into smaller network segments. It helps optimize network performance, improve security, and manage IP address allocation.
CIDR Notation
CIDR (Classless Inter-Domain Routing) notation uses a suffix like /24 to indicate the number of bits in the network portion of an IP address.
For example, 192.168.1.0/24 indicates that the first 24 bits (three octets) define the network, leaving 8 bits for host addresses.
Reserved IPs by Cloud Providers
AWS
AWS reserves the first 4 IP addresses and the last IP address in each subnet:
- The first address is the network address
- The second address (.1) is used for the VPC router
- The third address (.2) is for AWS DNS
- The fourth address (.3) is reserved for future use
- The last address is the broadcast address
For example, in a /24 subnet with 256 total addresses, AWS provides 251 usable IP addresses for resources.
Azure
Azure reserves the first 5 IP addresses and the last IP address in each subnet:
- The first address is the network address
- The second address (.1) is reserved for the default gateway
- The third and fourth addresses (.2, .3) are reserved for Azure DNS
- The fifth address (.4) is reserved for future use
- The last address is the broadcast address
For example, in a /24 subnet with 256 total addresses, Azure provides 250 usable IP addresses for resources.
Google Cloud
Google Cloud Platform reserves 4 IP addresses in each subnet:
- The first address is the network address
- The second address (.1) is reserved as the default gateway
- The second-to-last address is for future use
- The last address is the broadcast address
For example, in a /29 subnet with 8 total addresses, GCP provides 4 usable IP addresses for resources.
Complete Subnet Mask Reference
Reference table for all CIDR notations and their corresponding values
View detailed CIDR reference →CIDR (View Details) | Subnet Mask | Usable Hosts | AWS IPs | Azure IPs | GCP IPs |
---|---|---|---|---|---|
/0 | 0.0.0.0 | 4,294,967,294 | 4,294,967,289 | 4,294,967,289 | 4,294,967,290 |
/1 | 128.0.0.0 | 2,147,483,646 | 2,147,483,641 | 2,147,483,641 | 2,147,483,642 |
/2 | 192.0.0.0 | 1,073,741,822 | 1,073,741,817 | 1,073,741,817 | 1,073,741,818 |
/3 | 224.0.0.0 | 536,870,910 | 536,870,905 | 536,870,905 | 536,870,906 |
/4 | 240.0.0.0 | 268,435,454 | 268,435,449 | 268,435,449 | 268,435,450 |
/5 | 248.0.0.0 | 134,217,726 | 134,217,721 | 134,217,721 | 134,217,722 |
/6 | 252.0.0.0 | 67,108,862 | 67,108,857 | 67,108,857 | 67,108,858 |
/7 | 254.0.0.0 | 33,554,430 | 33,554,425 | 33,554,425 | 33,554,426 |
/8 | 255.0.0.0 | 16,777,214 | 16,777,209 | 16,777,209 | 16,777,210 |
/9 | 255.128.0.0 | 8,388,606 | 8,388,601 | 8,388,601 | 8,388,602 |
/10 | 255.192.0.0 | 4,194,302 | 4,194,297 | 4,194,297 | 4,194,298 |
/11 | 255.224.0.0 | 2,097,150 | 2,097,145 | 2,097,145 | 2,097,146 |
/12 | 255.240.0.0 | 1,048,574 | 1,048,569 | 1,048,569 | 1,048,570 |
/13 | 255.248.0.0 | 524,286 | 524,281 | 524,281 | 524,282 |
/14 | 255.252.0.0 | 262,142 | 262,137 | 262,137 | 262,138 |
/15 | 255.254.0.0 | 131,070 | 131,065 | 131,065 | 131,066 |
/16 | 255.255.0.0 | 65,534 | 65,529 | 65,529 | 65,530 |
/17 | 255.255.128.0 | 32,766 | 32,761 | 32,761 | 32,762 |
/18 | 255.255.192.0 | 16,382 | 16,377 | 16,377 | 16,378 |
/19 | 255.255.224.0 | 8,190 | 8,185 | 8,185 | 8,186 |
/20 | 255.255.240.0 | 4,094 | 4,089 | 4,089 | 4,090 |
/21 | 255.255.248.0 | 2,046 | 2,041 | 2,041 | 2,042 |
/22 | 255.255.252.0 | 1,022 | 1,017 | 1,017 | 1,018 |
/23 | 255.255.254.0 | 510 | 505 | 505 | 506 |
/24 | 255.255.255.0 | 254 | 249 | 249 | 250 |
/25 | 255.255.255.128 | 126 | 121 | 121 | 122 |
/26 | 255.255.255.192 | 62 | 57 | 57 | 58 |
/27 | 255.255.255.224 | 30 | 25 | 25 | 26 |
/28 | 255.255.255.240 | 14 | 9 | 9 | 10 |
/29 | 255.255.255.248 | 6 | 1 | 1 | 2 |
/30 | 255.255.255.252 | 2 | 0 | 0 | 0 |
/31 | 255.255.255.254 | 0 (point-to-point) | 0 | 0 | 0 |
/32 | 255.255.255.255 | 1 (single host) | 0 | 0 | 0 |