IPv4 subnet calculator

Type an address and prefix like 10.0.12.34/20 to get the network and broadcast addresses, usable host range, subnet mask and how many hosts fit.

Split into subnets

SubnetHostsBroadcast

Runs entirely in your browser. Nothing you enter is sent to a server.

CIDR cheat sheet

PrefixMaskUsable hosts
/8255.0.0.016,777,214
/16255.255.0.065,534
/20255.255.240.04,094
/22255.255.252.01,022
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522

Why two addresses are “lost”

In most subnets the first address identifies the network and the last is the broadcast address, so a /24 has 256 addresses but 254 usable hosts. Point-to-point /31 links (RFC 3021) and single-host /32 routes are exceptions.

Want to know your own public address? Check What is my IP.

Frequently asked questions

How many hosts are in a /24?

256 addresses, 254 usable hosts.

What is a wildcard mask?

The inverse of the subnet mask, used in Cisco ACLs and OSPF. For /24 it’s 0.0.0.255.

Does it support IPv6?

Not yet — this calculator covers IPv4.

Related tools

More from the Cirelay network