construction

Subnet Calculator

calculators.im ↗

Subnet calculator

Enter IP with CIDR prefix (e.g., 192.168.1.0/24) or just an IP below

tune Or enter IP and subnet mask separately
hub Network Address
192.168.1.0
cell_tower Broadcast Address
192.168.1.255
shield Subnet Mask
255.255.255.0
flip_to_back Wildcard Mask
0.0.0.255
first_page First Usable Host
192.168.1.1
last_page Last Usable Host
192.168.1.254
groups Total Addresses
256
devices Usable Hosts
254
IP Class C
CIDR Notation /24
Type Private
data_object Binary Representations
IP Address
11000000.10101000.00000001.00000000
Subnet Mask
11111111.11111111.11111111.00000000
Network Address
11000000.10101000.00000001.00000000
table_chart CIDR Cheat Sheet (/8 through /32)
CIDR Subnet Mask Total IPs Usable Hosts

tips_and_updates Tips

  • A /24 subnet has 254 usable hosts and is the most common subnet for small networks
  • The wildcard mask is the inverse of the subnet mask and is used in ACLs and OSPF configurations
  • A /32 subnet represents a single host address, commonly used for loopback interfaces
  • Private IP ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 (RFC 1918)
  • Each additional prefix bit halves the number of available hosts in the subnet
  • VLSM (Variable Length Subnet Masking) lets you use different prefix lengths within the same network
  • Always reserve the first address (network) and last address (broadcast) — they cannot be assigned to hosts
  • For point-to-point links, a /30 subnet provides exactly 2 usable addresses (or use /31 per RFC 3021)
  • AWS reserves 4 addresses + broadcast in every subnet — a /28 has 11 usable hosts on AWS, not 14
  • Use the magic number trick: 256 minus the relevant mask octet equals the subnet block size