Type a tool name, for example "keyword density" or "transcript".
Calculate IPv6 network boundaries, exact address counts and the input address scope.
Counts include all addresses in the prefix, not a guaranteed number of usable hosts. Scope labels describe the input address; allocation, routing and reachability are not checked.
An IPv6 subnet calculator turns an address and prefix length, such as 2001:db8::/32, into the network address, first and last address, host bits and exact address count. Network engineers, students and sysadmins use it to plan subnets and check prefixes without doing hexadecimal math by hand.
An IPv6 subnet is a block of consecutive addresses that share the same leading bits, and the prefix length tells you how many leading bits are fixed. In 2001:db8:abcd:12::/64, the first 64 bits identify the network and the remaining 64 bits identify individual interfaces.
An IPv6 address is 128 bits long, written as eight groups of four hexadecimal digits. The prefix length is a number from 0 to 128 written after a slash. The bits that are not part of the prefix are called host bits, and they decide how many addresses the subnet holds: 2 raised to the number of host bits.
IPv6 does not use dotted subnet masks the way IPv4 does; the prefix length replaces them. If you still want the mask form, a /64 prefix is 64 one-bits followed by 64 zero-bits, which reads as ffff:ffff:ffff:ffff:: in hexadecimal. A /48 reads as ffff:ffff:ffff::. For everyday work, the slash number is all you need.
The network address is the input address with every host bit set to zero. For 2001:db8:abcd:12::1/64, you keep the first 64 bits and zero the rest, which gives 2001:db8:abcd:12::. The last address is the same prefix with every host bit set to one.
You only need one input: an IPv6 address followed by a slash and a prefix length. The steps below match the fields on this page.
2001:db8::/32 or 2001:db8::1/64.The tool accepts compressed addresses with one double colon, fully written addresses with eight groups, and addresses that end in an embedded IPv4 part, such as ::ffff:192.0.2.1/96.
Say you were given 2001:db8:abcd:12::1/64 for a office VLAN and want to confirm its boundaries. Enter that value and click Calculate Subnet. The table shows the following.
The scope line appears because 2001:db8::/32 is reserved for examples and documentation. If this were a real deployment, you would swap in the prefix your provider delegated to you. The boundaries tell you the VLAN uses everything from 2001:db8:abcd:12:: to the last address shown, and that the next /64 up starts at 2001:db8:abcd:13::.
Each row in the results table answers a specific planning question. Here is what to look for in each one.
The expanded address writes out all 32 hex digits with leading zeros, which is the easiest form for comparing two addresses digit by digit. The network address is shown in compressed form. If two devices produce different network addresses at the same prefix length, they are on different subnets.
These mark the edges of the block. IPv6 has no broadcast address, so the last address is simply the highest address in the range. By convention the first address, with all host bits zero, is reserved as the Subnet-Router anycast address, so avoid assigning it to a host.
Host bits equal 128 minus the prefix length, and total addresses equal 2 to that power. The count includes every address in the prefix. It is not a promise of usable hosts, because routers, anycast addresses and your own addressing plan take some of them.
The scope row classifies the address you typed, not the whole subnet. Labels include loopback, link-local, unique local, multicast, documentation, 6to4, Teredo and global unicast. A global unicast label means the address falls in the 2000::/3 range, but the tool does not verify that it is allocated or routed.
These sizes are widely used as planning guidelines. Your provider or organization may set different rules.
| Prefix | Number of /64 subnets | Typical use |
|---|---|---|
| /48 | 65,536 | A site or organization |
| /56 | 256 | A small site or home |
| /64 | 1 | A single LAN or VLAN |
| /127 | Part of one /64 | Point-to-point links |
A /64 is the standard size for ordinary LANs because automatic address configuration expects a 64-bit interface identifier. Splitting a LAN into something smaller than /64 usually breaks that feature, so subnet by moving the prefix between /48 and /64 instead.
Anyone who plans, documents or troubleshoots IPv6 addressing benefits from a quick way to see boundaries and counts. These are the most common situations.
Most bad results come from input formatting, not from the math. Check these points first.
Write the prefix you plan to use, not the one you are guessing at. If a router advertises a /64 but you enter a /48, the boundaries and counts will describe a much larger block than the one you actually have.
When you need IPv4 work instead, the Subnet CIDR calculator covers masks and usable hosts, and the CIDR to IP range converter handles IPv4 ranges. To check which network owns an address, try the ASN lookup.
The calculator performs exact arithmetic on the prefix you enter, so the boundaries and counts are exact, even for huge blocks like a /32 with 2 to the 96th power addresses. What it does not do is judge the address itself.
You can confirm a network address, range edges and address count in a few seconds, then adjust the prefix length until the plan fits your design. Enter your address with its prefix above and click Calculate Subnet. For more tools like this, browse the Network and IP tools hub.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market