Subnet Calculator

Type an IP address, slide the prefix, get the network.

A quick tool I built for the subnetting I do every day — splitting networks in the home lab, planning VLANs, and drilling the math for the CCNA. No sign-up, no data leaves your browser; it all runs client-side.

Calculate a subnet

/
/0/8/16/24/32
Network address192.168.1.0/24
Broadcast address192.168.1.255
First usable host192.168.1.1
Last usable host192.168.1.254
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Total addresses256
Usable hosts254
Address classC
Address typePrivate (RFC 1918)
IP in binary11000000.10101000.00000001.00001010
Mask in binary11111111.11111111.11111111.00000000

Common CIDR sizes

PrefixSubnet maskUsable hosts

Tap any row to load that prefix into the calculator.

How it works:

Enter any IPv4 address and a prefix length (or paste CIDR notation like 192.168.1.10/24 — the prefix is picked up automatically). The calculator works out the network and broadcast addresses, the usable host range, the subnet and wildcard masks, and whether the address is private or public, plus the binary form of the address and mask so you can see the bit boundary the prefix creates.

The /31 and /32 cases are handled the way the standards do: a /31 is a point-to-point link with two usable addresses (RFC 3021), and a /32 is a single host. Everything else is total addresses minus two (network and broadcast).

More networking tools:

The rest of the set: the common ports reference — the ports a network engineer actually looks up, searchable and flagged for the CCNA core — the VLAN planner, for laying out segments before touching the switch — and the CCNA command labs, eighteen playable IOS simulators covering the whole CCNA.