UK’s trusted IT infrastructure partner since 2003
Servnet
ToolsConfiguratorGet in Touch
Free · live · RFC-correct

Subnet calculator

Enter an IPv4 address and prefix to get the network, broadcast, host range, usable hosts, mask, wildcard and address scope — live, with a binary bit-grid and a subnet splitter. Correct on the edge cases other tools get wrong.

1 · IP address

2 · Prefix / mask

/24

3 · Split into subnets

/26

Divides this block into 4 × /26 subnets. Need different sizes? Use the VLSM calculator →

192.168.1.0/24
Private network · RFC 1918
Netmask255.255.255.0
Wildcard0.0.0.255
Network192.168.1.0
Broadcast192.168.1.255
Host range192.168.1.1 – 192.168.1.254
Usable hosts254
Total addresses256
ClassC
Network bits vs host bits1100000010101000000000010000000019216810Network (24 bits)Host (8 bits)
How the block is used254 usable hostsnetwork192.168.1.0broadcast192.168.1.255192.168.1.1192.168.1.254
Address scopePrivate10/8 · 172.16/12 · 192.168/16CGNAT100.64/10Specialloopback · link-local · docPublicglobal unicast
Subnet allocation#1#2#3#4Each block sized to its requirement; grey = free space.
192.168.1.0/26
192.168.1.64/26
192.168.1.128/26
192.168.1.192/26

Calculated locally in your browser — exact, RFC-correct. Servnet designs, supplies & supports Cisco, Aruba, Juniper & Fortinet networks.

How to read it

The prefix decides everything

An IPv4 address is 32 bits. The prefix (the /n) splits those bits into a network part and a host part. Everything else — how many hosts you get, the broadcast address, the mask — falls out of where that boundary sits. Our bit-grid colours the split so you can see it.

Need different-sized subnets from one block? Use the VLSM calculator. Want the quick reference? The subnet cheat sheet lists every prefix.

Common CIDR prefixes/30255.255.255.2522 hosts/29255.255.255.2486 hosts/28255.255.255.24014 hosts/27255.255.255.22430 hosts/26255.255.255.19262 hosts/25255.255.255.128126 hosts/24255.255.255.0254 hosts/23255.255.254.0510 hosts/22255.255.252.01,022 hosts
VLSM CalculatorCIDR CalculatorIPv6 Subnet CalculatorIP ↔ Binary ↔ HexSubnet Cheat SheetAll networking tools

Subnetting — common questions

What does a subnet calculator do?

It takes an IP address and a prefix length (or subnet mask) and works out the network address, broadcast address, the first and last usable host, the number of usable and total addresses, the subnet mask and wildcard mask, the legacy class, and whether the address is public, private or special-use. Ours does it live as you type, shows the result in binary, detects the address scope, and can split the block into smaller subnets.

What does /24 (or a prefix like /26) mean?

The number after the slash is the prefix length — how many of the 32 bits identify the network. A /24 fixes the first 24 bits (mask 255.255.255.0), leaving 8 bits for hosts → 256 addresses, 254 usable. Each extra bit halves the hosts: /25 = 126 usable, /26 = 62, /27 = 30, /28 = 14, /29 = 6, /30 = 2. Our bit-grid shows exactly where the network/host boundary falls.

How many usable hosts are in a subnet?

For a normal subnet it is 2^(32−prefix) − 2 (you subtract the network and broadcast addresses). So /24 = 254, /26 = 62, /30 = 2. Two special cases: a /31 has 2 usable addresses for point-to-point links (RFC 3021), and a /32 is a single-host route. Many calculators get /31 wrong — ours follows the RFC.

Is this address public or private?

The calculator flags the scope automatically. Private ranges (RFC 1918) are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16; carrier-grade NAT is 100.64.0.0/10 (RFC 6598); 169.254.x.x is link-local (RFC 3927); 127.x.x.x is loopback; 192.0.2/198.51.100/203.0.113 are documentation ranges (RFC 5737). Anything else routable is public (global unicast).

What is the wildcard mask?

The wildcard mask is the bitwise inverse of the subnet mask (e.g. /24 → mask 255.255.255.0, wildcard 0.0.0.255). It is used in access control lists (ACLs) and OSPF on Cisco and other routers to match a range of addresses. The calculator shows it alongside the subnet mask.

Does Servnet design networks?

Yes — as a 24-year UK IT partner we design, supply and support enterprise networks built on Cisco, HPE Aruba, Juniper and Fortinet, from IP addressing and segmentation to switching, routing, Wi-Fi and SD-WAN. This free tool is the planning piece; talk to us for the build.