Subnet calculator
Enter an IP range, such as 192.168.1.0/24, to see its network and broadcast addresses, mask, usable hosts and size. Works for IPv4 and IPv6.
Choosing a check opens its page. With the keyboard, use the arrow keys, then press Enter.
What this calculator shows
Enter an IPv4 or IPv6 range in CIDR form, such as 192.168.1.0/24 or 2001:db8::/48. You can also enter an address with a dotted mask, such as 192.168.1.10 255.255.255.0. For IPv4 we show the network and broadcast addresses, the subnet and wildcard masks, the usable host range and the number of hosts. For IPv6 we show the first and last address, the size and how many /64 networks fit inside.
To plan a network, add a longer prefix in "Split into", such as /26, and we list the smaller networks inside the range (up to 256 of them).
Private and special ranges
Some ranges are set aside for special uses. 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private (RFC 1918) and are used inside homes and offices. 100.64.0.0/10 is shared by internet providers for carrier-grade NAT. 192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24 and 2001:db8::/32 are for documentation and examples only. We tell you when a range is one of these, using the IANA special-purpose address registries.
Frequently asked questions
What does /24 mean?
It is the prefix length: the first 24 bits of the address are the network, and the rest identify hosts. An IPv4 /24 has 256 addresses, the same as the mask 255.255.255.0. Each step down (/23, /22 …) doubles the size.
Why are there two fewer usable addresses than the total?
In a normal IPv4 network the first address names the network and the last is the broadcast address, so neither is given to a device. The exceptions are /31, which RFC 3021 lets point-to-point links use both addresses, and /32, which is a single address.
What is a wildcard mask?
The inverse of the subnet mask: 0 bits for the network part and 1 bits for the host part. A /24 has the wildcard 0.0.0.255. Cisco access lists and some firewalls use it.
Why doesn't IPv6 have a broadcast address?
IPv6 uses multicast instead of broadcast, so every address in the range can in principle be used. A single network (LAN) is almost always a /64, and sites are usually given a /48 or /56.
Can I use private ranges such as 10.0.0.0/8?
Yes. This is a calculator only: nothing is looked up or contacted, and the range you enter isn't stored. We also tell you if a range is private, shared (carrier-grade NAT), documentation or another special-purpose block.
Guides about this tool
-
IP & Network
Subnets and CIDR explained: what /24 and /28 mean
How CIDR prefixes and subnet masks work, how many usable addresses each size has, how to split a range into smaller subnets and how IPv6 differs.
Related tools
-
ASN Lookup
Find which network (autonomous system) an IP address or a domain name's addresses belong to: the AS number, organisation, address block and country.
-
IP Lookup
See which network an IP address belongs to, its approximate country, and its reverse DNS name.
-
What Is My IP
Your public IP address as websites see it, plus what your browser shares with every site you visit.
-
Reverse DNS
Find the host name for an IP address, and check that the name points back to it.