IP Subnet Calculator
Enter an IPv4 address and choose a subnet mask. You will get the network address, broadcast address, usable host range, wildcard mask and every subnet in the range.
IPv4 Subnet Calculator
Results update as you type.
All possible networks
| Network address | Usable host range | Broadcast address |
|---|
/31 is counted as 2 usable hosts (point-to-point links, RFC 3021) and /32 as 1 host (single address).
Common Subnet Masks
Quick reference for the subnet sizes used most often in homes, offices and ISP networks.
| CIDR | Subnet mask | Wildcard mask | Total IPs | Usable hosts |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
IP Classes & Private Ranges
Private addresses are used inside homes and offices. Public addresses are reachable on the internet.
IPv4 address classes
| Class | First octet | Default mask |
|---|---|---|
| A | 1 – 126 | /8 |
| B | 128 – 191 | /16 |
| C | 192 – 223 | /24 |
| D | 224 – 239 | Multicast |
| E | 240 – 255 | Reserved |
Private & special ranges
| Range | Use |
|---|---|
| 10.0.0.0/8 | Private, large networks |
| 172.16.0.0/12 | Private, medium networks |
| 192.168.0.0/16 | Private, home & office routers |
| 100.64.0.0/10 | Shared ISP space (CGNAT) |
| 127.0.0.0/8 | Loopback (this device) |
| 169.254.0.0/16 | Link-local (no DHCP) |
Common Questions
What is a subnet mask?
A subnet mask splits an IP address into a network part and a host part. For example 255.255.255.0 (/24) means the first three numbers identify the network and the last number identifies the device.
What does /24 or CIDR notation mean?
CIDR notation counts how many bits of the address belong to the network. /24 means 24 network bits, which is the same as the mask 255.255.255.0 and gives 256 addresses.
Why are usable hosts 2 less than total IPs?
In a normal subnet the first address is the network address and the last is the broadcast address. Neither can be given to a device, so a /24 has 256 addresses but 254 usable hosts.
What is a wildcard mask?
A wildcard mask is the inverse of the subnet mask. It is used in router access lists and OSPF. The wildcard for 255.255.255.0 is 0.0.0.255.
Do I need a static IP for my business?
A static public IP is useful if you host a server, CCTV/NVR remote access, VPN or a website on your own network. Nakoda Network provides static IPs with leased line and business plans.
Need a static IP or a dedicated leased line?
Nakoda Network provides leased lines with static public IPs for offices, shops and businesses across Mumbai.