IPv6 Subnet Calculator

Calculate any IPv6 prefix, split it, and plan your /64 networks.

Results update as you type. Need IPv4? IPv4 subnet calculator.

Result

2001:db8:abcd::/48 (documentation) holds 65,536 LANs of /64, from 2001:db8:abcd:: to 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff.

2001:db8:abcd::/48 Documentation (RFC 3849)Nibble-aligned
20010db8abcd00000000000000000000

Prefix Subnet ID Interface ID Prefix: 48 bits · Subnet ID: 16 bits (65,536 LANs) · Interface ID: 64 bits

Addresses1.20 × 10^24
Range2001:db8:abcd:: – 2001:db8:abcd:ffff:ffff:ffff:ffff:ffff
/64 networks (LANs) inside65,536
BroadcastNone in IPv6
FieldValue
Network prefix2001:db8:abcd::/48
Prefix mask (hex)ffff:ffff:ffff::
First address2001:db8:abcd::
Last address2001:db8:abcd:ffff:ffff:ffff:ffff:ffff
First (expanded)2001:0db8:abcd:0000:0000:0000:0000:0000
Last (expanded)2001:0db8:abcd:ffff:ffff:ffff:ffff:ffff
Total addresses1,208,925,819,614,629,174,706,176 (2^80)
/64 networks inside65,536 (2^16)
Address typeDocumentation (RFC 3849)
Reverse DNS zoned.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa

Runs in your browser: nothing is sent to our server.

Plan my network: LANs in 2001:db8:abcd::/48

Your /48 gives 65,536 LANs of /64. Give each network its own /64; the first 16 are listed, rename them as you like.

Subnet IDLAN prefixName (edit)
00002001:db8:abcd::/64
00012001:db8:abcd:1::/64
00022001:db8:abcd:2::/64
00032001:db8:abcd:3::/64
00042001:db8:abcd:4::/64
00052001:db8:abcd:5::/64
00062001:db8:abcd:6::/64
00072001:db8:abcd:7::/64
00082001:db8:abcd:8::/64
00092001:db8:abcd:9::/64
000a2001:db8:abcd:a::/64
000b2001:db8:abcd:b::/64
000c2001:db8:abcd:c::/64
000d2001:db8:abcd:d::/64
000e2001:db8:abcd:e::/64
000f2001:db8:abcd:f::/64

Split 2001:db8:abcd::/48 into smaller prefixes

256 subnets of /56. The first 16 are listed; find any one by its number below.

#SubnetLast address
12001:db8:abcd::/562001:db8:abcd:ff:ffff:ffff:ffff:ffff
22001:db8:abcd:100::/562001:db8:abcd:1ff:ffff:ffff:ffff:ffff
32001:db8:abcd:200::/562001:db8:abcd:2ff:ffff:ffff:ffff:ffff
42001:db8:abcd:300::/562001:db8:abcd:3ff:ffff:ffff:ffff:ffff
52001:db8:abcd:400::/562001:db8:abcd:4ff:ffff:ffff:ffff:ffff
62001:db8:abcd:500::/562001:db8:abcd:5ff:ffff:ffff:ffff:ffff
72001:db8:abcd:600::/562001:db8:abcd:6ff:ffff:ffff:ffff:ffff
82001:db8:abcd:700::/562001:db8:abcd:7ff:ffff:ffff:ffff:ffff
92001:db8:abcd:800::/562001:db8:abcd:8ff:ffff:ffff:ffff:ffff
102001:db8:abcd:900::/562001:db8:abcd:9ff:ffff:ffff:ffff:ffff
112001:db8:abcd:a00::/562001:db8:abcd:aff:ffff:ffff:ffff:ffff
122001:db8:abcd:b00::/562001:db8:abcd:bff:ffff:ffff:ffff:ffff
132001:db8:abcd:c00::/562001:db8:abcd:cff:ffff:ffff:ffff:ffff
142001:db8:abcd:d00::/562001:db8:abcd:dff:ffff:ffff:ffff:ffff
152001:db8:abcd:e00::/562001:db8:abcd:eff:ffff:ffff:ffff:ffff
162001:db8:abcd:f00::/562001:db8:abcd:fff:ffff:ffff:ffff:ffff

Is an IPv6 address in this prefix?

EUI-64: interface ID from a MAC address

Modified EUI-64 (RFC 4291): the MAC is split in two, ff:fe goes in the middle and the 7th bit is flipped. Windows, macOS, iOS and Android use random interface IDs by default instead, for privacy (RFC 8981).

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.

ResultWhat it means
Network prefix, first and last addressThe 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 digitsWhich hex digits are fixed by the prefix, which ones number your LANs (subnet ID) and which ones belong to devices (interface ID).
/64 networks insideHow many LANs the block can hold.
Reverse DNS zoneThe ip6.arpa zone to delegate for reverse DNS of the block.
Plan my networkThe 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.

Comparison of IPv4 and IPv6 subnetting: 32 vs 128 bits, mask vs prefix only, broadcast vs none, /24 vs /64 LAN, DHCP vs SLAAC; one /48 holds 2 to the power 80 addresses
Simpler rules, far larger sizes.

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.

