How many usable hosts does a subnet have?
Take 2 to the power of the number of host bits, then subtract two for the network and broadcast addresses. A /24 has 8 host bits, so 256 addresses and 254 usable hosts; a /26 has 6, so 64 addresses and 62 hosts. The two exceptions are /31, which carries two usable addresses because RFC 3021 removed the network and broadcast pair on point-to-point links, and /32, a single host route.
What is the difference between a netmask and a CIDR prefix?
They are two spellings of the same value. The prefix counts the leading 1 bits — /24 means 24 ones — and the netmask writes those same bits as dotted decimal, 255.255.255.0. Every valid netmask is a contiguous run of ones followed by zeros, which is why 255.255.255.0 is legal and 255.0.255.0 is not.
What is a wildcard mask used for?
A wildcard mask is the netmask with every bit inverted, so 255.255.255.0 becomes 0.0.0.255. Cisco IOS access lists, OSPF network statements, and several firewall syntaxes match on it rather than on the netmask — a 1 bit means "ignore this bit". The calculator prints it next to the netmask so you can paste either form.
Which private IP ranges can I use on an internal network?
RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 for private use, and RFC 6598 adds 100.64.0.0/10 for carrier-grade NAT. Pick from 10/8 if you expect to grow — it gives you room to give each site, rack, or VLAN its own /16 without renumbering later.
How do I split a /24 into smaller subnets?
Each additional prefix bit halves the block: a /24 splits into two /25s, four /26s, eight /27s, and so on. Use the divider above — split the block, then split only the halves that need to be smaller. Subnets do not have to be the same size, which is the point of variable-length subnet masking (VLSM); they only have to start on their own boundary, which the divider enforces for you.
Should a router-to-router link use a /30 or a /31?
Use a /31 if both ends support it, which nearly all current routing platforms do. A /30 spends four addresses to deliver two usable ones; a /31 delivers the same two out of two. On a large network that is thousands of addresses returned to the pool. Keep /30 only where an older device or a management tool refuses the /31.
Does this calculator send my addresses anywhere?
No. The math runs in your browser, and the address you calculate appears only in your own URL so the result stays shareable and bookmarkable. Nothing is stored on our side.
Does it handle IPv6?
Not yet — this tool is IPv4 only. IPv6 subnetting is mostly a different exercise anyway: prefixes land on nibble boundaries, /64 is the standard LAN size regardless of host count, and address exhaustion inside a subnet stops being the constraint you plan around.