Subnet calculator: IPv4 and IPv6, instantly
How does this check work, and what does the result tell you?
Enter a CIDR or an address and mask and AdminKit returns the network address, broadcast address, usable host range and host count, for IPv4 and IPv6, calculated entirely in your browser as you type with nothing sent to a server at any point.
Part of the IP & network cluster — more tools, guides and terms on ip & network.
- Network address
- 192.168.1.0
- Broadcast address
- 192.168.1.255
- Subnet mask
- 255.255.255.0 (/24)
- Wildcard mask
- 0.0.0.255
- Usable host range
- 192.168.1.1 – 192.168.1.254
- Usable hosts
- 254 (of 256 total addresses)
What the result means
The usable host range excludes the network and broadcast addresses for ordinary IPv4 subnets; /31 and /32 are exceptions with their own usable ranges, as shown above.
Next step
Check your own public IP, or look up DNS records for a domain in this range.
Keep this result
Copy a link to this check so you can share it or run it again later. Want a heads-up when this result changes? Talk to our team and we'll set it up for you.
How it works and limits
Enter an address with a CIDR prefix (RFC 4632) such as 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 for IPv6 (2001:db8::/64). The result updates as you type — every calculation happens with plain
arithmetic in your browser’s JavaScript engine, nothing is sent to a server. To reproduce a result in a script,
Python’s standard ipaddress module builds the same network from a CIDR string with ip_network(), which by
default raises an error if host bits are set, so pass strict=False for an input such as 192.0.2.10/24.
How to read the results
For IPv4:
- Network address — the first address of the block (all host bits zero), whatever address inside it you typed.
- Broadcast address — the last address of the block (all host bits one).
- Subnet mask — the dotted mask with its prefix length, for example
255.255.255.0 (/24). - Wildcard mask — the inverse of the subnet mask, for example
0.0.0.255. - Usable host range — the first and last address you can give a device.
- Usable hosts — that count, followed by the total number of addresses in the block.
For IPv6:
- Network address — the compressed network with its prefix, for example
2001:db8:abcd:12::/64. - Network (expanded) — the same address with all eight groups written out.
- First address and Last address — the two ends of the block.
- Total addresses — 2 to the power of the host bits, written out in full.
An input the calculator cannot read shows a red message instead, such as "255.0.255.0" is not a valid subnet mask.
Examples
| Input | Main result | Usable hosts | What it means |
|---|---|---|---|
192.0.2.10/24 | Network 192.0.2.0, broadcast 192.0.2.255 | 254 (of 256), 192.0.2.1 – 192.0.2.254 | A typical LAN-sized block; .0 and .255 are reserved. |
198.51.100.0/255.255.255.192 | Mask 255.255.255.192 (/26), wildcard 0.0.0.63 | 62 (of 64) | A dotted mask is turned into its prefix length. |
203.0.113.8/31 | Network 203.0.113.8, broadcast 203.0.113.9 | 2 (of 2), 203.0.113.8 – 203.0.113.9 | Point-to-point link: both addresses usable (RFC 3021). |
203.0.113.5/32 | Network and broadcast both 203.0.113.5 | 1 (of 1) | A single host. |
2001:db8:abcd:12::1/64 | Network 2001:db8:abcd:12::/64, last 2001:db8:abcd:12:ffff:ffff:ffff:ffff | 18446744073709551616 total | One standard IPv6 subnet (264 addresses). |
Reading the result
For IPv4: the network and broadcast addresses bound the subnet, the usable host range excludes both (except for /31 point-to-point links, RFC 3021, where both addresses are usable, and /32, a single host). For IPv6: there is no broadcast address — every subnet is normally sized at /64 for address autoconfiguration (SLAAC), so a /64 has 264 addresses regardless of how many devices actually use it. That is why the RIPE NCC’s best current operational practice on IPv6 prefix assignment for end-users (RIPE-690) plans in /48 and /56 blocks per customer, strongly discourages assigning prefixes longer than /56, and advises allocating a /64 even for a point-to-point link that only uses a /127 from it. Every device on that /64 still needs its own firewall rules once it has a globally routable address — see IPv6 and home devices: why no NAT means a firewall.
Limits
- This is address-plan arithmetic, not a live reachability check — it does not tell you whether any address in the range is actually in use.
- It does not flag special-purpose blocks — private, shared CGNAT, documentation and other reserved IPv4 ranges are listed in IANA’s IPv4 Special-Purpose Address Registry.
- IPv6 addresses are shown in their RFC 5952 canonical compressed form.
- For a single IPv6 address’s prefix/interface-id split, category, and any MAC address embedded in a modified EUI-64 interface id, see the IPv6 info tool instead.
- This calculator sizes one block at a time; to collapse a whole list of addresses and CIDR blocks into the fewest prefixes that exactly cover them, use the CIDR aggregator instead.
See subnet and CIDR basics: reading a subnet calculator result for a worked walkthrough of the output fields, and best free subnet calculators, compared for how this client-side, nothing-sent-to-a-server tool stacks up against other free options. Reference: subnet.
Frequently asked questions
Does this tool send my input anywhere?
No — the math runs entirely in your browser.
Why is the IPv6 host count so large?
A typical IPv6 /64 allocation has 2^64 addresses — far more than any subnet needs; it is sized for address autoconfiguration, not scarcity.
What is a /31 subnet for, if it has no usable host range in the normal sense?
RFC 3021 defines /31 specifically for point-to-point links (e.g. between two routers), where both addresses in the pair are usable and no network/broadcast address is needed, since there is no broadcast domain with only two hosts.
Can I use any address inside an IPv4 subnet, or are some reserved?
The network address (all host bits zero) and the broadcast address (all host bits one) are reserved and not assignable to a device, except in a /31 or /32 as noted above. Every other address in the range is usable.
Can I enter a single IP address without a prefix?
No. The calculator needs a prefix or mask and shows "Enter an address with a prefix" until you add one. To describe a single host, add /32 for IPv4 or /128 for IPv6. Any address inside a block also works: 192.0.2.10/24 gives the same network, 192.0.2.0, as 192.0.2.0/24.