Subnet Calculator

Calculate subnet details from any IP address and CIDR prefix. Get network address, broadcast, host range, and total hosts instantly.

Common Subnet Sizes

CIDR Subnet Mask Total Addresses Usable Hosts
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/24255.255.255.0256254
/28255.255.255.2401614
/30255.255.255.25242
/32255.255.255.25510

How to Use

  1. 1 Enter an IP address in dotted-decimal notation, e.g. 192.168.1.0
  2. 2 Enter the CIDR prefix length (0–32), e.g. 24 for a /24 subnet
  3. 3 Click Calculate to see network address, broadcast address, host range, and total hosts

Use Cases

Network Planning

Plan IP address allocation for your infrastructure with precise subnet boundaries and host counts.

Connectivity Troubleshooting

Quickly determine if two IP addresses are on the same subnet when diagnosing network issues.

Firewall & ACL Configuration

Define firewall rules and access control lists with exact subnet ranges and wildcard masks.

FAQ

CIDR (Classless Inter-Domain Routing) notation expresses an IP address with its prefix length, e.g. 192.168.1.0/24, where /24 means the first 24 bits define the network.

A /24 subnet has 256 total addresses and 254 usable host addresses (the network and broadcast addresses are reserved).

A wildcard mask is the inverse of the subnet mask. It is used in ACL rules and OSPF configurations to define which bits of an address should be matched.

Related Tools