Subnet Calculator
Mask, wildcard, host range, and host count update as you type
| Network address | 192.168.1.0 |
|---|---|
| Broadcast address | 192.168.1.255 |
| First host | 192.168.1.1 |
| Last host | 192.168.1.254 |
| Address count | 256 |
| Usable hosts | 254 |
| Subnet mask | 255.255.255.0 |
| Wildcard mask | 0.0.0.255 |
| CIDR | 192.168.1.0/24 |
| IP class | C |
| Address type | Private (RFC 1918) |
The network address is the IP with the host bits cleared (the address AND the subnet mask). The broadcast address is the network address with the host bits set (network OR wildcard). The wildcard mask is the inverse of the subnet mask. Usable hosts are the address count minus the network and broadcast addresses. A /31 has two addresses and no separate broadcast (RFC 3021). A /32 is a single address. The math runs in your browser; nothing you type is sent to a server. A link such as /subnet/10.0.0.0/22 opens that block.
| CIDR | Subnet Mask | Total Addresses | Usable Hosts | Wildcard Mask |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | 0.255.255.255 |
| /16 | 255.255.0.0 | 65,536 | 65,534 | 0.0.255.255 |
| /24 | 255.255.255.0 | 256 | 254 | 0.0.0.255 |
| /25 | 255.255.255.128 | 128 | 126 | 0.0.0.127 |
| /26 | 255.255.255.192 | 64 | 62 | 0.0.0.63 |
| /27 | 255.255.255.224 | 32 | 30 | 0.0.0.31 |
| /28 | 255.255.255.240 | 16 | 14 | 0.0.0.15 |
| /29 | 255.255.255.248 | 8 | 6 | 0.0.0.7 |
| /30 | 255.255.255.252 | 4 | 2 | 0.0.0.3 |
Frequently Asked Questions
What is a subnet?
A subnet (subnetwork) is a logical subdivision of an IP network. Subnetting divides a large network into smaller, more manageable pieces. Each subnet has a range of IP addresses defined by a network address and a subnet mask. For example, 192.168.1.0/24 defines a subnet with 256 addresses (254 usable hosts) from 192.168.1.1 to 192.168.1.254.
What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation is a compact way to specify an IP address and its associated subnet mask. It is written as an IP address followed by a slash and a number (e.g., 192.168.1.0/24). The number after the slash represents how many bits of the address are used for the network portion. A /24 means the first 24 bits are the network part, leaving 8 bits (256 addresses) for hosts.
What is the difference between a subnet mask and a wildcard mask?
A subnet mask and a wildcard mask are complementary. The subnet mask identifies the network portion of an address (1 bits = network, 0 bits = host). The wildcard mask is the inverse — it identifies the host portion (0 bits = must match, 1 bits = can vary). For example, a /24 subnet mask is 255.255.255.0 and its wildcard mask is 0.0.0.255. Wildcard masks are commonly used in access control lists (ACLs) and routing protocols like OSPF.
How do I know if an IP address is private or public?
Private IP addresses are reserved for internal networks and are not routable on the public internet. The private ranges defined by RFC 1918 are: 10.0.0.0 to 10.255.255.255 (10.0.0.0/8), 172.16.0.0 to 172.31.255.255 (172.16.0.0/12), and 192.168.0.0 to 192.168.255.255 (192.168.0.0/16). Any address outside these ranges (and not reserved for other special purposes) is a public IP address.