Subnet Calculator (CIDR)

Free CIDR subnet calculator: find network & broadcast address, usable host range, subnet mask, wildcard and convert an IP range to CIDR blocks.

Tip: you can also type 10.0.0.0/8 into the IP field.

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) writes a network as an address followed by a slash and the number of network bits, e.g. 192.168.1.0/24. The remaining bits identify hosts. A /24 has 28 = 256 addresses, of which 254 are usable (the first is the network address and the last is the broadcast address).

Subnet mask cheat sheet

CIDRSubnet maskAddressesUsable hosts
/32255.255.255.25511
/31255.255.255.25422
/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
/21255.255.248.02,0482,046
/20255.255.240.04,0964,094
/19255.255.224.08,1928,190
/18255.255.192.016,38416,382
/17255.255.128.032,76832,766
/16255.255.0.065,53665,534
/15255.254.0.0131,072131,070
/14255.252.0.0262,144262,142
/13255.248.0.0524,288524,286
/12255.240.0.01,048,5761,048,574
/11255.224.0.02,097,1522,097,150
/10255.192.0.04,194,3044,194,302
/9255.128.0.08,388,6088,388,606
/8255.0.0.016,777,21616,777,214

How to choose a subnet for a home network

Home routers almost always use a /24 (255.255.255.0), e.g. 192.168.1.1–192.168.1.254. That leaves room for 253 devices besides the router. Use a /23 or /22 only for very large networks, and pick a range from the private IP blocks.

Frequently asked questions

What does /24 mean?

/24 means the first 24 bits are the network part, giving the subnet mask 255.255.255.0 and 254 usable host addresses.

How many hosts are in a /28?

A /28 has 16 addresses, of which 14 are usable for hosts.