128 bits
IPv6 has a vastly larger address space than IPv4.
6 min readLast updated
Photo: Hugovanmeijeren · CC BY-SA 3.0
The short answer
IPv6 uses 128-bit addresses, compared with 32-bit addresses in IPv4. That expands the theoretical address space to approximately 3.4 times ten to the power of 38 possible bit patterns.
Why it's true
Address length grows the available space exponentially, not linearly. IPv6 addresses are four times as long in bits as IPv4 addresses, but the theoretical space is two to the power of 96 times larger. That difference is far greater than simply having four times as many addresses.
The larger space supports hierarchical allocation and large network prefixes without requiring every address to be used densely. Network planners can reserve room for growth and organize subnets systematically, rather than treating each individual address as an exceptionally scarce resource.
Address capacity is not the same as the number of devices that can realistically connect. Some patterns serve special purposes, and operational allocations leave enormous ranges unused. Routing capacity, infrastructure, policy, and security still constrain real networks even when the mathematical address space is vast.
By the numbers
128 bits
IPv6 address size
32 bits
IPv4 address size
~3.4 × 10^38
Theoretical IPv6 addresses
The backstory
IPv4 became the foundation of the expanding Internet, but its 32-bit space contains only about 4.3 billion possible address values before reservations and allocation constraints are considered. Growth in connected networks and devices made the long-term limits of that space increasingly important.
IPv6 was developed in response to those limits and other protocol design goals. Its current core Internet Standard specification is RFC 8200, published in 2017. The IPv6 addressing architecture is described separately in RFC 4291. Together, these documents distinguish the packet protocol from the structure and meaning of its addresses.
The familiar written representation uses hexadecimal groups separated by colons. Leading zeros in a group can be omitted, and one consecutive sequence of all-zero groups can be compressed using a double colon. These notation rules shorten the displayed address without changing its underlying 128-bit value.
The wider picture
A typical IPv6 subnet uses a /64 prefix, leaving 64 bits for the interface identifier portion. That is an architectural convention with important uses in common IPv6 mechanisms, not a claim that every possible interface identifier will be assigned. Other prefix lengths appear in particular operational contexts.
IPv6 and IPv4 do not become directly interchangeable merely because both carry Internet traffic. Networks may use dual stack operation, translation, or other transition arrangements so that users can reach services during coexistence. An IPv6 address alone does not ensure access to a service available only over IPv4.
A large address space also does not make security automatic. Globally unique addressing can reduce the need for address-sharing techniques, but firewalls, access controls, software updates, and monitoring remain necessary. Whether an inbound connection is permitted depends on network policy and configuration, not simply on how many address bits a protocol uses.
Worth remembering
- Compare address spaces using powers of two: adding address bits multiplies capacity rather than merely adding a few slots.
- Treat the enormous theoretical total as a mathematical property, not a count of usable public devices or active connections.
- Plan deployment, routing, and security explicitly; a larger address space does not solve every networking problem by itself.
In context
IPv6 expands network addressing, while DNS supplies names associated with network information. Neither substitutes for the other. A readable name can resolve to an IPv6 address, but successful use still depends on routing and service availability. This separates mathematical address capacity from the operational work of connecting a real user to a service.
A closer look
Address notation is only a representation
The colons and hexadecimal digits are a readable form of a binary value. Abbreviating zeros changes the written form without changing the address itself. This is similar to expressing a storage quantity in different notation: the representation can become shorter while the underlying value remains fixed. Valid abbreviation rules are important because informal shortening can create ambiguity.
More addresses do not grant permission
A globally unique address identifies a destination within the architecture; it does not require a network to accept every incoming connection. Firewall policy and service configuration remain separate decisions. This distinction prevents a large address space from being marketed as automatic security or automatic exposure. Reachability depends on the deployed network and the controls around it.
Related facts
DNS explains how a readable name becomes useful to networked applications. The Internet’s naming system is distributed, not one giant address book.
The TCP/IP transition explains the infrastructure behind later network services. ARPANET switched to TCP/IP on New Year’s Day.
Wi-Fi separates another familiar technology brand from the capabilities of a connection. Wi-Fi is not formally short for wireless fidelity.
The history of domain registration adds a naming-system perspective to this story. The first .com domain ever registered was symbolics.com, in 1985.
Key terms
- Prefix
- The leading portion of an address used to identify a network range.
- Dual stack
- Operation with support for both IPv4 and IPv6 during coexistence.
People also ask
How many possible IPv6 addresses are there?
There are 2^128 possible 128-bit patterns, approximately 3.4 × 10^38. That is the theoretical space before considering special address categories and practical allocation rules. It should not be presented as a count of currently assigned addresses.
Why do IPv6 addresses contain letters?
They are normally written in hexadecimal, which uses digits 0 through 9 and letters a through f. Each hexadecimal digit represents four bits. Colons separate groups, while abbreviation rules allow some zeros to be left out for readability.
Does IPv6 eliminate the need for a firewall?
No. Address availability and traffic authorization are different issues. A device can have a globally unique address while a firewall blocks unwanted inbound traffic. Safe deployment still requires deliberate security policies rather than reliance on address scarcity or address translation.
Does shortening an IPv6 address remove address bits?
No. Valid abbreviation changes how the same value is written, not the size of the underlying address.
Does an IPv6 address guarantee a website can be reached?
No. Routing, protocol support, name resolution, and service configuration must also work. An address alone does not establish end-to-end availability.