Networking
IPv4 subnet (CIDR) calculator
Work out any IPv4 subnet: network and broadcast address, netmask, wildcard mask, usable host range and how many hosts fit — and split a network into smaller subnets for VLANs.
- Network
- 192.168.1.0/24
- Netmask
- 255.255.255.0
- Wildcard
- 0.0.0.255
- Broadcast
- 192.168.1.255
- Host range
- 192.168.1.1 – 192.168.1.254
- Usable hosts
- 254
- Total addresses
- 256
- Type
- Private (RFC 1918)
4 subnets of /26
- 192.168.1.0/26
- 192.168.1.64/26
- 192.168.1.128/26
- 192.168.1.192/26
How to use it
- Type an address with its prefix, such as 192.168.10.37/24. Any address inside the subnet works.
- Read the network, mask, host range and host count.
- To plan VLANs, set a longer prefix to split the network (e.g. a /24 into four /26).
Formula and method
addresses = 2^(32 − prefix) network = address AND netmask broadcast = network + addresses − 1 usable hosts = addresses − 2 (/31: 2 point-to-point hosts, RFC 3021; /32: 1) subnets of /n = 2^(n − prefix)
Worked example
192.168.1.10/24: 2^(32 − 24) = 256 addresses, network 192.168.1.0, broadcast 192.168.1.255, so hosts 192.168.1.1 – 192.168.1.254 (254 usable), netmask 255.255.255.0, wildcard 0.0.0.255. Split into /26: 2^(26 − 24) = 4 subnets of 64 addresses.
FAQ
Which ranges are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918). 100.64.0.0/10 is carrier-grade NAT space (RFC 6598), used by ISPs and by some VPNs such as Tailscale.
Why are two addresses not usable?
The first address identifies the network and the last is the broadcast address. Point-to-point /31 links (RFC 3021) are the exception and use both.
What is a wildcard mask?
The inverted netmask, used in Cisco and MikroTik ACLs and some routing configs: 0 bits must match, 1 bits are ignored.
Related tools
- WireGuard config generator with QR codes — Create WireGuard server and peer configs with keys generated in your browser, plus QR codes for phones.
- Nginx & Caddy reverse proxy config generator — Generate an Nginx or Caddy reverse-proxy config with HTTPS, WebSockets, HSTS and upload limits for a self-hosted app.
Formulas reviewed November 27, 2026 by Novian · runs entirely in your browser · methodology