Subnet Calculator — IPv4 & IPv6
IPv4 & IPv6 subnetting — network address, broadcast, host range, binary view, and subnet split
Results
Enter an IP address and prefix, then click Calculate.
Results
Enter an IPv6 address and prefix, then click Calculate.
Frequently Asked Questions
IPv6: Total addresses = 2(128-prefix). A /64 gives 264 ~18.4 quintillion addresses. IPv6 has no broadcast - it uses multicast instead. There is no subtraction for IPv6 hosts.
IPv6 uses 128-bit addresses (e.g. 2001:db8::1), supporting 3.4x1038 addresses - effectively unlimited. It uses colon-hexadecimal notation, supports auto-configuration (SLAAC), has no broadcast (replaced by multicast), and has built-in IPsec support.
- Unicast - one-to-one communication (Global: 2000::/3, Link-local: fe80::/10, Unique-local: fc00::/7)
- Multicast - one-to-many (ff00::/8), replaces IPv4 broadcast
- Anycast - one-to-nearest of a group (same address on multiple devices)
- Loopback - ::1/128 (equivalent to 127.0.0.1 in IPv4)
- Unspecified - ::/128 (equivalent to 0.0.0.0 in IPv4)
- 10.0.0.0/8 - 10.0.0.0 to 10.255.255.255 (~16.7M addresses)
- 172.16.0.0/12 - 172.16.0.0 to 172.31.255.255 (~1M addresses)
- 192.168.0.0/16 - 192.168.0.0 to 192.168.255.255 (~65K addresses)
- 10.0.0.0/8 — 10.0.0.0 to 10.255.255.255 (~16.7 million addresses). Used by large enterprises and ISPs.
- 172.16.0.0/12 — 172.16.0.0 to 172.31.255.255 (~1 million addresses). Often used by mid-size networks and Docker.
- 192.168.0.0/16 — 192.168.0.0 to 192.168.255.255 (~65,000 addresses). The most common home and small office range.
About This Subnet Calculator
This free online Subnet Calculator supports both IPv4 and IPv6 subnetting. For IPv4, enter any address and drag the CIDR prefix slider (or type the subnet mask directly) to instantly calculate the network address, broadcast address, usable host range, subnet mask, wildcard mask, total hosts, IP class, and binary representation. The subnet split tool shows all sub-subnets at any larger prefix.
For IPv6, enter any address in full, compressed, or mixed notation, select a prefix length (typically /48, /56, /64), and instantly see the network prefix, full expanded/compressed forms, interface ID range, address type (Global, Link-local, Unique-local, Multicast, Loopback), and total addresses in the subnet.
IPv4 Subnet Reference
| CIDR | Subnet Mask | Hosts |
|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 |
| /16 | 255.255.0.0 | 65,534 |
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /29 | 255.255.255.248 | 6 |
| /30 | 255.255.255.252 | 2 |
IPv6 Common Prefixes
| Prefix | Usage |
|---|---|
| 2000::/3 | Global unicast |
| fc00::/7 | Unique local (RFC 4193) |
| fe80::/10 | Link-local unicast |
| ff00::/8 | Multicast |
| ::1/128 | Loopback |
| ::/128 | Unspecified |
| 2001:db8::/32 | Documentation (RFC 3849) |
| 64:ff9b::/96 | IPv4-mapped IPv6 |
Standards & References
Related Internet Tools
Related Articles
View all articles
Subnetting Math: Why /24 Gives 254 Hosts, How VLSM Works, and What the Slash Actually Means
A /24 gives 254 usable hosts, not 256 — because subnetting always reserves the first address (network) and last address (broadcast). Here's the 2^n−2 formula across all prefix lengths, VLSM (Variable Length Subnet Masking) for efficiently dividing address space into different-sized subnets, why route summarization (supernetting) is the reverse operation, and what the slash number in CIDR notation actually means in binary.
IPv6 Address Types: Why One Interface Has Link-Local, ULA, and Global Addresses All at Once
A single IPv6 interface normally has 3-4 different addresses simultaneously — link-local, unique local (ULA), and one or more global unicast addresses, each with different scope and purpose. Here's what each address type does, why ULAs exist alongside global addresses unlike IPv4's NAT model, and why privacy extensions cause global addresses to rotate.
Cloud VPC Design: Public vs Private Subnets, NAT Gateways, and the Three-Tier Architecture
AWS VPCs, GCP VPCs, and Azure VNets follow the same three-tier pattern — public subnets for internet-facing resources, private subnets for application and data tiers. Here's the terminology across providers, NAT Gateway mechanics, VPC peering, and the four most common cloud network design mistakes.
Subnetting Explained: CIDR Notation, Host Counts, and Practical Network Design
CIDR notation and subnetting make more sense once you see the pattern: each /1 increase halves the subnet. Here's how prefix lengths translate to host counts, common use cases from cloud VPCs to point-to-point links, and IPv6 subnetting philosophy.
Subnet Calculator — IPv4 & IPv6 Network Address, Host Range & CIDR
Learn how IPv4 subnetting works, what CIDR notation means, how to calculate network addresses, host ranges, and usable hosts, with real examples — plus an IPv6 intro and a free subnet calculator.