IP Subnet Calculator - Network, Broadcast and Hosts From Any CIDR
Subnetting by hand is where off-by-one errors live. Enter an address like 192.168.1.10/24 and get every field, checked the bitwise way.
How to use the IP Subnet Calculator
- Type an IPv4 address with its prefix, e.g. 192.168.1.10/24.
- Click Calculate subnet to see all fields.
- To split: enter a larger prefix (e.g. 26) and click Show split view.
- Each resulting subnet is listed with its hosts and broadcast.
How it works
The calculator converts the address to a 32-bit integer and applies the netmask derived from the prefix: network = address AND mask, broadcast = network OR the wildcard (inverted) mask. Usable hosts are 2^(32-prefix) − 2 for normal prefixes, because the network and broadcast addresses are reserved; for /31 and /32 the usable count is shown as 0 in classic terms (point-to-point /31 links are the RFC 3021 exception, and a /32 is a single host route). The split view divides the network into equal subnets of the requested prefix - a /24 split at /26 gives exactly 4 subnets of 64 addresses each. Private-range detection covers 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
Worked example
192.168.1.10/24 → network 192.168.1.0, broadcast 192.168.1.255, hosts 192.168.1.1 to 192.168.1.254 (254 usable).
Frequently Asked Questions
Is this calculator free?
Yes - completely free, no sign-up.
Why are usable hosts 2 fewer than total?
The first address names the network itself and the last is the broadcast address; neither can be assigned to a host on a normal subnet.
What about /31 and /32?
A /32 is a single address (a host route). A /31 has 2 addresses and no spare hosts in classic subnetting, though RFC 3021 allows both to be used on point-to-point links.
Does it support IPv6?
This calculator is IPv4-only, honestly scoped - IPv6 subnetting follows different conventions (no broadcast, /64 standard subnets).
Is anything uploaded?
No. All arithmetic runs in your browser.
Related Developer Tools
URL Parser & Builder
Break a URL into protocol, host, port, path, query parameters and hash - then edit and rebuild it.
URL Encoder & Decoder
Percent-encode text and URLs safely, with a per-character breakdown table.
Meta Tag Generator
Generate a ready-to-paste HTML meta block with a SERP-style preview.