Developer

CIDR Subnet Calculator

Calculate network, broadcast, mask, and host range for any CIDR.

All tools

CIDR

Network:    192.168.1.0
Broadcast:  192.168.1.255
Netmask:    255.255.255.0
Wildcard:   0.0.0.255
First host: 192.168.1.1
Last host:  192.168.1.254
Total IPs:  256
Usable:     254

Frequently asked questions

How many usable hosts does a /24 subnet have?
A /24 has 256 total addresses, but the first is the network address and the last is the broadcast, leaving 254 usable hosts. The formula is 2^(32-prefix) minus 2 for any IPv4 subnet of /30 or larger.
What's the difference between a /24 and a /25?
Each additional prefix bit halves the address space, so a /25 has 128 addresses while a /24 has 256. A /25 splits a /24 into two equal subnets.
Do IPv6 subnets reserve a network and broadcast address?
No, IPv6 has no broadcast concept and does not reserve the first or last address, so every address in the prefix is assignable. The conventional minimum subnet size for end users is /64 because that is what stateless address autoconfiguration assumes.