IPv6 Subnet Calculator |
How to Use This IPv6 Subnet Calculator
An IPv6 subnet calculator (or IPv6 calculator) shows the first and last address, the size and the number of /64 networks in a prefix such as 2001:db8::/48. A /48 holds 65,536 /64 subnets; each /64, the standard size for one LAN, holds 264 addresses.
Enter an address with its prefix length (like 2001:db8::/56); the results update as you type. Compressed, expanded and embedded-IPv4 forms (::ffff:192.0.2.1) all work.
| Result | What it means |
|---|---|
| Network prefix, first and last address | The block in its short (RFC 5952) and full forms. IPv6 has no network or broadcast address to subtract: every address is usable. |
| Prefix mask (hex) | The prefix length written as a 128-bit mask, for example ffff:ffff:ffff:: for a /48. IPv6 configuration uses the /length, not the mask. |
| Coloured digits | Which hex digits are fixed by the prefix, which ones number your LANs (subnet ID) and which ones belong to devices (interface ID). |
| /64 networks inside | How many LANs the block can hold. |
| Reverse DNS zone | The ip6.arpa zone to delegate for reverse DNS of the block. |
| Plan my network | The first /64s of the block, ready to name and copy. |
| Split, subnet #N, "is it inside?" | Smaller prefixes of any size, any one by its number, and a membership check for an address. |
Every result can be shared: Copy link to this result gives an address such as /ipv6-subnet-calculator?prefix=2001:db8::/56.
How IPv6 Subnetting Works
Each hex digit is 4 bits, so subnet on nibble boundaries (/48, /52, /56, /60, /64) to keep prefixes readable; every LAN uses a /64.
An IPv6 address has 128 bits, written as 32 hex digits. The first 64 bits identify the network and the
last 64 the device (the interface ID). The network half splits again: the
prefix your ISP or registry gave you, then the subnet ID you choose
for each LAN. With a /48, digits 13 to 16 are yours: 2001:db8:abcd:0001::/64,
2001:db8:abcd:0002::/64 and so on.
Unlike IPv4 there is no subnet mask in dotted form, no broadcast address (multicast replaces it) and no need to save addresses: you size subnets by how many LANs you need, not by how many hosts. Moving the prefix by one hex digit multiplies the number of LANs by 16.
The cheat sheet below lists the common prefix sizes, with the mask of each and how many smaller blocks each holds.
IPv6 Subnetting Cheat Sheet
Each step of 4 bits (one hex digit) multiplies or divides the count by 16: a /48 holds 16 /52s, 256 /56s and 65,536 /64s.
| Prefix | Mask (hex) | Typical use | /48s | /56s | /64 LANs | Addresses |
|---|---|---|---|---|---|---|
| /32 | ffff:ffff:: | Usual first allocation from a regional registry to an ISP | 65,536 | 16,777,216 | 4,294,967,296 | 296 |
| /36 | ffff:ffff:f000:: | 4,096 | 1,048,576 | 268,435,456 | 292 | |
| /40 | ffff:ffff:ff00:: | 256 | 65,536 | 16,777,216 | 288 | |
| /44 | ffff:ffff:fff0:: | 16 | 4,096 | 1,048,576 | 284 | |
| /48 | ffff:ffff:ffff:: | A site; recommended for business customers (RIPE-690) | 1 | 256 | 65,536 | 280 |
| /52 | ffff:ffff:ffff:f000:: | — | 16 | 4,096 | 276 | |
| /56 | ffff:ffff:ffff:ff00:: | Recommended for homes (RIPE-690) | — | 1 | 256 | 272 |
| /60 | ffff:ffff:ffff:fff0:: | Smaller home delegation (RIPE-690 discourages anything smaller than a /56) | — | — | 16 | 268 |
| /64 | ffff:ffff:ffff:ffff:: | One LAN (SLAAC needs a /64) | — | — | 1 | 264 |
| /127 | ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe | Router-to-router link (RFC 6164) | — | — | — | 2 |
| /128 | ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff | One address: loopback, a single host route | — | — | — | 1 |
IPv6 has no dotted subnet mask: the prefix length says it all. Written out in hex, the mask is the prefix length in 1-bits, which the calculator shows as "Prefix mask (hex)".
Plan the Prefix Your ISP Gives You (/48, /56, /64)
A /56 gives 256 LANs, a /48 gives 65,536; a single /64 is one LAN only.
Your router gets this block by prefix delegation: it asks the ISP for a prefix over DHCPv6 (IA_PD, RFC 9915, which replaced RFC 8415), then hands one /64 to each of its networks.
- Find your delegated prefix on the router's WAN or IPv6 status page ("prefix delegation", "IA_PD" or "delegated prefix").
- Enter it above; the "Plan my network" box lists your /64s.
- Give each network its own /64: main, guests, IoT, servers. Use the subnet ID as a VLAN-style number (
…:1200::/64= 00,…:1201::/64= 01…). - Leave gaps if you'll grow: with a /48, use one hex digit per building or floor (/52 or /56 each) and the last ones per LAN.
Many ISPs change the delegated prefix when the router reconnects. Firewall rules that use the full prefix then break; use the router's "suffix" or interface-ID options, or ask for a static prefix if your ISP offers one.
Why a LAN Must Be a /64
SLAAC builds addresses from a 64-bit interface ID, so smaller subnets break automatic addressing (RFC 4291, RFC 7421).
With SLAAC (RFC 4862) the router announces a /64 and each device picks its own last 64 bits. Older
devices build them from the MAC address with modified EUI-64 (the MAC split around
ff:fe, with one bit flipped: try the EUI-64 box above). Modern systems use random,
regularly changing interface IDs (RFC 8981) so that the address doesn't track the device. Android
supported only SLAAC until 2025, never DHCPv6 addresses; from late 2025 Google began rolling out DHCPv6 prefix
delegation to most Android 11 and later phones, so they can also ask for their own prefix. On a LAN that isn't a /64 and offers no prefix
delegation, Android phones get no IPv6.
Exceptions are deliberate: /127 on router-to-router links (RFC 6164) and /128 for loopbacks and single host routes.
IPv6 Address Types: Reference Table
| Prefix | Type | IPv4 equivalent | RFC |
|---|---|---|---|
| 2000::/3 | Global unicast: public, routed on the internet | Public IPv4 | RFC 4291 |
| fc00::/7 (in practice fd00::/8) | Unique local (ULA): private use | 10.x, 172.16.x, 192.168.x | RFC 4193 |
| fe80::/10 | Link-local: one link only, never routed | 169.254.x.x | RFC 4291 |
| ::1/128 | Loopback | 127.0.0.1 | RFC 4291 |
| ff00::/8 | Multicast (replaces broadcast) | 224.0.0.0/4 | RFC 4291 |
| 2001:db8::/32 | Documentation and examples, not routed | 192.0.2.0/24 | RFC 3849 |
| 64:ff9b::/96 | NAT64: IPv4 addresses reached from IPv6 | — | RFC 6052 |
How to Use the IPv6 Subnet Calculator
Type or paste an address such as 2001:db8::1, or a prefix such as 2001:db8::/48. Compressed, expanded and embedded IPv4 forms (::ffff:192.0.2.1) are accepted; results update as you type.
Read the Range and Size
Plan Subnets
Check an Address
Frequently Asked Questions
How many /64 subnets are in a /48?
How many addresses are in a /64?
Why use /64 for a LAN?
What prefix does my ISP give me?
What is the subnet mask in IPv6?
ffff:ffff:ffff:: and /64 is ffff:ffff:ffff:ffff::. The calculator shows it for any prefix.What is an IPv6 prefix length?
2001:db8::/32 fixes the first 32 bits; the remaining 96 are free for subnets and devices.What is a nibble boundary?
Do you store the addresses I enter?
Next steps