$ipv6-range --prefix 2001:db8::/48

IPv6 Range Calculator

IPv6 Range Calculator. Enter an IPv6 Address and Prefix Length, then click Calculate Range in this IPv6 range calculator to get the first and last address.

Enter IPv6 Prefix

Range Results

-
-
-
-

Enter an IPv6 prefix like 2001:db8::/32 to instantly calculate the start address, end address, and total number of addresses in the range. Visualize the full IPv6 address block boundaries — ideal for prefix delegation, address allocation, and planning IPv6 subnet assignments.

Punch in any IPv6 address and prefix, and the IPv6 Range Calculator instantly hands you the first address, the last address, and everything in between — no manual binary math required. Whether you're carving a /48 allocation from your provider into smaller /64 subnets or double-checking a CIDR block before you push a firewall rule, you get the exact address range, total host count, and reverse-DNS entry in one pass. It works the same way regardless of which internet protocol version you're used to, so the habits you already have from IPv4 subnetting carry straight over.

How This IPv6 Range Calculator Works

Every time you run the ipv6 range calculator, it walks through the same steps a network engineer does by hand: split the address into its network and host portions, expand the shorthand into full hexadecimal format, then compute how many addresses fall inside that block. Under the hood it's still the same tcp/ip stack that IPv4 relies on — only the addressing layer and the size of the numbers change. You get the first and last address in the range instantly, along with the total address count and the equivalent binary format for the mask boundary.

Before you read a single result, it helps to know what the calculator is actually returning:

  • Network Address — the first address in the range, with every host bit set to zero.
  • Prefix Length — the number of network bits, shown after the slash in CIDR notation.
  • Total Addresses — how many individual addresses fall inside the block.
  • Reverse DNS Entry — the in-addr.arpa-style name used to look the address up in reverse.

Understanding CIDR Notation and Prefix Length

CIDR notation packs the address and its prefix length into one string, like 2001:db8:abcd::/48. The number after the slash is the prefix length — the count of leading bits that make up the network portion. Everything after that boundary is the host identifier, free for you to assign to individual devices or a smaller subnetwork. The relationship is fixed: for a prefix length of \(p\), the block contains

$$2^{128 - p}$$

individual IPv6 addresses, whether you're looking at a tiny /127 point-to-point link or a /32 block handed to an internet service provider. Converting that prefix length into a binary subnet mask makes the boundary visible bit by bit, though most engineers today just read the prefix length directly rather than expanding it into a subnet mask. Some routing protocols and older access-control lists still reference a wildcard mask — the inverted form of a subnet mask — even though a typical IPv6 deployment rarely needs one.

Network Address and Broadcast Address

The network address is the first address in the block — every host bit set to zero — and it identifies the subnetwork itself rather than any single device. The host address portion, everything past that boundary, is yours to assign to individual devices. IPv4 reserves a broadcast address at the top of the range for one-to-many delivery, but IPv6 doesn't need one — multicast handles that job instead, so the entire top address in an IPv6 host range is still usable. That's why the usable host range spans the entire block rather than stopping two addresses short the way an IPv4 network does.

IPv6 CIDR Calculator Basics: Classless Inter-Domain Routing Explained

Before CIDR, the internet assigned address blocks in fixed network class sizes — Class A, B, and C — a rigid ip class system that wasted huge chunks of address space. The Internet Engineering Task Force standardized Classless Inter-Domain Routing in RFC 1518 and RFC 1519, later consolidated in RFC 4632, replacing those fixed boundaries with variable-length subnet masking (VLSM) so a network could be sized to exactly what it needed instead of the nearest class. CIDR also works in reverse for supernets — combining several adjacent smaller blocks into one larger advertised route, the mirror image of subnetting. That's also why today's routers keep such a compact routing table: contiguous blocks aggregate into one advertised route instead of hundreds of individual entries, cutting network congestion at every hop along the path.

From Network Class Addressing to CIDR

A routing prefix under the old system was implied by the address's leading bits; under CIDR, the network prefix is explicit and can end on any bit boundary, not just 8, 16, or 24. Your Internet Service Provider hands you a routing prefix like /48 or /56, and everything past that boundary is yours to subdivide into as many smaller networks as your site needs.

IPv6 vs IPv4: Subnet Calculator Differences You Should Know

