IPv4 subnet calculator
Enter an IP and its prefix. You can also split the network into equal subnets for VLANs or segmentation.
Resulting subnets
| # | Network address | First and last host | Broadcast |
|---|
Everything is computed in your browser. Handy for VLANs, segmentation and firewall rules.
🔒 The calculation runs in your browser; no data is sent.
What is a subnet and why calculate it?
A subnet is a range of IP addresses sharing the same network prefix. CIDR notation (192.168.10.0/24) says how many bits belong to the network: /24 leaves 8 bits for hosts, that is 256 addresses, of which 254 are usable because the first is the network address and the last the broadcast. Splitting a large network into subnets is the basis of VLANs, segmentation and the firewall rules that stop an infected device from reaching the servers.
The calculator takes an IPv4 address and a prefix and returns network address, broadcast, netmask and wildcard, first and last host, usable hosts, class and type (private RFC 1918 or public) and the mask in binary. It can also split the network into subnets of a larger prefix and list each one.
How to use the tool
- Type an IP in the network and the CIDR prefix (for example 192.168.10.0 and 24).
- Press “Calculate” to see network, broadcast, mask and host range.
- To segment, pick a larger prefix under “Split into subnets of” (/26 gives four subnets of 62 hosts).
- Use the ranges to define VLANs and the firewall rules between segments.
Example
192.168.10.0/24 split into /26 yields four subnets: .0, .64, .128 and .192, each with 62 usable hosts and mask 255.255.255.192. One for servers, one for users, one for guests and one for printers and cameras, with the firewall between them.
Frequently asked questions
Why does a /24 have 254 hosts and not 256?
Because the first address identifies the network and the last is the broadcast. The exceptions are /31 (point-to-point links, 2 usable addresses) and /32 (a single address).
Which ranges are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918). They are not routed on the internet; NAT translates them to the public IP on the way out.
How many subnets do I need?
At least one per trust level: servers, users, guests, IoT (cameras, printers, TVs) and management. ISO 27001 covers it in control A.8.22.
Is anything sent?
No. Everything is computed in your browser and no data is transmitted.
Want a full review of your company?
These tools show what is visible from the outside. A T.I. RESCUE pentest or audit covers the rest: systems, people and processes.
Talk to a specialist See our cybersecurity consulting service →Related tools
What is my IP?
This is the address your connection uses on the internet, and what a site sees when you visit.
Try it →DNS, MX and blacklist lookup
The tool we use when “the email never arrives”: it shows what other servers see of your domain and why they might reject it.
Try it →Cloud speed test
Not your ISP's test: it measures the real path to a server in Europe, like when you use Microsoft 365, a VPN or a cloud system. Close downloads and video calls before measuring.
Try it →HTTP security headers checker
Security headers protect your site's visitors. See which ones you send and which are missing.
Try it →