IPv4 Subnet Calculator
Enter an IPv4 address and a CIDR prefix or subnet mask. Results update as you type.
IPv6 Subnet Calculator
Enter an IPv6 address and a prefix length to find the network, address range and size.
IP Subnet Calculator: Calculate IPv4 & IPv6 Networks Easily
Our free online IP Subnet Calculator helps you quickly calculate IPv4 and IPv6 subnet details, including the network address, broadcast address, CIDR notation, subnet mask, usable host range, binary conversion, prefix length and IP ranges. It supports both IPv4 and IPv6, which makes it useful for network engineers, IT professionals, students, cybersecurity analysts and server administrators.
Quick answer: the address 192.168.1.1 with a /24 mask is in the network 192.168.1.0, the broadcast address is 192.168.1.255, and the 254 usable hosts run from 192.168.1.1 to 192.168.1.254. Enter your own address and CIDR or subnet mask above to see the details instantly.
What Is IP Subnetting?
IP subnetting is the process of dividing a larger network into smaller subnetworks, called subnets. It improves network organization, performance, security and efficient use of IP addresses. A subnet helps devices communicate within a network while reducing unnecessary traffic, and it is widely used in routers, switches, enterprise networks, cloud infrastructure, internet service providers and data centers. Every subnet has a network address, a broadcast address (in IPv4), a usable host range, a subnet mask and a CIDR prefix.
What Is IPv4?
IPv4 (Internet Protocol version 4) is the most widely used internet addressing system. It uses 32-bit addresses written in dotted decimal format, such as 192.168.1.1. IPv4 subnetting uses subnet masks and CIDR notation, with common masks like 255.255.255.0, 255.255.0.0 and 255.0.0.0. Private networks use the ranges 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, while public addresses are routable on the internet.
What Is CIDR?
CIDR stands for Classless Inter-Domain Routing. CIDR notation, such as /24, /16 or /64, says how many bits belong to the network portion of an address. A smaller number gives a larger network and a bigger number gives a smaller one. It replaced the old class A, B and C system and improves address allocation and routing across the internet. The table shows common IPv4 prefix lengths.
| CIDR | Subnet mask | Total addresses | Usable hosts |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /29 | 255.255.255.248 | 8 | 6 |
| /30 | 255.255.255.252 | 4 | 2 |
| /31 | 255.255.255.254 | 2 | 2 |
| /32 | 255.255.255.255 | 1 | 1 |
A /31 is used for point-to-point links and has two usable addresses, and a /32 identifies a single host.
What Is IPv6?
IPv6 (Internet Protocol version 6) is the newer addressing system created to solve IPv4 address exhaustion. It uses 128-bit hexadecimal addresses such as 2001:db8::1, offering a vast number of addresses and better routing efficiency. Most IPv6 networks use a /64 prefix for each subnet, which supports automatic address configuration (SLAAC). IPv6 is widely used in cloud computing, internet service providers, data centers, IoT devices and enterprise networks. Unlike IPv4, it has no broadcast address.
Who Uses an IP Subnet Calculator?
Network engineers, system administrators, IT professionals, cybersecurity analysts, cloud and DevOps engineers, CCNA and Network+ students, internet service providers, server administrators, data center technicians, web hosting companies and software developers all use it. It simplifies complex calculations, reduces networking mistakes, saves time when configuring routers and switches, and helps with network planning. For converting between number systems, the binary calculator is a useful companion.
How to Use This IP Subnet Calculator
Enter an IP address
For example 192.168.1.1, 10.0.0.1 or 2001:db8::1.
Enter the CIDR or subnet mask
Use CIDR like /24 or a mask like 255.255.255.0. For IPv6, enter the prefix length such as /64.
Click Calculate
The results also update as you type or move the slider.
Read the results
See the network address, broadcast address, usable host range, total hosts, subnet mask, binary form, IPv6 prefix details and address ranges.