Skip to main content
KalkuNet

IPv6 Subnet Calculator: Prefixes, /48, /56 & /64

Prefix, first and last address, short and full forms, /64 count, ip6.arpa and /48 to /64 splits.

Calculated in your browserNetwork
Prefix (compressed)
2001:db8:abcd::/48
Last address
2001:db8:abcd:ffff:ffff:ffff:ffff:ffff
First address
2001:db8:abcd::
Prefix (expanded)
2001:0db8:abcd:0000:0000:0000:0000:0000
Address entered (compressed)
2001:db8:abcd:12::1
Number of addresses
2^80
Number of /64 subnets
65,536
Address type
Documentation (RFC 3849)
Reverse DNS zone
d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa
Number of /64 subnets
65,536

First /64 subnets inside 2001:db8:abcd::/48

No.SubnetLast address
12001:db8:abcd::/642001:db8:abcd:0:ffff:ffff:ffff:ffff
22001:db8:abcd:1::/642001:db8:abcd:1:ffff:ffff:ffff:ffff
32001:db8:abcd:2::/642001:db8:abcd:2:ffff:ffff:ffff:ffff
42001:db8:abcd:3::/642001:db8:abcd:3:ffff:ffff:ffff:ffff
52001:db8:abcd:4::/642001:db8:abcd:4:ffff:ffff:ffff:ffff
62001:db8:abcd:5::/642001:db8:abcd:5:ffff:ffff:ffff:ffff
72001:db8:abcd:6::/642001:db8:abcd:6:ffff:ffff:ffff:ffff
82001:db8:abcd:7::/642001:db8:abcd:7:ffff:ffff:ffff:ffff

Formula and sources

Prefix = address AND mask (the first prefix bits set); last address = prefix OR the inverted mask Addresses = 2^(128 − prefix); /64 subnets = 2^(64 − prefix); split into /n: 2^(n − prefix) subnets RFC 5952 compressed form: lower case, no leading zeros, the longest run of zero groups as ::

When to use the IPv6 Subnet

  • The prefix of any address

    Enter an address with its prefix, such as 2001:db8:abcd:12::1/48. The calculator works out the prefix 2001:db8:abcd::/48, its first and last address, the full 32-hex-digit form and how many /64 subnets it holds.

  • Splitting a /48 into /64s

    A site usually receives a /48 or /56 from its ISP. Enter 64 as the split prefix to list consecutive LAN subnets: a /48 holds 65,536 /64 subnets and a /56 holds 256.

  • The correct short form

    Addresses are written as RFC 5952 recommends: lower case, leading zeros removed from each group, and the longest run of zeros replaced by ::. Use this form in configs, documentation and DNS.

  • Address type and reverse DNS

    The calculator recognises global unicast, ULA fc00::/7, link-local fe80::/10, multicast, documentation 2001:db8::/32 and IPv4-mapped addresses. For prefixes on a 4-bit boundary it also writes the ip6.arpa zone for reverse DNS delegation.

Frequently asked questions

How many addresses are in a /64?

2^64, about 18.4 quintillion addresses. It is not meant to be filled; the size lets devices create their own addresses.

What is the difference between /48, /56 and /64?

A /48 is typical for a site or office (65,536 LANs), a /56 for a home or small office (256 LANs) and a /64 for a single LAN. ISPs hand out different sizes, so check the prefix you were given.

Can I enter an address without a prefix?

Yes. Without a /prefix the address is taken as a /128 (one host), and the calculator still shows its compressed and expanded forms and its type.

Related calculators

Related tools & guide