Subnet Calculator
Network, broadcast, mask and host range for any IPv4 address and CIDR prefix — plus split, VLSM and range-to-CIDR tools.
IP-in-subnet checker
IPv4 only. /31 subnets have 2 usable addresses (point-to-point links) and /32 names a single host — both are shown correctly.
Base network: 192.168.1.0/24 — change it in the Calculator tab.
Each split doubles the prefix by one bit per power of two.
| # | Network | Broadcast | Usable range | Usable hosts |
|---|
Base network: 192.168.1.0/24 — change it in the Calculator tab.
Segments are allocated biggest first, each getting the smallest block that fits.
| Segment | Hosts needed | Network | Usable hosts | Usable range |
|---|
| CIDR block | Network | Broadcast | Addresses |
|---|
Subnet cheat sheet — /8 to /32
| Prefix | Subnet mask | Wildcard | Total addresses | Usable hosts |
|---|
/31 has 2 usable addresses (point-to-point link, RFC 3021) and /32 is a single host. All other prefixes have total addresses minus 2 usable hosts.
How to use the Subnet Calculator
- Enter an IP address (or CIDR like 192.168.1.10/24) and set the prefix length.
- Read the network, broadcast, mask and usable host range, then copy the summary or download it as CSV.
- Split the network, plan VLSM blocks or convert an IP range to CIDR in the tabs below.
- Use the checker to test whether another IP sits inside the subnet.
Subnet Calculator FAQs
How do I split a subnet into equal parts?
Open the Split subnets tab, pick how many equal pieces you want (2, 4, 8, 16, 32 or 64) and click Split. Splitting a /24 into 4 gives four /26 subnets — 192.168.1.0/26, .64/26, .128/26 and .192/26 — each with 62 usable hosts. Every split doubles the prefix length by one for each power of two.
What is VLSM and when should I use it?
VLSM (Variable Length Subnet Masking) sizes each subnet to the hosts it actually needs instead of cutting the network into equal pieces. Enter the host count for each segment and the planner assigns the biggest segment first, giving each one the smallest block that fits — for example 50 hosts get a /26 (62 usable), 20 hosts a /27 (30 usable) and 10 hosts a /28 (14 usable). It wastes far fewer addresses than equal splits.
How do I convert an IP range to CIDR notation?
Use the Range to CIDR tab: enter the first and last address of the range. The tool returns the smallest list of CIDR blocks that covers exactly that range and nothing more — 192.168.1.0 to 192.168.1.255 becomes a single 192.168.1.0/24, while 10.0.0.0 to 10.0.0.7 becomes 10.0.0.0/29.
How many usable hosts does a subnet have?
Usually total addresses minus 2, because the network address (all host bits zero) and the broadcast address (all host bits one) cannot be assigned to devices. A /24 therefore has 254 usable hosts. A /31 is the exception: both of its addresses are usable as a point-to-point link, and a /32 names a single host.
Does the calculator support IPv6?
No — this calculator covers IPv4 only (32-bit addresses with CIDR prefixes from /0 to /32). IPv6 uses 128-bit addresses and a different prefix system, so its maths does not fit this tool.
Free Subnet Calculator — IPv4 CIDR, Subnet Mask, Split, VLSM & Range to CIDR
This free subnet calculator turns any IPv4 address and CIDR prefix into the full subnet picture — network and broadcast addresses, subnet and wildcard masks, usable host range, address class and type, and a binary view of the address and mask. The split, VLSM planner and range-to-CIDR tools help you carve one network into right-sized pieces and turn any start and end address into the smallest set of CIDR blocks.
How to use it, step by step
- Enter an IP address, with or without its CIDR prefix, and set the prefix length.
- Read the network details, host range and binary view, then copy the summary or download it as CSV.
- Split the network into equal subnets, plan VLSM blocks by host count, or convert an IP range to CIDR.
- Test any other IP in the checker to see whether it belongs to this subnet.
Popular uses
- Network planning: size a VLAN or office LAN and split it into equal or VLSM subnets.
- CCNA and exam study: see the binary maths and the full /8 to /32 cheat sheet behind every prefix.
- Troubleshooting: check whether two devices really share a subnet.
- Cloud and firewall work: convert an IP range into exact CIDR blocks before writing rules.
