Calculate IP subnets, CIDR notation, network addresses, and available host ranges. Essential for network planning and troubleshooting.

Calculate Subnet

Common Use Cases

  • Network Planning: Design IP address schemes for new networks
  • Subnet Division: Split networks into smaller subnets
  • VLAN Configuration: Calculate IP ranges for VLANs
  • Troubleshooting: Verify if IPs are in the correct subnet
  • Documentation: Generate network documentation
  • Cloud Networking: Plan VPC/subnet configurations in AWS, Azure, GCP

Common Subnet Masks

CIDRSubnet MaskHostsTypical Use
/30255.255.255.2522Point-to-point links
/29255.255.255.2486Small office networks
/28255.255.255.24014Small subnets
/27255.255.255.22430Department networks
/26255.255.255.19262Medium networks
/25255.255.255.128126Large department networks
/24255.255.255.0254Standard Class C
/23255.255.254.0510Two Class C networks
/22255.255.252.01022Four Class C networks
/21255.255.248.02046Eight Class C networks
/20255.255.240.0409416 Class C networks
/16255.255.0.065534Class B network
/8255.0.0.016MClass A network

Private IP Ranges (RFC 1918)

  • 10.0.0.0/8 - 10.0.0.0 to 10.255.255.255 (16,777,216 IPs)
  • 172.16.0.0/12 - 172.16.0.0 to 172.31.255.255 (1,048,576 IPs)
  • 192.168.0.0/16 - 192.168.0.0 to 192.168.255.255 (65,536 IPs)

Subnet Calculation Tips

  • Network address has all host bits set to 0
  • Broadcast address has all host bits set to 1
  • First usable host = Network address + 1
  • Last usable host = Broadcast address - 1
  • Total hosts = 2^(host bits) - 2 (minus network and broadcast)
  • /32 represents a single IP address
  • /31 is used for point-to-point links (RFC 3021)