CIDR Subnet Calculator
Instantly compute network addresses, broadcast IDs, usable host ranges, and binary masks for any IPv4 CIDR prefix.
IPv4 CIDR Prefix & Subnet Mask Reference Table
/8 to /32| CIDR Prefix | Subnet Mask | Usable Hosts | Total IPs | Standard Class |
|---|---|---|---|---|
| /32 | 255.255.255.255 | 1 | 1 | Single Host / Loopback |
| /30 | 255.255.255.252 | 2 | 4 | Point-to-Point Link |
| /28 | 255.255.255.240 | 14 | 16 | Small Branch / VLAN |
| /24 | 255.255.255.0 | 254 | 256 | Class C (Home Routers) |
| /20 | 255.255.240.0 | 4,094 | 4,096 | Medium Enterprise |
| /16 | 255.255.0.0 | 65,534 | 65,536 | Class B |
| /8 | 255.0.0.0 | 16,777,214 | 16,777,216 | Class A |
Explore Gateway IPs, Router Brands & Utilities
Popular Gateway IP Addresses
12 of 90Top Router Manufacturers
10 of 836Network Tools & Databases
8 toolsFiber Broadband ISPs & ONT Modems
12 of 91Subnetting Frequently Asked Questions
The formula for usable IPv4 hosts is 2^(32 - CIDR) - 2. We subtract 2 because the first address in any block is reserved for the Network ID and the last address is reserved for broadcast traffic.
A wildcard mask is the inverted binary representation of a subnet mask (255.255.255.255 minus Subnet Mask). It is extensively used in Cisco IOS Access Control Lists (ACLs) and OSPF routing configurations to match ranges of IP addresses.
RFC 1918 allocates three specific IPv4 address blocks for private local networks: 10.0.0.0/8 (10.0.0.0 to 10.255.255.255), 172.16.0.0/12 (172.16.0.0 to 172.31.255.255), and 192.168.0.0/16 (192.168.0.0 to 192.168.255.255).