PrefixMask (hex)Typical use/48s/56s/64 LANsAddresses
/32ffff:ffff::Usual first allocation from a regional registry to an ISP65,53616,777,2164,294,967,296296
/36ffff:ffff:f000::4,0961,048,576268,435,456292
/40ffff:ffff:ff00::25665,53616,777,216288
/44ffff:ffff:fff0::164,0961,048,576284
/48ffff:ffff:ffff::A site; recommended for business customers (RIPE-690)125665,536280
/52ffff:ffff:ffff:f000::—164,096276
/56ffff:ffff:ffff:ff00::Recommended for homes (RIPE-690)—1256272
/60ffff:ffff:ffff:fff0::Smaller home delegation (RIPE-690 discourages anything smaller than a /56)——16268
/64ffff:ffff:ffff:ffff::One LAN (SLAAC needs a /64)——1264
/127ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffeRouter-to-router link (RFC 6164)———2
/128ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffffOne 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.

  1. Find your delegated prefix on the router's WAN or IPv6 status page ("prefix delegation", "IA_PD" or "delegated prefix").
  2. Enter it above; the "Plan my network" box lists your /64s.
  3. 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…).
  4. 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

PrefixTypeIPv4 equivalentRFC
2000::/3Global unicast: public, routed on the internetPublic IPv4RFC 4291
fc00::/7 (in practice fd00::/8)Unique local (ULA): private use10.x, 172.16.x, 192.168.xRFC 4193
fe80::/10Link-local: one link only, never routed169.254.x.xRFC 4291
::1/128Loopback127.0.0.1RFC 4291
ff00::/8Multicast (replaces broadcast)224.0.0.0/4RFC 4291
2001:db8::/32Documentation and examples, not routed192.0.2.0/24RFC 3849
64:ff9b::/96NAT64: 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.

1

Set the Prefix Length

Type a prefix from /0 to /128, or pick a common size: /32 for an ISP, /48 for a site, /56 for a home or small site, /64 for one LAN, /127 for a router link, /128 for one host.
2

Read the Range and Size

The result shows the first and last address (compressed and expanded), the prefix mask in hex, the number of addresses, how many /64 networks fit inside, the address type and the ip6.arpa reverse DNS zone, each with a copy button.
3

Plan Subnets

Choose a smaller size, for example /48 into /64, to list the first subnets and copy them, or type a number to get subnet number N directly.
4

Check an Address

Paste any IPv6 address to see whether it belongs to the prefix, and which /64 it is in.

Frequently Asked Questions

How many /64 subnets are in a /48?
65,536 (2^16). A /56 contains 256 /64s, a /60 contains 16, and a /52 contains 4,096. Each /64 is one LAN.
How many addresses are in a /64?
2^64, about 18.4 quintillion (18,446,744,073,709,551,616). IPv6 has no broadcast address, so none are reserved for it. A /64 is the standard size for one network segment, however few devices it has.
Why use /64 for a LAN?
Automatic addressing (SLAAC, RFC 4862) builds each device's address from a 64-bit interface ID, so it only works on a /64. Longer prefixes such as /80 or /120 break SLAAC and features that expect it (RFC 7421).
What prefix does my ISP give me?
Usually a /56 or a /48 for homes and businesses; a few ISPs give only a /64 (one network) or a /60. Look for "delegated prefix" or "prefix delegation" on your router's WAN or IPv6 page, then enter it above.
What is the subnet mask in IPv6?
IPv6 doesn't use dotted masks like 255.255.255.0: a prefix is written with its length only, such as /64. If you need it as a mask, it is that many 1-bits in hex: /48 is ffff:ffff:ffff:: and /64 is ffff:ffff:ffff:ffff::. The calculator shows it for any prefix.
What is an IPv6 prefix length?
The number after the slash: how many of the address's 128 bits, counted from the left, make up the prefix (RFC 4291). 2001:db8::/32 fixes the first 32 bits; the remaining 96 are free for subnets and devices.
What is a nibble boundary?
A prefix length that is a multiple of 4 (/48, /52, /56, /60, /64), so the network part ends on a whole hex digit. Such prefixes are easy to read and match reverse DNS (ip6.arpa) zones; a /57 cuts a hex digit in two.
Do you store the addresses I enter?
No. The calculator runs in your browser; what you type is not sent to our server. A shared link contains the prefix in the address, so only share it if you're happy for others to see it.

Next steps

Related Tools

Subnet Calculator
Network, broadcast, mask and host range of any IPv4 subnet.
IPv6 Compressor
Shorten any IPv6 address to its RFC 5952 form.
IPv6 Expander
Write any IPv6 address out in full.
IP Range to CIDR Converter
Turn any IP range into CIDR blocks, IPv4 and IPv6.
IPv4 to IPv6 Converter
Every IPv6 form of an IPv4 address.

Related Guides

Guide What is IPv6?
the 128-bit address, how it is written and how prefixes are handed out by registries and ISPs.
Guide What is IPv4?
compare 32-bit IPv4 subnetting, masks and NAT with the IPv6 model.
Guide What is an IP address?
the basics that apply to both IPv4 and IPv6.