Subnet and CIDR basics: how do you read a subnet calculator result?
AdminKit explains how to read a subnet calculator result: given an address and a CIDR prefix like /24, it returns the network address, the broadcast address (IPv4 only), the usable host range between them, and the total host count — because the prefix length is what splits any IP address into a fixed network portion and a variable host portion.
By AdminKit team, Netbase JSC · Updated
What CIDR notation actually encodes
Before CIDR (Classless Inter-domain Routing), IPv4 addresses were divided into rigid classes (A, B, C) with fixed-size networks, which wasted huge amounts of address space on organizations that needed something in between. Today, regional registries such as RIPE NCC allocate address space to their members using exactly this CIDR notation, rather than the old fixed-size classes. CIDR replaced that with a single, flexible idea: write the prefix length directly after the address, as in 192.168.1.0/24, where the number states exactly how many of the address’s leading bits are fixed as the “network” portion. Every bit after that prefix length is the “host” portion — free to vary across every device on that subnet. A /24 fixes 24 bits and leaves 8 free, giving 2^8 = 256 total addresses; a /28 fixes 28 bits and leaves only 4 free, giving 2^4 = 16 addresses. AdminKit’s subnet calculator does this arithmetic for you, entirely in your browser, for both IPv4 and IPv6.
Reading an IPv4 result
For IPv4, a subnet calculator result has four parts worth understanding:
- Network address — the first address in the range, with every host bit set to zero. This identifies the subnet as a whole; it isn’t assignable to an individual device.
- Broadcast address — the last address in the range, with every host bit set to one, reserved for sending a single message to every host on the subnet simultaneously. Also not assignable to a device.
- Usable host range — every address between the network and broadcast addresses, which is the actual pool of addresses you can assign to devices.
- Host count — how many usable addresses that range contains, always 2 less than the subnet’s total address count (to exclude the network and broadcast addresses), except for the two cases below.
The two standard exceptions are worth knowing: a /31 subnet, defined by RFC 3021 specifically for point-to-point links between two routers, treats both of its two addresses as usable, since a link with exactly two endpoints has no meaningful broadcast domain to reserve an address for. A /32 is a single host route with no subnet structure at all.
Reading an IPv6 result
IPv6 changes two things. First, there’s no broadcast address at all — IPv6 dropped broadcast in favor of multicast for one-to-many traffic, so a calculator doesn’t subtract one from the usable range the way it does for IPv4. Second, subnet sizes in IPv6 are conventionally far larger than IPv4 ever used: a /64 is the standard size for any subnet that devices connect to directly, giving 2^64 addresses — a number large enough that address exhaustion within a single subnet is not a practical concern, ever. That size isn’t arbitrary generosity; it’s a structural requirement of Stateless Address Autoconfiguration (SLAAC), which depends on a 64-bit host portion for a device to generate its own address without a DHCP server. See IPv6 and home devices: why no NAT means a firewall for what that large, directly-routable address space means for securing each device individually, since there’s no NAT boundary hiding them behind a single shared address the way IPv4 commonly does.
Why subnetting matters beyond the math
Subnetting isn’t just an arithmetic exercise — it’s how networks are segmented for both operational and security reasons. Splitting one large address block into smaller subnets lets an organization isolate a guest Wi-Fi network from internal servers, give each office location its own routable segment, or separate IoT devices from the rest of a network so a compromise in one segment doesn’t automatically expose the others. The same CIDR math also determines whether a given address falls inside a reserved range worth recognizing on sight: the private ranges defined by RFC 1918 (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), or the 100.64.0.0/10 block ISPs use for carrier-grade NAT — both listed alongside every other reserved IPv4 block in IANA’s IPv4 Special-Purpose Address Registry. See what is CGNAT? for why an address in that specific range behaves differently from an ordinary private IP.
Reverse DNS zones follow the same boundaries
Subnet boundaries show up again outside pure addressing math: a reverse DNS zone (in-addr.arpa for IPv4) is traditionally delegated one octet at a time, which lines up cleanly with a /24 but not with a smaller subnet like a /28 carved out of one — the classic case classless reverse delegation exists to solve. If you’re assigning a PTR record to a host inside a subnet you’ve just calculated, AdminKit’s reverse DNS tool is the quickest way to confirm what that address currently resolves to before you add or change anything. This guide is part of AdminKit’s DNS cluster of DNS and addressing guides and tools.
Using the calculator in practice
- Enter an address with a prefix (
192.168.1.0/24) or a dotted mask (10.0.0.0/255.255.0.0) for IPv4, or an address with a prefix (2001:db8::/64) for IPv6, in AdminKit’s subnet calculator. - Check the usable range before assigning addresses — accidentally assigning the network or broadcast address to a device is a classic, avoidable IPv4 misconfiguration.
- Remember it’s arithmetic, not a live scan — it tells you which addresses belong to a subnet on paper, not which ones are actually in use; pair it with your router’s connected-device list or a reachability check for that.
- For IPv6, expect a /64 by default unless you have a specific reason to subdivide it further, since most consumer and enterprise equipment assumes a /64 per subnet for SLAAC to work correctly.
See our network engineers and ISPs page for how this arithmetic fits into planning several VLANs or client allocations at once.
This guide is general information, not a security audit of your specific network — see our disclaimer for what AdminKit's guidance does and does not commit to.
Frequently asked questions
What does the /24 in an address like 192.168.1.0/24 mean?
The number after the slash is the prefix length — how many of the address's leading bits are fixed as the network portion, defined by CIDR (RFC 4632). /24 means the first 24 bits (the first three of four octets in IPv4) identify the network, leaving the remaining 8 bits to identify individual hosts within it, giving 256 total addresses in that /24.
Why are the network and broadcast addresses not usable by a device?
The network address (all host bits set to zero) identifies the subnet itself, and the broadcast address (all host bits set to one) is reserved for sending a message to every host on that subnet at once — neither represents a single, addressable device, so both are excluded from the usable range. The one standard exception is a /31 subnet (RFC 3021), defined specifically for point-to-point links, where both addresses in the pair are usable since there's no broadcast domain with only two hosts.
Does IPv6 have a broadcast address like IPv4?
No — IPv6 has no broadcast concept at all; it uses multicast instead for one-to-many delivery. That's one reason IPv6 subnets don't subtract a broadcast address from their usable range the way IPv4 does, and why an IPv6 /64 subnet's entire address space (2^64 addresses) is, in principle, available to hosts.
Why is a /64 the standard IPv6 subnet size, when it's vastly larger than any network needs?
A /64 is sized for Stateless Address Autoconfiguration (SLAAC, RFC 4862), which lets a device generate its own address within the subnet without a DHCP server, using an interface identifier that occupies the remaining 64 bits. That mechanism assumes a 64-bit host portion; using a smaller host portion would break SLAAC for devices on that subnet, which is why /64 is the near-universal convention for any subnet IPv6 devices actually connect to, regardless of how few devices are on it.
Can a subnet calculator tell me whether an address is actually in use on my network?
No — it's pure address-plan arithmetic: given an address and prefix, it computes which addresses mathematically belong to that subnet. It has no visibility into which of those addresses are actually assigned to a live device; confirming that requires a separate reachability check, such as a ping sweep or your router's connected-devices list, not a subnet calculation.
Sources
- RFC 4632 — Classless Inter-domain Routing (CIDR)
- RFC 1918 — Address Allocation for Private Internets
- RFC 3021 — Using 31-Bit Prefixes on IPv4 Point-to-Point Links
- IANA — IPv4 Special-Purpose Address Registry
- RIPE NCC — Réseaux IP Européens Network Coordination Centre (allocates address space using CIDR)
Want AdminKit to watch this for you?
Free checks tell you the state today. Protective DNS and monitoring tell you when it changes.
Talk to an expert
Huy Nguyen (David), Founder & CEO, Netbase JSC
Ask whether this fix applies to your setup, or get a second pair of eyes on your DNS and mail records.