New Check out our newest tool: Pwned Password Check

Subnet Calculator

Type an address with its prefix, like 192.168.1.10/24, or with a mask, like 192.168.1.10 255.255.255.0. Results update as you type. IPv6 works too.

Private, public, or something else? The Reserved IP Checker explains every special range, from 10.0.0.0/8 to carrier-grade NAT and documentation addresses. Open Reserved IP Checker →
How subnets work

An IP address has two parts: the network part, shared by every device on the same network, and the host part, which is different for each device. The prefix says where the split is. In 192.168.1.10/24, the first 24 bits (192.168.1) are the network and the last 8 bits identify the device.

A subnet mask is the same thing written as an address: /24 is 255.255.255.0. A wildcard mask is the mask flipped (0.0.0.255), which is what Cisco access lists and OSPF use.

In IPv4, the first address of a subnet is the network address and the last is the broadcast address, so neither can be given to a device. That's why a /24 has 256 addresses but 254 usable. The exceptions are /31, where both addresses are usable on a point-to-point link (RFC 3021), and /32, which is a single host.

IPv6 has no broadcast address, and almost every network is a /64, which is what automatic address setup expects. Providers usually give a home a /56 or /48, which you can split into many /64s.

IPv4 prefix cheat sheet
PrefixSubnet maskWildcardAddressesUsable
Need a different tool?
Browse the full set — lookups, converters, and checkers, all free.
View all tools