Skip to content

Subnet Calculator

Network address, mask, broadcast and host range for an IPv4 subnet.

Reading the results

The prefix length is the number of leading bits that identify the network. A /24 keeps the first 24 bits fixed, leaving 8 bits, or 256 addresses, for hosts. The first address names the network and the last is the broadcast address, so 254 are usable.

Addresses in 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private and are not routed on the public internet.

Worked example

The address 192.168.1.10/24 is in network 192.168.1.0 with subnet mask 255.255.255.0. The broadcast address is 192.168.1.255 and there are 254 usable hosts, from 192.168.1.1 to 192.168.1.254.

Common questions

What does /24 mean?

The first 24 bits of the address identify the network, which equals a subnet mask of 255.255.255.0. The remaining 8 bits give 256 addresses, 254 of them usable.

How many hosts are in a subnet?

2 to the power of (32 minus the prefix length), minus 2 for the network and broadcast addresses. A /26 has 64 − 2 = 62 usable hosts.

What is a wildcard mask?

It is the inverse of the subnet mask, used in access control lists and routing configuration. The wildcard for 255.255.255.0 is 0.0.0.255.

Last updated