IPv6 Subnet Calculator

Full 128-bit IPv6 subnet math — compress and expand any address, get the network prefix, first and last addresses, exact address counts, ip6.arpa reverse DNS and address type classification (GUA, ULA, link-local…), plus prefix planning: how many /64s fit in your /48. Free, instant, no signup.

Documentation

2001:db8::/32 — reserved for examples and docs

Compressed (RFC 5952)

Expanded

First address

Last address

Total addresses in /64

18,446,744,073,709,551,616

≈ 1.84 × 10^19

Standard LAN size

This is one /64 LAN

Reverse DNS (ip6.arpa)

Common IPv6 prefix sizes

Prefix/64 subnetsTypical use
/324.3 billionISP / RIR allocation
/4865,536Business site delegation
/56256Home / small office delegation
/6016Small delegations (some ISPs)
/641One LAN / VLAN (SLAAC works)
/127Router point-to-point links (RFC 6164)
/128Single host / loopback

Working with IPv4 instead? The IPv4 subnet calculator handles masks, wildcards, broadcast addresses and splitting. And What Is My IP shows which IPv6 address you're browsing from right now.

Frequently asked questions

Why is every IPv6 LAN a /64?

Because SLAAC — the stateless auto-configuration that lets devices generate their own addresses — is defined to work only with 64-bit interface identifiers. A /64 gives every LAN 18.4 quintillion addresses, which feels absurd, but the design goal was never address efficiency: it was making every subnet the same size so renumbering, auto-configuration and privacy extensions just work.

Why is there no broadcast address in IPv6?

IPv6 replaced broadcast with multicast. Instead of shouting at every host on the subnet, protocols address well-known multicast groups: ff02::1 reaches all nodes on the link, ff02::2 all routers. That's also why IPv6 subnet math has no "minus 2" — the all-zeros address is the Subnet-Router anycast, but in practice all 2^(128−prefix) addresses in a /64 are usable for hosts.

How many /64 subnets fit in a /48 or /56?

Each bit of prefix difference doubles the count: a /48 contains 65,536 /64s (16 bits of subnetting space) and a /56 contains 256. That's why ISPs commonly delegate a /56 to home users (256 LANs) and a /48 to businesses. If your provider hands you a single /64, you can't subnet it without breaking SLAAC — push back and ask for a /56.

What is a ULA and how does it compare to private IPv4 ranges?

Unique Local Addresses (fc00::/7, in practice fd00::/8 with a random 40-bit global ID) are IPv6's equivalent of 10.0.0.0/8 — routable inside your organisation, never on the public internet. The random global ID means two merged company networks almost certainly won't collide, which was a chronic problem with everyone picking 10.0.0.0/8. Unlike IPv4, hosts typically hold a ULA and a global address simultaneously.

What are the compression rules for writing IPv6 addresses?

RFC 5952 defines the canonical form: lowercase hex, leading zeros dropped in each group, and the single longest run of two or more zero groups replaced with :: (leftmost wins on a tie). So 2001:0DB8:0000:0000:0000:0000:0000:0001 canonically becomes 2001:db8::1. Only one :: is allowed per address — two would be ambiguous.

What is the ip6.arpa reverse DNS format?

Reverse DNS for IPv6 reverses the address one hex nibble at a time and appends .ip6.arpa — so 2001:db8::1 becomes a 32-label name ending in 8.b.d.0.1.0.0.2.ip6.arpa. It's tedious to write by hand (this calculator generates it for you), and mail servers in particular still expect a working PTR record.

When should I use /127 and /128 prefixes?

A /127 is the recommended size for point-to-point links between routers (RFC 6164) — exactly two addresses, and it prevents the ping-pong and neighbor-cache exhaustion attacks a /64 link would allow. A /128 is a single host route: loopbacks on routers, VIPs, and firewall rules pinning one exact address.

Does this calculator also do IPv4?

Yes — the IPv4 version lives at its own page with binary breakdowns, wildcard masks and an IPv4-specific splitter. IPv4 math has usable-host and broadcast rules that don't exist in IPv6, which is why the two calculators are separate tools.

The prefix plan is ready — now watch what answers on it

WatchFor probes are dual-stack: monitor your services over IPv6 (and IPv4) from multiple regions — ping, TCP, HTTP, DNS and 20+ more check types with confirmed alerts.

Free plan · 15 monitors · no credit card required