IPv6 subnet calculator
Enter an IPv6 address with a prefix length to see the network range, the address count and how many /64 subnets fit inside.
How IPv6 prefixes differ
An IPv6 address has 128 bits, written as eight groups of four hex digits. A prefix such as /48 fixes the first 48 bits. The rest is yours to divide. Unlike IPv4, nobody counts individual hosts. The usual unit is the /64 subnet, which holds about 18 quintillion addresses.
A typical allocation gives a site a /48 or a /56. From a /48 you can carve out 65,536 separate /64 networks, one per VLAN or segment.
How to read the result
- Expanded form: all eight groups with leading zeros, useful for scripts and reverse names.
- Compressed form: leading zeros dropped and the longest run of zero groups replaced by a double colon.
- Network and range: the first and last address inside the prefix.
- Total addresses: two to the power of 128 minus the prefix length.
- Number of /64 subnets: how many standard LAN subnets fit in the prefix.
Typical sizes
| Prefix | Typical use | /64 networks inside |
|---|---|---|
| /32 | A large provider allocation | 4,294,967,296 |
| /48 | A site or organization | 65,536 |
| /56 | A small site or home | 256 |
| /64 | One LAN | 1 |
| /128 | A single host | none |
Good habits
- Keep LANs at /64. Several features, such as address autoconfiguration, assume it.
- Plan one /64 per segment and document the plan.
- Allocate point-to-point links from a dedicated block.
Check reachability
If a service listens on IPv6, publish an AAAA record (see the AAAA record lookup) and monitor it. Add an HTTP monitor on the host name so you notice when IPv6 breaks. See website monitoring.
Worked example
Take 2001:db8:1234:5600::/56. The prefix fixes 56 bits, so the last 72 bits are free. That gives 256 networks of size /64, numbered from 2001:db8:1234:5600::/64 up to 2001:db8:1234:56ff::/64. The documentation prefix 2001:db8::/32 is reserved for examples, so it is a safe choice to practice with. When you plan a real network, write down which /64 serves which segment, and keep a spare range for growth, so later changes do not force a renumbering.
Frequently asked questions
Why is the total so large?
IPv6 has 340 undecillion addresses in total. A /64 alone is the size of the whole IPv4 internet squared.
Can I use /127 on links?
Yes. Many networks use /127 or /126 for point-to-point links.
Does the tool accept embedded IPv4 notation?
Not yet. Enter the address in pure hex form.
Run the check
Related
Open the dashboard
Sign in with your Google account to add a monitor and pick an alert channel. Access is currently limited to Moruk accounts; open sign-up is not available yet.