- CIDR notation
- —
- Network address
- —
- Broadcast address
- —
- Subnet mask
- —
- Wildcard mask
- —
- First host
- —
- Last host
- —
- Total addresses
- —
- Usable hosts
- —
- Address type
- —
Understanding CIDR notation
In 192.168.1.0/24, the number after the slash says how many of an IPv4 address’s 32 bits identify the network. The remaining bits number the devices. A /24 leaves 8 bits for hosts — 256 addresses, 254 of them usable: the first is the network address and the last is the broadcast address.
Most common prefixes
| Prefix | Mask | Addresses | Typical use |
|---|---|---|---|
| /30 | 255.255.255.252 | 4 (2 hosts) | Point-to-point link |
| /28 | 255.255.255.240 | 16 (14 hosts) | Small office, DMZ |
| /24 | 255.255.255.0 | 256 (254 hosts) | Home network |
| /16 | 255.255.0.0 | 65,536 | Large corporate network |
Private ranges worth knowing
RFC 1918 reserves three blocks for local networks: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. The 100.64.0.0/10 block is used by providers for shared addresses (CGNAT): if your router gets an address in that range, you share your public IP with other subscribers.
Frequently asked questions
Why does a /24 give 254 hosts and not 256?
The first address identifies the network itself and the last one broadcasts to every device. Neither can be assigned to a machine.
What’s the difference between a netmask and a wildcard?
The wildcard is the bitwise inverse of the mask (0.0.0.255 for a /24). You’ll mostly meet it in Cisco access control lists and OSPF.
Does this calculator work offline?
Yes: every calculation runs in your browser, and the address you type is never sent to a server.
Keep reading
IP address lookup
Enter an IPv4 or IPv6 address to get its approximate location and the organisation that runs it.
GuidesWhat Is My IP Address? The Complete Guide
Public vs private addresses, IPv4/IPv6, what your IP reveals, and how to find it on every device.
GuidesIPv4 vs IPv6: The Full Technical Guide
Address exhaustion, NAT, dual-stack: understand both protocols in depth and find out which one you use.