Subnet Calculator
A Subnet Calculator works out the network address, broadcast address, usable host range, mask and address count for an IPv4 or IPv6 CIDR block, and divides or aggregates blocks — computed with exact bitwise arithmetic in your browser.
Read as IPv4 with a /26 prefix — the address you typed is a host inside the block, so the network address is 192.168.1.128/26.
Addresses
- CIDR notation
192.168.1.128/26 - Network address
192.168.1.128 - Broadcast address
192.168.1.191 - First usable host
192.168.1.129 - Last usable host
192.168.1.190 - Usable hosts
62 - Total addresses
64
Masks
- Prefix length
/26 - Subnet mask
255.255.255.192 - Wildcard mask
0.0.0.63Cisco ACLs - Network bits
26 - Host bits
6
Representations
- Binary
11000000.10101000.00000001.10000000 - Hexadecimal
0xc0a80180 - Integer
3232235904 - Reverse DNS zone
1.168.192.in-addr.arpa (only /8, /16 and /24 boundaries delegate cleanly)
Registry ranges this block falls in
- Private (RFC 1918, 192.168.0.0/16)
About Subnet Calculator
Type a block in whatever notation you have — 192.168.1.130/26, 10.0.0.0 255.0.0.0, a Cisco wildcard mask, a bare address, or any IPv6 form — and every derived value appears at once: network and broadcast address, first and last usable host, subnet and wildcard mask, the count in decimal and as a power of two, binary, hexadecimal, the reverse DNS zone, and which IANA special-purpose range the block sits in. Beyond the lookup there are three operations that turn a reference tool into a working one: split a prefix into equal subnets, plan a VLSM allocation from a list of host counts, and summarise a messy list of blocks and ranges into the fewest CIDRs that cover exactly the same addresses. All of it runs on BigInt, so an IPv6 /48 reports 2^80 addresses exactly rather than a rounded float, and the /31 and /32 cases are handled per RFC 3021 instead of being reported as having minus one usable host.
What Subnet Calculator does
- IPv4 and IPv6 in one field, with the version detected from the input
- Accepts prefix length, dotted netmask, Cisco wildcard mask or a bare address
- Network, broadcast, first and last usable host, and exact address counts
- /31 and /32 handled per RFC 3021 instead of reporting negative host counts
- Split a block into equal subnets, listed with their ranges
- VLSM planner: allocates largest-first from host counts and reports the waste
- Summarise adjacent and overlapping blocks into the fewest CIDRs
- Identifies private, CGNAT, link-local, documentation and multicast ranges with their RFCs
- Binary, hexadecimal, integer, expanded IPv6 and the reverse DNS zone
When to reach for Subnet Calculator
- Working out how many hosts a /26 actually gives you before assigning it
- Carving a /16 into per-environment subnets that do not overlap
- Planning a VLSM allocation for departments of different sizes
- Collapsing a sprawling firewall or ACL list into a handful of aggregated routes
- Converting an IP range from a log or abuse report into CIDR notation
- Checking whether an address is private, CGNAT or genuinely public
How to use Subnet Calculator
- 01
Enter the block
Type an address with a prefix (192.168.1.130/26), a netmask (10.0.0.0 255.0.0.0), a wildcard mask, or a bare address. IPv6 works in the same field.
- 02
Read the analysis
Network, broadcast, usable range, masks, counts, scope and reverse DNS zone are listed together, each with a copy button.
- 03
Split or plan
Use 'Split evenly' to divide the block into equal subnets, or 'VLSM plan' to allocate from a list of host counts.
- 04
Summarise a list
Paste CIDRs, addresses or dashed ranges into 'Summarise' to collapse them into the fewest equivalent CIDR blocks.
When to use Subnet Calculator vs alternatives
| Alternative | Use Subnet Calculator when… | Use the alternative when… |
|---|---|---|
| `ipcalc` or `sipcalc` on the command line | you want the split, VLSM and summarise operations in one place, and IPv6 handled as a first-class case rather than a flag. | you are scripting and want the output piped somewhere. |
| Online subnet calculators | you are working with internal addressing you would rather not paste into an ad-funded page, or you need IPv6 counts that are exact rather than rounded to a float. | you only need a single IPv4 lookup and already have one bookmarked. |
| Asking an AI chatbot | the answer has to be right — subnet boundaries are pure bit arithmetic, and a language model producing a confident off-by-one broadcast address is a live outage. | you want the concept of subnetting explained rather than a block calculated. |