IP Subnet Calculator – CIDR, Network & Host Calculator
Calculate subnet masks, network addresses, broadcast addresses, host ranges, and CIDR blocks instantly for IPv4 networks.
Typical IPv4 subnets (CIDR reference)
| Prefix | Subnet mask | Usable hosts |
|---|---|---|
| /1 | 128.0.0.0 | 2,147,483,646 |
| /2 | 192.0.0.0 | 1,073,741,822 |
| /3 | 224.0.0.0 | 536,870,910 |
| /4 | 240.0.0.0 | 268,435,454 |
| /5 | 248.0.0.0 | 134,217,726 |
| /6 | 252.0.0.0 | 67,108,862 |
| /7 | 254.0.0.0 | 33,554,430 |
| Class A/8 | 255.0.0.0 | 16,777,214 |
| /9 | 255.128.0.0 | 8,388,606 |
| /10 | 255.192.0.0 | 4,194,302 |
| /11 | 255.224.0.0 | 2,097,150 |
| /12 | 255.240.0.0 | 1,048,574 |
| /13 | 255.248.0.0 | 524,286 |
| /14 | 255.252.0.0 | 262,142 |
| /15 | 255.254.0.0 | 131,070 |
| Class B/16 | 255.255.0.0 | 65,534 |
| /17 | 255.255.128.0 | 32,766 |
| /18 | 255.255.192.0 | 16,382 |
| /19 | 255.255.224.0 | 8,190 |
| /20 | 255.255.240.0 | 4,094 |
| /21 | 255.255.248.0 | 2,046 |
| /22 | 255.255.252.0 | 1,022 |
| /23 | 255.255.254.0 | 510 |
| Class C/24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /29 | 255.255.255.248 | 6 |
| /30 | 255.255.255.252 | 2 |
| /31 | 255.255.255.254 | 0 |
| /32 | 255.255.255.255 | 0 |
What Is an IP Subnet Calculator?
An IP subnet calculator is a network calculator that computes network address, broadcast address, usable host range, subnet mask, wildcard mask, and CIDR prefix from an IPv4 or IPv6 address.
Subnetting splits one IP network into smaller subnetworks so administrators can reduce broadcast domains, improve security, and allocate addresses efficiently.
A subnet mask (or CIDR prefix) tells devices which bits identify the network and which bits identify hosts. This free ip subnet calculator applies the same math used in RFC-based networking and Cisco-style ACL planning.
How to use this ip subnet calculator tool
- Enter an IPv4 address in the IPv4 tab (or IPv6 address in the IPv6 tab).
- Select network class (Any, A, B, C) and CIDR prefix, or type a subnet mask.
- Click Calculate.
- Review network, broadcast, host range, masks, and host counts.
- Copy results for ACLs, documentation, or cloud VPC design.
How to Use This Tool
Follow these steps to calculate subnet details:
- Step 1: Open the IPv4 or IPv6 tab.
- Step 2: Enter an IPv4 address (for example 192.168.1.10).
- Step 3: Choose a CIDR prefix from the subnet dropdown or type a subnet mask (255.255.255.0 or /24).
- Step 4: Optionally filter prefixes by legacy network class (A, B, C, or Any).
- Step 5: Click Calculate and review network, broadcast, host range, masks, and host counts.
- Step 6: Copy results for documentation, ACLs, or cloud VPC design.
What Is Subnetting?
- Network segmentation — divide one large prefix into VLANs, departments, or availability zones.
- Broadcast domain reduction — smaller subnets limit broadcast traffic.
- Improved security — ACLs and firewalls can reference precise CIDR blocks.
- Better IP management — allocate only the addresses each segment needs.
- Efficient routing — summarize routes with aggregate prefixes.
Understanding CIDR Notation
CIDR replaces class-based networking with flexible prefix lengths. Common examples:
- /8 — very large networks (class A legacy)
- /16 — regional or campus networks (class B legacy)
- /24 — typical LAN (254 usable IPv4 hosts)
- /25 — 126 usable hosts
- /26 — 62 usable hosts
- /27 — 30 usable hosts
- /28 — 14 usable hosts
- /29 — 6 usable hosts
- /30 — point-to-point links (2 usable hosts)
Subnet Mask Table
CIDR prefix, dotted-decimal mask, and typical usable host counts:
| CIDR | Subnet mask & usable hosts |
|---|---|
| /8 | 255.0.0.0 — 16,777,214 usable hosts |
| /16 | 255.255.0.0 — 65,534 usable hosts |
| /24 | 255.255.255.0 — 254 usable hosts |
| /25 | 255.255.255.128 — 126 usable hosts |
| /26 | 255.255.255.192 — 62 usable hosts |
| /27 | 255.255.255.224 — 30 usable hosts |
| /28 | 255.255.255.240 — 14 usable hosts |
| /29 | 255.255.255.248 — 6 usable hosts |
| /30 | 255.255.255.252 — 2 usable hosts |
Understanding Calculator Results
- Network Address — first address in the subnet (host bits all 0).
- Broadcast Address — last address (host bits all 1).
- First / Last Usable Host — assignable addresses between network and broadcast.
- Total Hosts — all addresses in the subnet including reserved ones.
- Usable Hosts — assignable count (usually total minus 2).
- Subnet Mask — dotted-decimal network mask.
- CIDR Prefix — slash notation (e.g. /24).
- Wildcard Mask — inverse mask for Cisco ACLs.
Subnet Calculation Example
IP 192.168.1.10 with prefix /24:
| Field | Value |
|---|---|
| Network | 192.168.1.0 |
| Broadcast | 192.168.1.255 |
| Usable hosts | 192.168.1.1 – 192.168.1.254 |
| Host count | 254 usable |
| Subnet mask | 255.255.255.0 |
| Wildcard mask | 0.0.0.255 |
Why Network Engineers Use Subnetting
- Better performance — smaller broadcast domains and summarized routing.
- Improved security — micro-segmentation and least-privilege ACLs.
- Reduced broadcast traffic — limits ARP and discovery storms.
- Efficient address allocation — right-size subnets for each workload.
- Simplified management — document CIDR blocks per site or VPC.
Common Subnetting Use Cases
- Enterprise networks — office LANs, Wi‑Fi, and server VLANs.
- Data centers — rack and pod addressing.
- Cloud infrastructure — AWS, Azure, and GCP VPC subnets.
- ISP networks — customer allocations and aggregation.
- Home labs — practice with 192.168.x.x /24 splits.
- Cybersecurity — scope penetration tests and firewall rules.
- Virtual Private Clouds (VPC) — public/private subnet design.
CIDR vs Subnet Mask
Both describe the same boundary; notation differs by context:
| Aspect | CIDR | Subnet mask |
|---|---|---|
| Format | /24 prefix length | 255.255.255.0 dotted decimal |
| Routing | BGP, cloud APIs, documentation | Less common in routing tables today |
| ACLs / firewalls | Often accepted as /24 | Wildcard mask pairs with ACL syntax |
| Learning | Modern standard | Helps visualize bit boundaries |
Common Networking Terms
- IPv4 — 32-bit addresses written as four octets.
- CIDR — classless prefix lengths such as /24.
- Gateway — router IP on a subnet (often first usable host).
- DNS — name resolution; unrelated to mask math but used with IP planning.
- Broadcast Address — reaches all hosts on the L2 segment.
- Private IP — RFC 1918 space not routed on the internet.
- Public IP — globally routable addresses.
- Network Address — identifies the subnet.
- Host Address — assignable device address.
Related Tools
Continue network planning on this site:
References
Disclaimer
This subnet calculator is intended for educational, administrative, and network planning purposes. Always verify production network configurations, routing tables, and cloud provider limits before deployment.
ip subnet calculator — frequently asked questions
Subnetting divides a larger IP network into smaller subnetworks. Each subnet has its own network address, broadcast address, and range of usable host addresses defined by a subnet mask or CIDR prefix.
Classless Inter-Domain Routing (CIDR) writes the prefix length after a slash, such as /24. It replaces legacy class A/B/C sizing and is used for routing on the modern internet.
A typical /24 (255.255.255.0) has 256 total addresses and 254 usable hosts when the network and broadcast addresses are reserved.
The broadcast address has all host bits set to 1. Packets sent to this address reach every host on that subnet. It is not assigned to a single device.
The network address has all host bits set to 0. It identifies the subnet itself and is not assigned to a host.
Usable hosts = 2^(32 − prefix) − 2 for most subnets. /31 and /32 are special cases used for point-to-point links or single-host networks.
CIDR /24 equals subnet mask 255.255.255.0 and wildcard mask 0.0.0.255 in ACLs.
Yes. RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) use the same math as public space. They are not routed on the global internet.
A wildcard mask is the inverse of the subnet mask. In Cisco ACLs, 0 means “must match” and 1 means “don’t care” for each bit.
Yes. VSPIC runs calculations in your browser with no signup required.
Next step for ip subnet calculator
Continue with ip lookup on VSPIC.
Related Tools
Explore more free VSPIC tools for IP, DNS, security, and network diagnostics.
IP Lookup
Look up any IP address for ISP, location, and ASN details
Use Free →IP Geolocation
Map IP addresses to country, city, and coordinates
Use Free →IPv6 Test
Check if your connection supports IPv6 addressing
Use Free →Hostname Lookup
Resolve a domain name to its hostname and IP addresses
Use Free →Reverse DNS Lookup
Resolve IP addresses to hostnames via PTR records
Use Free →DNS Lookup
Free DNS lookup tool and DNS checker — query A, AAAA, MX, TXT, NS, CNAME, and SOA records for any domain.
Use Free →WHOIS Lookup
Retrieve domain and IP registration WHOIS records
Use Free →Ping Test
Measure latency to any hostname or IP address
Use Free →
Trusted by Users Who Value Privacy
Always Free
No premium plan ever
100% Private
Files processed in browser
Instant Results
Convert in seconds
Works Everywhere
Any device, any OS