Subnet Calculator
Calculate and split IPv4 subnets
IPv4 address and options
192.168.1.0/24
Usable hosts: 254
Subnet details
- Broadcast address
- 192.168.1.255
- Usable host range
- 192.168.1.1 – 192.168.1.254
- Hosts / total addresses 2 reserved addresses
- 254 / 256
- Subnet mask /24
- 255.255.255.0
- Wildcard mask Inverse mask for ACLs and OSPF
- 0.0.0.255
- Address scope Block: 192.168.0.0/16
- Private (RFC 1918)
32-bit structure
The first 24 bits are the network portion and the last 8 bits are the host portion.
- Network address (binary)
- 11000000.10101000.00000001.00000000
- Subnet mask (binary)
- 11111111.11111111.11111111.00000000
Subnet split
Splitting 192.168.1.0/24 into /26 creates 4 subnets
| # | CIDR | Usable host range | Hosts | Actions |
|---|---|---|---|---|
| 1 | 192.168.1.0/26 | 192.168.1.1 – 192.168.1.62 | 62 | |
| 2 | 192.168.1.64/26 | 192.168.1.65 – 192.168.1.126 | 62 | |
| 3 | 192.168.1.128/26 | 192.168.1.129 – 192.168.1.190 | 62 | |
| 4 | 192.168.1.192/26 | 192.168.1.193 – 192.168.1.254 | 62 |
Showing 1–4 of 4
What is Subnet Calculator?
Enter an IPv4 address and prefix length to calculate the network address, broadcast address, usable host range, and host count for the subnet.
For example, 192.168.1.10/24 gives the network address 192.168.1.0/24, the usable host range 192.168.1.1–192.168.1.254, and 254 usable hosts. You can also split a subnet or work backward from a required host count.
How to Use
- Enter an IPv4 address.
- If you enter a plain IP address, choose a prefix length.
The result updates as you type. You can also size a prefix from a required host count.
Input Formats
| Format | Example | When to use |
|---|---|---|
| Plain IP | 192.168.1.10 | Choose a prefix length and calculate |
| CIDR | 192.168.1.10/24 | Paste CIDR notation directly |
| IP + subnet mask | 192.168.1.10 255.255.255.0 | Calculate from a subnet mask |
Prefix lengths range from 0 to 32. A subnet mask must be a contiguous bit mask such as 255.255.255.0.
How the Calculation Works
Network and broadcast addresses
The network address has all host bits set to 0, and the broadcast address has all host bits set to 1.
Usable hosts
For /0 to /30, the usable host count excludes the network and broadcast addresses. A /31 is treated as a point-to-point link with two usable addresses, and a /32 as a single host.
Input address role
The tool shows whether the input is the network address, the broadcast address, or a host address. A /31 is shown as P2P endpoint A or B, and a /32 as a single host.
Address scope
The tool shows an address scope such as private, global, or loopback. The label is a guide based on the network address.
32-bit structure
The address is shown as 32 bits, with the network and host portions in different colors. The subnet mask bits are shown alongside it.
Subnet Splitting
The current network can be divided evenly into a longer prefix. Splitting 192.168.1.0/24 into /26 creates four /26 subnets. Selecting a subnet recalculates the result for that range.
Sizing from a Required Host Count
Enter the number of hosts you need to see a suggested prefix. For example, 50 hosts suggests /26 (62 usable hosts), and 2 hosts suggests /30 (2 usable hosts). For a general two-host subnet, the tool suggests /30; the point-to-point /31 is not included in the suggestion.
Use Cases
- Designing a small LAN or a segment for each office
- Checking subnet splits for VLANs or a cloud VPC
- Finding which network an existing IP address belongs to
- Checking a wildcard mask for ACLs or OSPF
- Learning how subnet masks map to prefix lengths
Frequently Asked Questions
Can I calculate IPv6 addresses?
No. This tool supports IPv4 only. IPv6 uses a different address length and a different model for usable hosts.
My cloud provider reserves five addresses, but the host count does not match.
This tool uses the standard RFC calculation and reserves only the network and broadcast addresses. AWS, Azure, and other providers may reserve additional addresses. Check the provider's documentation when planning a real subnet.
Can I enter an address that is not the network address?
Yes. The tool calculates the subnet that contains the address and shows the network address and usable host range. It also shows the role of the input address.
Things to Keep in Mind
- The usable host count is theoretical. Real networks may use addresses for routers or other reservations.
Last updated:

