Use our IP Subnet Calculator to easily calculate the network, broadcast, and wildcard addresses, as well as the number of hosts in a given subnet. Simply enter the IP address and subnet mask, and get accurate results for your networking needs.
A subnet (short for subnetwork) is a logical subdivision of a larger IP network. It helps improve network performance, enhance security, and optimize the allocation of IP addresses. In modern networking, subnetting is crucial for organizing large networks efficiently and ensuring seamless communication between devices.
The backbone of networking is the TCP/IP (Transmission Control Protocol/Internet Protocol) suite, which governs data transmission across the internet and private networks. Every device connected to a network requires a unique IP address, and subnetting allows networks to be divided into smaller, more manageable segments.
Subnetting is the process of splitting a large IP network into smaller subnetworks to improve efficiency and control. This technique helps:
Subnetting is essential in enterprise networks, cloud infrastructure, and data centers, where precise IP address management is required for scalability and security.
Every IP address consists of two main parts:
In IPv4, a subnet mask is used to separate these two sections. The subnet mask determines how many bits of an IP address belong to the network and how many bits are assigned to hosts.
The introduction of CIDR (Classless Inter-Domain Routing) replaced the older class-based system (Class A, B, C) by allowing flexible subnet mask lengths. CIDR notation (e.g., 192.168.1.0/24) specifies how many bits are used for the network portion of the address. This system allows for more efficient IP address allocation.
In IPv6, subnetting works differently. Instead of a subnet mask, IPv6 uses a prefix length (e.g., /64), which determines how much of the address is dedicated to the network. IPv6 was introduced to overcome the limitations of IPv4, providing a vastly larger pool of unique addresses.
Routers play a vital role in subnetted networks by directing data between different subnets. Each subnet operates as an independent network, and routers ensure that traffic flows between them efficiently. They act as a gateway, filtering traffic and improving security by segmenting different parts of a network.
Manually calculating subnet addresses, network ranges, and host limits can be time-consuming. Our IP Subnet Calculator simplifies the process by instantly providing:
Whether you're a network administrator, IT professional, or student, our tool helps you plan and manage subnets effortlessly.
Below is a reference table for common IPv4 subnet configurations.
Below is a table showing the prefix size, network mask, and usable hosts per subnet for common subnet sizes.
Prefix size | Network mask | Usable hosts per subnet |
/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 |