Run the same block through an ip subnet calculator built for IPv4 and the math looks familiar, but the scale is completely different. IPv4 addresses are 32 bits, split into four octets written in decimal; IPv6 addresses are 128 bits, split into eight hextets written in hexadecimal format and separated by colons instead of dots. Where an ip address range for a typical IPv4 /24 tops out at 254 usable hosts, a single IPv6 /64 — the default subnet size for a LAN — holds over 18 quintillion addresses, more than every IPv4 address ever issued combined. That shift in modern ip addressing is what lets IPv6 hand out entire /64 blocks instead of rationing single addresses the way IPv4 administrators have had to for decades.

A few transition-era terms still show up in mixed environments. An ipv4 mapped address embeds a legacy 32-bit IPv4 address inside the last 32 bits of a 128-bit IPv6 address, which dual-stack systems use internally. Older tunneling mechanisms like 6to4 carried IPv6 traffic across IPv4-only networks during the early rollout; most networks today use native dual-stack connectivity instead.

128-Bit vs 32-Bit Addressing

That size difference comes from how each network interface is expected to hold identifiers, not just addresses. The table below lists the total number of hosts available at a few common IPv6 prefix lengths, and a quick network breakout like this makes the scale concrete:

Prefix LengthCIDR Notation ExampleHost BitsUsable HostsTypical Use
/322001:db8::/329679,228,162,514,264,337,593,543,950,336Regional registry allocation
/482001:db8:abcd::/48801,208,925,819,614,629,174,706,176Site or organization allocation
/562001:db8:ab00::/56724,722,366,482,869,645,213,696Small business or home ISP allocation
/642001:db8:abcd:1::/646418,446,744,073,709,551,616Standard LAN subnet
/1272001:db8::10/12712Point-to-point router link
/1282001:db8::1/12801Single host address

Under IPv4, planners worried constantly about network downtime caused by outright address exhaustion; IPv6's address space makes that particular failure mode effectively impossible for any single organization to hit.

Binary, Hexadecimal, and Integer ID Formats

Behind the scenes, the calculator represents the same address several different ways so you can drop it straight into whatever tool you're working with next:

  • Binary ID — the full address as 128 ones and zeros, useful for verifying a mask boundary bit by bit.
  • Hex ID — the compact hexadecimal format most engineers read day to day, e.g. 2001:0db8:0000:0000:0000:0000:0000:0001.
  • Integer ID — the address as one large base-10 number, handy for database storage or comparisons.
  • Binary Subnet Mask — the prefix length expressed as 128 mask bits, useful when configuring older equipment that still expects a subnet mask instead of slash notation.
  • in-addr.arpa Entry — the reverse DNS lookup name, part of the domain name system, used to resolve the address back to a hostname.

Using an IPv6 Subnet Calculator for Real-World Subnetting

Once you know the range, the practical work starts: subnetting a /48 site allocation into /64 LANs, or checking whether a /56 from your cloud networking provider leaves room to grow. An ipv6 subnet calculator tool like this one turns that planning from a spreadsheet exercise into a lookup, which matters most the moment you're standing in front of a router console with a change window closing.

IPv6 Subnet Calculator Use Cases for Network Administrators

A gateway router sits at the boundary of every subnet, and it needs the correct network address and prefix length to forward traffic anywhere outside that block — get the CIDR wrong and packets silently vanish instead of reaching their destination. Every network interface you check maps back to the same routing logic: read the destination address, match it against the routing table, forward the ip packet to the next hop. Because that logic never changes, a quick lookup here saves a slow troubleshooting session later, and firewall rules, DNS records, and reverse-DNS zones all key off the exact boundaries this ipv6 subnet calculator returns.

Best Practices When Subnetting IPv6 Networks

Plan your subnetting hierarchy before you assign a single address: reserve a consistent block size per site, per VLAN, or per environment so a /64 always means the same thing across your network. Document each network address and its prefix length alongside the device or purpose it serves, the same way you'd document an IPv4 ip subnet calculator result, so the next person troubleshooting the network doesn't have to reverse-engineer your addressing scheme from scratch.

Related Network Tools

Explore these related tools for subnet calculation and IP address management.

Additional networking calculators for IP address planning and network analysis.

About the author

Subash Geetha Krishnan

Tech Lead for Nimble Storage at HPE Services Storage Support

Subash Geetha Krishnan is a Tech Lead for Nimble Storage at HPE Services Storage Support, based in Singapore, with over 15 years of experience in enterprise storage solutions. He created SubnetCalculate so that accurate networking calculations are free and easy for everyone.

  • Content author: Subash Geetha Krishnan
  • Fact checked by: Subash Geetha Krishnan. Each calculator is built on industry-standard algorithms and tested against known results before it goes live.
  • Published Updated

Comments & Feedback

Share your experience or ask questions about this tool