On this page
Type an IPv4 address and choose a prefix length (CIDR) or subnet mask. The calculator shows the network and broadcast address, the usable host range and how many devices fit.
How to use the subnet calculator
- Enter any IPv4 address, such as your router’s 192.168.1.1.
- Pick the prefix. Home networks almost always use /24 (255.255.255.0).
- Read the results. They update as you type.
What the results mean
- Network address — the first address in the subnet. It identifies the network and is not given to a device.
- Broadcast address — the last address. Messages sent here reach every device on the subnet.
- Usable host range — addresses you can give to routers, phones, printers and so on.
- Subnet mask — marks which part of the address is the network (the 255s) and which part is the host.
- Wildcard mask — the mask inverted, used in router access lists and OSPF.
Home network example
A router at 192.168.1.1 with mask 255.255.255.0 (/24) owns 192.168.1.0 – 192.168.1.255. Devices can use 192.168.1.1 – 192.168.1.254, so up to 254 of them fit. The router usually gives them addresses from a smaller pool, such as 192.168.1.100 – 192.168.1.199.
CIDR to subnet mask cheat sheet
| CIDR | Subnet mask | Wildcard | Usable hosts |
|---|---|---|---|
| /32 | 255.255.255.255 | 0.0.0.0 | 1 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 |
| /30 | 255.255.255.252 | 0.0.0.3 | 2 |
| /29 | 255.255.255.248 | 0.0.0.7 | 6 |
| /28 | 255.255.255.240 | 0.0.0.15 | 14 |
| /27 | 255.255.255.224 | 0.0.0.31 | 30 |
| /26 | 255.255.255.192 | 0.0.0.63 | 62 |
| /25 | 255.255.255.128 | 0.0.0.127 | 126 |
| /24 | 255.255.255.0 | 0.0.0.255 | 254 |
| /23 | 255.255.254.0 | 0.0.1.255 | 510 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,022 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,046 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,094 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,190 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,382 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,766 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,534 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,574 |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,214 |
Private IP ranges
| Range | CIDR | Typical use |
|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | Large networks, Xfinity 10.0.0.1 |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | Offices, Docker, VPNs |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | Home routers (192.168.1.1, 192.168.0.1) |
Frequently asked questions
What subnet mask does my home network use?
Almost every home router uses 255.255.255.0, which is /24. It allows 254 devices.
How many hosts are in a /24?
A /24 has 256 addresses. Two are reserved (network and broadcast), so 254 are usable.
What is the difference between /24 and 255.255.255.0?
Nothing. They are two ways of writing the same mask: /24 means the first 24 bits are the network part.
Why do /31 and /32 show no broadcast?
/32 is a single address. /31 is used for point-to-point links (RFC 3021), where both addresses are usable.