Free · no sign-up

IPv4 subnet calculator

Enter an IP and its prefix. You can also split the network into equal subnets for VLANs or segmentation.

🔒 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

  1. Type an IP in the network and the CIDR prefix (for example 192.168.10.0 and 24).
  2. Press “Calculate” to see network, broadcast, mask and host range.
  3. To segment, pick a larger prefix under “Split into subnets of” (/26 gives four subnets of 62 hosts).
  4. 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