About this tool
Subnetting is the art of slicing one network into rooms, and CIDR notation is its shorthand: an address, a slash, and the number of leading bits that name the network itself. Everything else is arithmetic on that single fact. The bits after the prefix belong to hosts, so a /24 leaves 8 bits — 256 addresses — of which the first is the network's own name and the last is its broadcast shout, leaving 254 for actual machines. The mask is just the prefix written as an address — 24 one-bits in a row — and the wildcard is its mirror image, used by firewall rules that prefer to match on the host bits directly.
This calculator does the bit arithmetic in your browser and shows every derived value a network engineer reaches for: network and broadcast addresses, first and last usable hosts, total and usable counts, dotted mask and wildcard, and the address class of the original IP. The two special cases are handled the way modern practice treats them: a /31 point-to-point link uses both addresses for hosts (RFC 3021), and a /32 is a single host route.
How to use it
- Type an IPv4 address with its prefix, like 192.168.1.10/24.
- Press Calculate subnet.
- Read the full breakdown — network, broadcast, host range, counts, mask and wildcard.
Good to know
- The address you type need not be the network address — the calculator finds the subnet it belongs to, which is the usual real-world question.
- Usable hosts double with every step down in prefix: /25 has 126, /24 has 254, /23 has 510. Pick the smallest subnet that fits with room to grow.
- Private ranges (10/8, 172.16/12, 192.168/16) are where subnetting is yours to design; public space belongs to your provider's plan.
Frequently asked questions
Why are two addresses always missing from the usable count?
The all-zeros host part names the network itself and the all-ones part is the broadcast address — every device listens to the second, none may own either. The /31 and /32 exceptions are noted on the page.
What is a wildcard mask used for?
Some systems — Cisco access lists, OSPF statements — match traffic with the mask inverted: ones where the host bits are. The calculator shows it so you never have to flip 32 bits by hand.
Does this support IPv6 subnets?
No — IPv6 prefix maths uses the same idea at 128 bits, and the IPv4/IPv6 Converter in this section covers address translation. This calculator stays exact for IPv4.
More Network tools
IP Lookup
Look up an IP address: its hostname, version and address class — or leave it blank to inspect your own.
DNS Lookup
Read the live DNS records for any domain — A, AAAA, MX, NS, TXT, CNAME, SOA and CAA, straight from DNS.
HTTP Headers Checker
See the exact response headers any web address sends — status, security headers, caching and server clues.
SSL Checker
Inspect any site's HTTPS certificate: who issued it, when it expires, and which names it covers.
Whois Lookup
Read the public Whois record for a domain: registrar, creation date, expiry and registration status.
Redirect Checker
Follow a web address hop by hop: every redirect, its status code, and where the chain finally lands.
Making videos too? Try our YouTube Video Analyzer, or browse the full Toolkit and the free YouTube tools.