🌐 Subnet IP Range Calculator
Calculate IPv4 network details, subnet ranges, usable hosts, masks and broadcast addresses.
📊 Subnet Results
Managing IP addresses becomes much easier when you understand how an IPv4 network is divided into smaller subnetworks. Whether you are configuring a home network, planning an office infrastructure, assigning addresses to servers, or studying computer networking, knowing the network address, broadcast address, subnet mask, and usable IP range is essential.
The Subnet IP Range Calculator is designed to make these calculations quick and straightforward. Instead of manually converting binary values and calculating address boundaries, you can enter an IPv4 address and choose a CIDR prefix such as /24. The calculator then provides important subnet information, including the network address, broadcast address, subnet mask, wildcard mask, total addresses, and usable host addresses.
You can also enter a traditional subnet mask, such as 255.255.255.0, when you prefer working with dotted-decimal notation.
What Is a Subnet IP Range Calculator?
A Subnet IP Range Calculator is a networking utility that determines the boundaries and characteristics of an IPv4 subnet.
An IPv4 address contains 32 bits, normally represented as four decimal octets. A CIDR prefix tells you how many of those bits belong to the network portion.
For example:
/24uses 24 bits for the network./16uses 16 bits for the network./30uses 30 bits for the network./32represents a single IPv4 address.
The calculator uses this information to determine exactly which addresses belong to the subnet.
For a typical /24 network such as 192.168.1.25/24, the network begins at 192.168.1.0 and ends at 192.168.1.255. The usual host range is 192.168.1.1 through 192.168.1.254.
How to Use the Subnet IP Range Calculator
Using the calculator requires only a few pieces of information.
Step 1: Enter the IPv4 Address
Enter a valid IPv4 address into the IPv4 Address field.
For example:
192.168.1.25
An IPv4 address must contain four numerical sections separated by periods, with each section ranging from 0 to 255.
Step 2: Select a CIDR Prefix
Choose the appropriate CIDR prefix from the dropdown menu.
Examples include:
/8/16/20/24/27/30/32
The calculator uses the selected prefix to determine the size of the subnet.
Step 3: Optionally Enter a Subnet Mask
Instead of relying on the CIDR prefix, you can enter a subnet mask such as:
255.255.255.0
This is useful when your network configuration is provided in traditional subnet-mask notation.
If a valid subnet mask is entered, the calculator determines the corresponding CIDR prefix.
Step 4: Select Calculate
Click Calculate to process the information.
The calculator displays a detailed breakdown of the subnet, including its network boundaries and available host addresses.
Step 5: Review or Share the Results
After the calculation, you can review the results directly. The tool also provides options to copy the results or share them, which can be useful when documenting network configurations or communicating subnet details with colleagues.
What Information Does the Calculator Provide?
The calculator produces several important networking values.
CIDR Notation
CIDR, or Classless Inter-Domain Routing, expresses an IP network using an IP address followed by a slash and prefix length.
For example:
192.168.1.0/24
The /24 indicates that 24 of the 32 IPv4 bits represent the network portion.
Subnet Mask
The subnet mask provides the same network-boundary information in dotted-decimal format.
For example:
255.255.255.0
is equivalent to:
/24
Wildcard Mask
The wildcard mask is the inverse of the subnet mask.
For a /24 subnet:
- Subnet mask:
255.255.255.0 - Wildcard mask:
0.0.0.255
Wildcard masks are particularly relevant in certain network configuration and access-control scenarios.
Network Address
The network address identifies the beginning of the subnet.
For:
192.168.1.25/24
the network address is:
192.168.1.0
It represents the subnet itself rather than a normal host address.
Broadcast Address
The broadcast address identifies the final address in an IPv4 subnet.
For 192.168.1.25/24, the broadcast address is:
192.168.1.255
In conventional IPv4 subnetting, this address is reserved for broadcast communication.
First and Last Usable IP
For conventional subnets from /1 through /30, the calculator identifies the addresses immediately after the network address and immediately before the broadcast address.
For example:
- Network:
192.168.1.0 - First usable:
192.168.1.1 - Last usable:
192.168.1.254 - Broadcast:
192.168.1.255
Total Addresses
The total number of addresses in a subnet is calculated from the number of host bits.
The basic formula is:
Total Addresses = 2^(32 − Prefix Length)
For a /24 network:
2^(32 − 24) = 256
So a /24 subnet contains 256 IPv4 addresses.
Usable Host Addresses
For conventional IPv4 networks with prefixes /30 or shorter, two addresses are normally reserved for the network and broadcast addresses.
The commonly used formula is:
Usable Hosts = Total Addresses − 2
Therefore, a /24 network has:
256 − 2 = 254 usable host addresses
The calculator also handles /31 and /32 differently because these prefixes have specialized addressing behavior.
Practical Example 1: Small Office Network
Imagine an office has been assigned:
192.168.10.45/24
You enter the IP address and select /24.
The calculator determines:
- Network Address:
192.168.10.0 - Subnet Mask:
255.255.255.0 - Broadcast Address:
192.168.10.255 - First Usable IP:
192.168.10.1 - Last Usable IP:
192.168.10.254 - Total Addresses: 256
- Usable Hosts: 254
This immediately shows the administrator the boundaries of the network and the range available for devices such as computers, printers, access points, and servers.
Practical Example 2: Smaller Subnet for Network Devices
Suppose you need a smaller subnet for a group of networking devices and are working with:
10.20.30.65/26
A /26 network contains 64 total addresses.
The corresponding subnet boundaries are:
- Network Address:
10.20.30.64 - First Usable IP:
10.20.30.65 - Last Usable IP:
10.20.30.126 - Broadcast Address:
10.20.30.127 - Total Addresses: 64
- Usable Hosts: 62
This can be useful when a full /24 network would provide considerably more addresses than necessary.
Daily Uses of a Subnet Calculator
Subnet calculations are common in many networking situations.
Home and Small Business Networks
Network administrators can determine the available address range when configuring routers, access points, computers, cameras, printers, and other devices.
Office Network Planning
Businesses often divide larger networks into smaller subnets for different departments, floors, locations, or device groups.
Server Configuration
When configuring servers, administrators need to understand the relationship between an IP address, subnet mask, gateway, and network boundary.
Network Troubleshooting
Subnet information can help identify whether two devices belong to the same network and whether an IP address falls within the expected range.
Networking Education
Students studying IPv4 addressing and subnetting can use the calculator to verify manual calculations and better understand how CIDR prefixes affect network size.
Understanding CIDR Prefixes
The CIDR prefix determines how many addresses a subnet contains.
| CIDR | Total Addresses | Conventional Usable Hosts |
|---|---|---|
| /16 | 65,536 | 65,534 |
| /20 | 4,096 | 4,094 |
| /24 | 256 | 254 |
| /25 | 128 | 126 |
| /26 | 64 | 62 |
| /27 | 32 | 30 |
| /28 | 16 | 14 |
| /29 | 8 | 6 |
| /30 | 4 | 2 |
| /31 | 2 | Specialized |
| /32 | 1 | Specialized |
The smaller the prefix number, the larger the address space. Conversely, a larger prefix creates a smaller subnet.
For example, /24 provides 256 total addresses, while /28 provides only 16.
Benefits of Using the Calculator
A subnet calculator can save considerable time and reduce arithmetic mistakes.
Faster Calculations
Instead of converting IPv4 addresses into binary and manually calculating network boundaries, you can obtain the result almost instantly.
Easy CIDR Conversion
The tool can show the relationship between CIDR notation and dotted-decimal subnet masks.
Complete Network Information
Rather than calculating individual values separately, you receive network, broadcast, usable range, mask, wildcard mask, and address-count information together.
Useful for Planning
The results make it easier to determine whether a proposed subnet has enough addresses for the devices you need to support.
Convenient Result Sharing
The copy and share functions make it easier to move subnet information into documentation, messages, tickets, or network-planning notes.
Tips for Accurate Subnet Calculations
Keep these points in mind when using the tool:
- Make sure the IPv4 address contains exactly four octets.
- Each IPv4 octet must be between
0and255. - Select the CIDR prefix that matches your intended subnet.
- If you enter a subnet mask, make sure it is a valid contiguous mask.
- Remember that total addresses and usable host addresses are not always the same.
/31and/32have special addressing considerations.- Use the network address and broadcast address to understand the complete subnet boundary.
- When planning networks, leave appropriate capacity for future devices.
Frequently Asked Questions
1. What is a subnet IP range?
A subnet IP range is the collection of IPv4 addresses belonging to a particular network segment. It includes the network boundary and, where applicable, the broadcast address and usable host range.
2. What does /24 mean?
A /24 CIDR prefix means that 24 of the 32 IPv4 bits are used for the network portion. It provides 256 total addresses.
3. What is the subnet mask for /24?
The standard dotted-decimal subnet mask for /24 is 255.255.255.0.
4. How many usable hosts are in a /24 network?
A conventional /24 network contains 256 total addresses and normally provides 254 usable host addresses after excluding the network and broadcast addresses.
5. What is a network address?
The network address identifies the subnet itself. It is normally the first address in the subnet and is not assigned to a conventional host.
6. What is a broadcast address?
The broadcast address is normally the final address in an IPv4 subnet. It can be used to communicate with hosts across the subnet through broadcast traffic.
7. What is a wildcard mask?
A wildcard mask is the inverse of a subnet mask. For example, the wildcard mask corresponding to 255.255.255.0 is 0.0.0.255.
8. Can I enter a subnet mask instead of a CIDR prefix?
Yes. The calculator allows you to enter a valid dotted-decimal subnet mask, such as 255.255.255.0, and determines its corresponding prefix length.
9. Can the calculator handle /31 and /32 networks?
Yes. The calculator supports CIDR prefixes from /8 through /32 and applies specialized address-count handling for /31 and /32.
10. Why is subnetting important?
Subnetting allows an IP address space to be divided into smaller logical networks. This can help with network organization, address allocation, traffic management, and infrastructure planning.
Final Thoughts
The Subnet IP Range Calculator provides a convenient way to understand and calculate IPv4 network information. By entering an IP address and CIDR prefix—or a valid subnet mask—you can quickly determine the network address, broadcast address, usable IP range, subnet mask, wildcard mask, and number of available addresses.
Whether you are learning subnetting, configuring an office network, planning server infrastructure, or troubleshooting an existing network, having these values together can make IPv4 network planning much more straightforward.