Subnet Calculator

Enter an IPv4 address with a CIDR prefix (like 192.168.1.10/24) to instantly get the network and broadcast address, subnet mask, wildcard, usable host range, and host count.

What subnetting is

Subnetting is the practice of dividing one IP network into smaller, self-contained networks called subnets. Every IPv4 address is 32 bits long, and a subnet mask decides where the address stops describing the network and starts describing individual hosts. Splitting a large block into subnets lets you separate departments, limit broadcast traffic, and apply security boundaries without requesting more address space.

CIDR notation: what "/24" means

Modern networks use CIDR (Classless Inter-Domain Routing) notation, written as an address followed by a slash and a number — the prefix length. That number is simply how many leading bits belong to the network. A /24 means the first 24 bits are the network and the remaining 8 are for hosts, which is the same as the mask 255.255.255.0. A larger prefix (/26, /30) means a smaller subnet with fewer hosts; a smaller prefix (/16, /8) means a bigger one.

How to read the results

CIDR cheat sheet

PrefixNetmaskTotal addressesUsable hosts
/30255.255.255.25242
/29255.255.255.24886
/28255.255.255.2401614
/27255.255.255.2243230
/26255.255.255.1926462
/25255.255.255.128128126
/24255.255.255.0256254
/23255.255.254.0512510
/22255.255.252.01,0241,022
/16255.255.0.065,53665,534
/8255.0.0.016,777,21616,777,214

The /31 and /32 exceptions

Two prefixes break the "minus 2" rule. A /31 (per RFC 3021) is meant for point-to-point links and treats both of its 2 addresses as usable — there's no separate broadcast. A /32 describes a single host with one address, commonly used for loopbacks and host routes.

Private (RFC 1918) ranges

Three IPv4 ranges are reserved for private networks and never routed on the public internet. You'll recognise them from home and corporate LANs:

Everything on this page is calculated in your browser — no addresses are sent anywhere. Want your public address instead of working out a private block? Use What's My IP.