Subnet calculator (IPv4 & IPv6)

Type an address with its prefix (192.168.1.10/24) or netmask (192.168.1.10 255.255.255.0).

What the results mean

CIDR notation in one minute

In 192.168.1.0/24 the number after the slash says how many bits, from the left, belong to the network. The rest identifies devices. A /24 leaves 8 bits for devices: 256 addresses, of which 254 can be used, because the network and broadcast addresses are reserved. Each step of the prefix doubles or halves the size: a /23 has 512 addresses, a /25 has 128.

IPv6 has no broadcast and no reserved first address, and subnets are much larger: a normal LAN is a /64, which holds 18 quintillion addresses.

IPv4 CIDR cheat sheet

CIDRSubnet maskAddressesUsable hosts
/8255.0.0.016,777,21616,777,214
/9255.128.0.08,388,6088,388,606
/10255.192.0.04,194,3044,194,302
/11255.224.0.02,097,1522,097,150
/12255.240.0.01,048,5761,048,574
/13255.248.0.0524,288524,286
/14255.252.0.0262,144262,142
/15255.254.0.0131,072131,070
/16255.255.0.065,53665,534
/17255.255.128.032,76832,766
/18255.255.192.016,38416,382
/19255.255.224.08,1928,190
/20255.255.240.04,0964,094
/21255.255.248.02,0482,046
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

Frequently asked questions

How many hosts are in a /24?

A /24 has 256 addresses and 254 usable hosts. The first (network) and the last (broadcast) addresses are reserved.

What is the subnet mask of /16?

255.255.0.0. It holds 65,536 addresses, of which 65,534 are usable.

Why do /31 and /32 have no broadcast?

A /31 is used for links between two routers, so both addresses are usable (RFC 3021). A /32 is a single address, used for one host or a loopback.

More free tools