Skip to content

Subnet Calculator

Calculate network address, broadcast address, subnet mask, and usable host range from an IP address and CIDR prefix length.

IP Address & CIDR

Common Presets:

/8
/16
/24
/26
/28
/30
/32
Results
Private
Class C
Network Address192.168.1.0
Broadcast Address192.168.1.255
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Usable Host Range192.168.1.1 - 192.168.1.254
Total Addresses256
Usable Hosts254
Pro Tip: Managing Multiple Network Environments?

Use Helm to quickly switch between development, staging, and production /etc/hosts configurations. Perfect for managing different network environments without manual file editing.

Learn More About Helm

Understanding Subnet Calculations

Subnetting is the practice of dividing a network into smaller, more manageable segments. Each subnet has its own range of IP addresses, defined by the network address and subnet mask. This calculator helps you quickly determine all the essential values for any given IP address and CIDR prefix.

Key Terms Explained

  • CIDR (Classless Inter-Domain Routing): A notation that specifies the number of bits used for the network portion (e.g., /24 means 24 bits for network, 8 bits for hosts).
  • Network Address: The first address in a subnet, identifying the network itself.
  • Broadcast Address: The last address in a subnet, used to send data to all hosts in the network.
  • Wildcard Mask: The inverse of the subnet mask, commonly used in ACLs and firewall rules.

Common CIDR Sizes

/8 (16.7M hosts) — Large enterprise networks
/16 (65,534 hosts) — Medium enterprise networks
/24 (254 hosts) — Standard LAN subnet
/28 (14 hosts) — Small office networks
/30 (2 hosts) — Point-to-point links
/32 (1 host) — Single host routes