Network · IPv6 planning
IPv6 subnet calculator.
Normalize any IPv6 address and prefix, find its exact range, then split the block into a longer child prefix such as /64.
No broadcast address: IPv6 uses multicast instead. This calculator shows the mathematical first and last addresses in the prefix.
How to calculate an IPv6 prefix
- Enter an IPv6 address and prefix length, such as 2001:db8::/48.
- Optionally enter a longer child prefix, such as /64, to split the block.
- Press Calculate prefix.
- Read the normalised network, the first and last addresses, the size and the host bits, and see the child subnets.
Reading the results
An IPv6 address has 128 bits. A prefix length n fixes the first n bits and leaves 128 minus n bits inside the block, so a /64 contains 2 to the power 64 addresses. To split a /48 into /64 subnets you add 16 prefix bits, which gives 65,536 child prefixes. The calculator uses exact 128-bit arithmetic, so huge ranges are shown precisely rather than rounded.
A /64 is the usual size for a single link and is required by features such as SLAAC, but other prefix lengths are valid and common for allocations: a /48 for a site, a /56 for a home, a /32 for a large organisation. If you enter host bits, they are cleared to show the real network address.
Calculated on your device
The calculator runs in your browser, inside an isolated frame on this page that has no network access. Your file is read and written back by your own device, so it is not uploaded to TNAADO or anyone else, and nothing is stored. The advertising on this page sits outside the frame and cannot see what you choose. Your address plan is not uploaded.
- The child prefix must be the same as or longer than the input prefix.
- Very large splits list a sample rather than every subnet.
How IPv6 prefix math works
RFC 4291 defines an IPv6 address as 128 bits. A prefix length n fixes the leftmost n bits and leaves 128 minus n bits inside the prefix. The first address has all remaining bits zero; the last has them all one. A /64 therefore contains 264 addresses.
To split a /48 into /64s, the calculator uses 16 more prefix bits: 216, or 65,536 child prefixes. RFC 7421 explains that IPv6 routing supports variable-length prefixes through /128; /64 is the normal subnet size for many unicast links and SLAAC, but it is not the only prefix routing can represent.
Specifications: RFC 4291 sections 2 and 2.3, RFC 5952 for canonical text, and RFC 7421 for prefix-length context.
Worked example
The default input is 2001:db8:abcd:12::1234/56. A /56 keeps the first 56 bits, which is three full groups (2001:db8:abcd) plus the first 8 bits of the fourth group. The fourth group 0012 becomes 00, so the prefix normalizes to 2001:db8:abcd::/56. The first address is 2001:db8:abcd::, and the last is 2001:db8:abcd:ff:ffff:ffff:ffff:ffff. With 128 − 56 = 72 host bits the prefix holds 272 = 4,722,366,482,869,645,213,696 addresses.
Splitting it into /64s uses 8 more bits, so there are 28 = 256 child prefixes, from 2001:db8:abcd::/64 to 2001:db8:abcd:ff::/64. The address you typed lies in 2001:db8:abcd:12::/64, child number 18 counting from 0 (0x12 = 18).
Frequently asked questions
How many /64 subnets are in a /48?
65,536, because a /48 to /64 split uses 16 more bits and 216 = 65,536. A /56 holds 256 /64s.
Does IPv6 have a broadcast address I must skip?
No. IPv6 has no broadcast address. The first address of each subnet, with the interface identifier all zeros, is the Subnet-Router anycast address (RFC 4291 section 2.6.1), so avoid assigning it to a host.
Why do providers give a /56 or /48 instead of one /64?
RFC 6177 no longer recommends one fixed size for every end site and allows operators to hand out smaller blocks such as a /56. Whatever you get, each LAN normally uses one /64.
Does this tool check that my prefix is allocated to me?
No. It does the prefix arithmetic only and never contacts a registry or a network, so confirm the allocation with your provider.
Sources
Last checked
- RFC 4291 sections 2 and 2.3 (addresses and prefixes) and 2.6.1 (Subnet-Router anycast)
- RFC 5952 (canonical text form)
- RFC 7421 (analysis of the 64-bit boundary)
- RFC 6177 (IPv6 address assignment to end sites)
Standards cited as published; the arithmetic and defaults are this tool’s own. Runs entirely in your browser. Nothing you type is sent or stored.
Address-plan arithmetic
This does not reserve, assign, route, scan, or test any prefix. Confirm your provider allocation and equipment requirements before changing a live network.