Subnet Calculator
Calculate subnet masks, CIDR, IP ranges, network addresses, and host details instantly.
Network Address
171.61.163.201/30
Was this calculator helpful?
Your feedback helps us improve our calculators.
What Is a Subnet Calculator?
A subnet calculator is an online networking tool that determines the network information associated with an IP address and subnet mask or CIDR prefix.
For IPv4, it can identify values such as the network address, broadcast address, usable host range, subnet mask, wildcard mask, and number of available addresses. An IPv6 subnet calculator uses the IPv6 address and prefix length to determine the network and its address range.
Subnetting divides an IP network into smaller logical networks called subnets. It helps organizations organize IP addresses, separate network segments, simplify routing, and use available address space more efficiently.
Instead of performing binary calculations manually, an IP subnet calculator can produce these values instantly.
How to Use the Subnet Calculator
The calculator provides separate options for IPv4 and IPv6 because the two address systems have different structures and subnetting rules.
Calculate an IPv4 Subnet
To use the IPv4 subnet calculator:
Select IPv4.
Enter your IPv4 address, such as 171.61.163.201.
Select the required Subnet Mask / CIDR, such as 255.255.255.252 /30.
Review the calculated network information.
For IPv4, the calculator can display the network address, usable host range, broadcast address, total hosts, usable hosts, subnet mask, wildcard mask, binary subnet mask, IP class, CIDR notation, IP type, and additional IP representations.
For example, entering:
IP Address: 171.61.163.201
CIDR: /30
gives the network address:
171.61.163.200
The usable addresses are 171.61.163.201 through 171.61.163.202, while 171.61.163.203 is the broadcast address.
Calculate an IPv6 Subnet
To use the IPv6 subnet calculator:
Select IPv6.
Enter a valid IPv6 address.
Choose the required Prefix Length, such as /64.
Check the calculated IPv6 network details.
The calculator provides information including the full IP address, prefix, network, total IP addresses, start range, and end range.
Unlike IPv4, IPv6 does not use a broadcast address. IPv6 uses other mechanisms, including multicast, instead of traditional IPv4 broadcast addressing.
How Does Subnet Calculation Work?
Subnet calculation determines which portion of an IP address identifies the network and which portion is available for addressing within that network.
With IPv4, an address contains 32 bits. A CIDR prefix tells you how many of those bits identify the network.
For example:
192.168.1.50/24
The /24 means the first 24 bits represent the network prefix, leaving 8 bits for the remaining address space.
IPv4 Network Address Formula
The network address is calculated by performing a bitwise AND operation between the IPv4 address and subnet mask.
Network Address=IP Address∧Subnet Mask
For example, an IP address of 192.168.1.50 with the subnet mask 255.255.255.0 belongs to:
192.168.1.0/24
So, 192.168.1.0 is the network address.
Broadcast Address Formula
For a standard IPv4 subnet, the broadcast address is the final address in the subnet.
It can be calculated using the network address and wildcard mask:
Broadcast Address=Network Address∨Wildcard Mask
For 192.168.1.0/24, the broadcast address is:
192.168.1.255
The broadcast address is not normally assigned to an individual device.
Total IPv4 Addresses Formula
If the CIDR prefix length is p, the number of IPv4 addresses in the subnet is:
Total Addresses=232−p
For a /24 network:
232−24=28=256
So, a /24 contains 256 total IPv4 addresses.
Usable IPv4 Hosts Formula
For conventional IPv4 subnets, one address represents the network and another represents the broadcast address.
The traditional usable-host formula is:
Usable Hosts=232−p−2
For /24:
28−2=254
That gives 254 traditionally usable host addresses.
There are important exceptions. A /31 can use both addresses on a point-to-point link under RFC 3021, while a /32 represents one IPv4 address rather than a conventional multi-host subnet. Current subnetting references therefore treat /31 and /32 as special cases rather than blindly applying the minus-two rule.
What Is a Subnet Mask?
A subnet mask tells a device which bits of an IPv4 address represent the network and which bits remain for addresses within that network.
A subnet mask is commonly written in dotted-decimal format:
255.255.255.0
It can also be represented using CIDR notation:
/24
These two representations describe the same prefix length:
255.255.255.0 = /24
An online subnet mask calculator makes it easier to convert CIDR information into a subnet mask while also calculating the resulting network range.
Common examples include:
CIDR | Subnet Mask | Total Addresses | Traditional Usable Hosts |
/8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
/16 | 255.255.0.0 | 65,536 | 65,534 |
/20 | 255.255.240.0 | 4,096 | 4,094 |
/22 | 255.255.252.0 | 1,024 | 1,022 |
/23 | 255.255.254.0 | 512 | 510 |
/24 | 255.255.255.0 | 256 | 254 |
/25 | 255.255.255.128 | 128 | 126 |
/26 | 255.255.255.192 | 64 | 62 |
/27 | 255.255.255.224 | 32 | 30 |
/28 | 255.255.255.240 | 16 | 14 |
/29 | 255.255.255.248 | 8 | 6 |
/30 | 255.255.255.252 | 4 | 2 |
/31 | 255.255.255.254 | 2 | Special case* |
/32 | 255.255.255.255 | 1 | Host route* |
*A /31 is commonly used on point-to-point links, where both addresses can be used. A /32 identifies a single IPv4 address or host route.
What Is a Wildcard Mask?
A wildcard mask is the inverse of an IPv4 subnet mask. Bits that are 1 in the subnet mask become 0 in the wildcard mask, and vice versa.
For example:
Subnet Mask: 255.255.255.252
Wildcard Mask: 0.0.0.3
Another common example is:
Subnet Mask: 255.255.255.0
Wildcard Mask: 0.0.0.255
Wildcard masks are commonly encountered in network configuration and access-control rules.
The IP subnet calculator displays the wildcard mask automatically for an IPv4 calculation, so you do not need to invert the subnet mask manually.
What Is CIDR Notation?
CIDR stands for Classless Inter-Domain Routing. CIDR notation represents an IP network by placing a slash and prefix length after the IP address.
For example:
192.168.1.0/24
The /24 means that the first 24 bits form the network prefix.
Because an IPv4 address has 32 bits, that leaves:
32−24=8
bits for the remaining address space.
A few common examples are:
/8 → 8 network-prefix bits
/16 → 16 network-prefix bits
/24 → 24 network-prefix bits
/30 → 30 network-prefix bits
/32 → all 32 IPv4 bits are in the prefix
CIDR replaced reliance on the older classful addressing model and allows networks to use variable prefix lengths. Modern subnetting therefore depends primarily on the CIDR prefix rather than simply treating an address as Class A, B, or C.
IPv4 Subnet Calculator
An IPv4 subnet calculator takes an IPv4 address and subnet mask/CIDR and calculates the boundaries and other properties of its subnet.
For example, consider:
IP Address: 171.61.163.201
Subnet Mask: 255.255.255.252
CIDR: /30
The calculated values are:
Result | Value |
Network Address | 171.61.163.200 |
Usable Host Range | 171.61.163.201 – 171.61.163.202 |
Broadcast Address | 171.61.163.203 |
Total Addresses | 4 |
Traditional Usable Hosts | 2 |
Subnet Mask | 255.255.255.252 |
Wildcard Mask | 0.0.0.3 |
CIDR | /30 |
A /30 leaves two host bits:
32−30=2
Therefore:
22=4
The subnet contains four total addresses. In this conventional /30, the first is the network address and the last is the broadcast address, leaving two usable host addresses.
This matches the type of core output expected from modern IPv4 subnet tools and the calculation model used across current subnet-calculator results.
IPv6 Subnet Calculator
An IPv6 subnet calculator determines the network information for an IPv6 address based on its prefix length. Since IPv6 uses 128-bit addresses instead of the 32-bit addresses used by IPv4, IPv6 networks can contain an extremely large number of addresses.
You can enter an IPv6 address, choose a prefix length, and calculate details such as the IPv6 network, full IP address, prefix, total IP addresses, start range, and end range.
For example, an IPv6 address may look like:
2001:db8:85a3:8a2e:370:7334
with a prefix length of:
/64
The /64 means the first 64 bits identify the network prefix, leaving the remaining 64 bits for the interface/address portion.
How Many Addresses Are in an IPv6 /64?
IPv6 contains 128 bits. Therefore, the number of addresses within an IPv6 prefix can be calculated as:
Total IPv6 Addresses=2128−p
where p is the prefix length.
For a /64:
2128−64=264
which equals:
18,446,744,073,709,551,616
So, a single IPv6 /64 contains 18,446,744,073,709,551,616 addresses.
This huge address space is one of the major differences between IPv4 and IPv6.
What Does /64 Mean in IPv6?
An IPv6 /64 means that the first 64 bits make up the network prefix and the remaining 64 bits are available for interface identifiers within that subnet.
A /64 is commonly used for IPv6 LAN subnets, particularly because several standard IPv6 mechanisms are designed around 64-bit interface identifiers.
However, /64 is not the only valid IPv6 prefix length. Different prefixes can be used depending on the network design and purpose.
An IPv6 subnet calculator makes it easier to determine the exact network boundaries for the selected prefix without manually working through a 128-bit address.
Does IPv6 Have a Broadcast Address?
No. IPv6 does not use broadcast addresses in the way IPv4 does.
A traditional IPv4 subnet commonly has a dedicated broadcast address at the end of its range. IPv6 instead uses mechanisms such as multicast to communicate with groups of devices.
For this reason, you should not expect the IPv6 results of an online subnet calculator to contain the same broadcast-address field found in its IPv4 results.
IPv4 vs. IPv6 Subnetting
IPv4 and IPv6 both use prefixes to define network boundaries, but their address sizes and behavior differ significantly.
Feature | IPv4 | IPv6 |
Address Length | 32 bits | 128 bits |
Example | 192.168.1.10 | 2001:db8::10 |
Maximum Prefix | /32 | /128 |
Common Network Example | 192.168.1.0/24 | 2001:db8:1::/64 |
Subnet Mask | Often shown in dotted decimal | Prefix length normally used |
CIDR/Prefix | Yes | Yes |
Broadcast Address | Used in conventional subnets | No IPv4-style broadcast |
Address Space | About 4.3 billion total addresses | 2128 total addresses |
Wildcard Mask | Commonly associated with IPv4 | Not normally used like IPv4 wildcard masks |
An IPv4 subnet calculator is often focused on finding network addresses, broadcast addresses, subnet masks, and usable host ranges.
An IPv6 subnet calculator, by comparison, focuses on the network prefix and IPv6 address range.
Subnet Calculation Example
A practical example makes it easier to understand how an IP address calculator determines subnet boundaries.
Suppose you have:
IP Address: 171.61.163.201
CIDR: /30
A /30 subnet has 30 network bits and 2 remaining bits:
32−30=2
That means the subnet contains:
22=4
total addresses.
The /30 subnet mask is:
255.255.255.252
This creates blocks of four addresses in the final octet.
The IP address 171.61.163.201 falls within the block:
200–203
Therefore, the subnet is:
Property | Result |
IP Address | 171.61.163.201 |
Network Address | 171.61.163.200 |
First Usable Address | 171.61.163.201 |
Last Usable Address | 171.61.163.202 |
Broadcast Address | 171.61.163.203 |
Total Addresses | 4 |
Usable Hosts | 2 |
Subnet Mask | 255.255.255.252 |
Wildcard Mask | 0.0.0.3 |
CIDR | /30 |
This is why simply knowing an IP address is not enough to determine its network. The prefix or subnet mask is also required.
For example, 171.61.163.201/24 and 171.61.163.201/30 contain the same IP address but represent very different network ranges.
Why Does the Subnet Mask Matter?
A subnet mask defines which part of an IPv4 address belongs to the network prefix.
Consider the same IP address with two different masks:
192.168.1.100/24
and
192.168.1.100/26
For /24, the network is:
192.168.1.0/24
It contains 256 total IPv4 addresses.
For /26, the address belongs to:
192.168.1.64/26
A /26 contains only 64 total addresses.
The IP address has not changed, but changing the prefix changes the network boundary and size.
That is why an IP subnet calculator needs both the IP address and the appropriate subnet mask or CIDR prefix.
Network Address vs. IP Address
An IP address identifies an interface or address within an IP network, while a network address identifies the subnet itself.
For example:
192.168.10.25/24
has the network address:
192.168.10.0
Here:
192.168.10.25 is the entered IP address.
192.168.10.0 identifies the network.
/24 defines the network prefix.
Confusing the host IP with the network address is a common subnetting mistake.
A subnet calculator online can quickly determine the correct network address from the IP and prefix.
Public vs. Private IPv4 Addresses
An IP address calculator may also help identify information about the entered IPv4 address, including whether it belongs to a private or public range.
The private IPv4 address blocks defined for private networks are:
Private Range | CIDR |
10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 |
172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 |
192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 |
Private addresses are commonly used inside home, office, and enterprise networks. They are not globally routed on the public Internet.
An address outside these ranges should not automatically be assumed to be an ordinary public address, however. IPv4 also contains ranges reserved for loopback, link-local, documentation, multicast, and other special purposes.
What Is IP Class?
Older IPv4 networks were divided into address classes. You may still encounter terms such as Class A, Class B, and Class C when studying networking or reviewing IP information.
The traditional class ranges include:
Class | First Octet | Historical Default Mask |
Class A | 1–126 | 255.0.0.0 (/8) |
Class B | 128–191 | 255.255.0.0 (/16) |
Class C | 192–223 | 255.255.255.0 (/24) |
Class D addresses are associated with multicast, while Class E was historically reserved for experimental purposes.
Modern IP routing uses CIDR (Classless Inter-Domain Routing) rather than relying on these historical class boundaries. Therefore, the actual CIDR prefix should be used when determining a modern subnet.
If an IPv4 subnet calculator displays an IP class, treat it as additional classification information rather than the rule that determines the subnet size.
When and Where to Use a Subnet Calculator
A subnet calculator is useful whenever you need to understand or plan IP network boundaries.
Network planning: Determine how large a subnet is and which addresses fall within it.
Router configuration: Check network addresses and prefixes before configuring routes or interfaces.
VLAN planning: Assign separate address ranges to different network segments.
Firewall configuration: Verify CIDR blocks and network ranges before creating network rules.
Cloud networking: Plan address ranges for virtual networks, subnets, and other cloud resources.
Troubleshooting: Check whether IP addresses should belong to the same subnet.
IP allocation: Estimate the address capacity available under a particular prefix.
Network documentation: Record network, range, subnet mask, and CIDR information consistently.
Learning subnetting: Students can use calculated results to check manual subnetting exercises.
For production networks, calculated information should still be checked against the actual network design and configuration before making critical changes.
Who Should Use a Subnet Calculator?
A subnet calculator online can help anyone who works with IP addresses and network ranges.
Network Administrators
Network administrators can use it when assigning addresses, creating subnets, managing VLANs, or troubleshooting network connectivity.
Network Engineers
Engineers can quickly verify CIDR prefixes, network boundaries, address capacity, and host ranges while designing or reviewing networks.
System Administrators
System administrators may need subnet information when configuring servers, virtual machines, gateways, DNS services, or network interfaces.
Cloud Engineers
Cloud platforms rely heavily on CIDR blocks for virtual networks and subnets. A calculator can help check a proposed address block before it is used.
Cybersecurity Professionals
Security teams frequently work with CIDR ranges when reviewing firewall rules, access controls, logs, and network segmentation.
Developers
Developers working with networking applications, infrastructure tools, APIs, or IP validation may need to inspect IP ranges and prefixes.
Networking Students
Students studying subnetting, IPv4, IPv6, CIDR, or networking certifications can use the calculator to verify their manual calculations.
Common Subnetting Mistakes
Subnetting errors can lead to incorrect IP assignments, overlapping networks, routing problems, or inaccurate firewall rules.
Confusing the IP Address With the Network Address
An address such as 192.168.1.50/24 is not the network address.
Its network is:
192.168.1.0/24
Always calculate the network boundary instead of assuming the entered IP identifies the subnet itself.
Using the Wrong CIDR Prefix
A small prefix change can make a large difference in network size.
For example:
/24=256total addresses
while:
/25=128total addresses
Make sure the selected prefix matches the intended network design.
Confusing Total Addresses With Usable Hosts
For a conventional IPv4 /24, there are 256 total addresses but traditionally 254 usable host addresses.
The network and broadcast addresses normally account for the difference.
Remember that /31 and /32 require special treatment, so the standard minus-two rule should not be applied blindly.
Mixing Up a Subnet Mask and Wildcard Mask
For a /24:
Subnet Mask: 255.255.255.0
Wildcard Mask: 0.0.0.255
They are related, but they are not interchangeable.
Assuming IPv6 Has a Broadcast Address
IPv6 does not use IPv4-style broadcast addresses. Do not apply IPv4 broadcast calculations to an IPv6 subnet.
Assuming Every IPv6 Network Must Be /64
/64 is extremely common for IPv6 LAN subnets, but IPv6 supports prefix lengths from /0 through /128. The appropriate prefix depends on how the network is being used.
Ignoring Overlapping Subnets
Two overlapping address blocks can cause network design and routing problems.
For example:
192.168.1.0/24
already covers the addresses contained in:
192.168.1.128/25
Do not allocate both as independent networks in places where overlapping address space is not intended.
Tips for Accurate Subnet Planning
Start by determining how many addresses your network needs rather than choosing a subnet simply because the prefix looks familiar. Remember to consider future growth so you do not immediately outgrow the selected address block.
Keep a clear record of assigned network ranges, gateways, VLANs, and CIDR prefixes. Good documentation makes it easier to avoid accidental overlap and troubleshoot network problems later.
When configuring routes, firewalls, cloud networks, or access-control rules, double-check the CIDR prefix. A prefix that is too broad can include addresses you did not intend to cover, while one that is too narrow can exclude required addresses.
Treat IPv4 and IPv6 as separate addressing systems rather than assuming every IPv4 subnetting rule applies directly to IPv6.
Finally, use the online subnet calculator to speed up the calculation, but verify important network changes against your organization's network plan before applying them.
Subnet Size and Host Capacity
Choosing the right subnet size depends on how many IP addresses the network needs. In IPv4, a shorter CIDR prefix creates a larger network, while a longer prefix creates a smaller network.
For example:
CIDR | Total Addresses | Traditional Usable Hosts |
/24 | 256 | 254 |
/25 | 128 | 126 |
/26 | 64 | 62 |
/27 | 32 | 30 |
/28 | 16 | 14 |
/29 | 8 | 6 |
/30 | 4 | 2 |
Suppose you need addresses for 50 devices. A /27 would be too small because it traditionally provides only 30 usable host addresses. A /26 provides 62 usable host addresses, so it could accommodate 50 devices under conventional IPv4 subnetting.
An IP subnet calculator helps you compare these ranges without manually calculating powers of two each time.
How to Calculate a Subnet Manually
A subnet calculator is faster for everyday use, but understanding the manual process can help you verify results and learn how subnetting works.
Suppose the IP address is:
192.168.10.70/26
Step 1: Find the Subnet Mask
A /26 means the subnet mask contains 26 leading 1 bits:
11111111.11111111.11111111.11000000
In decimal, this becomes:
255.255.255.192
Step 2: Calculate the Block Size
The interesting octet of the mask is 192.
The block size is:
256−192=64
That gives subnet boundaries in the last octet at:
0, 64, 128, 192
Step 3: Find the Network Address
The IP's final octet is 70.
Since 70 falls within the 64–127 block, the network address is:
192.168.10.64
Step 4: Find the Broadcast Address
The final address before the next subnet begins is:
192.168.10.127
Therefore, the broadcast address is:
192.168.10.127
Step 5: Find the Usable Host Range
For this conventional subnet, the addresses between the network and broadcast addresses are:
192.168.10.65 – 192.168.10.126
So the complete result is:
Property | Result |
IP Address | 192.168.10.70 |
CIDR | /26 |
Subnet Mask | 255.255.255.192 |
Network Address | 192.168.10.64 |
Broadcast Address | 192.168.10.127 |
Usable Host Range | 192.168.10.65 – 192.168.10.126 |
Total Addresses | 64 |
Traditional Usable Hosts | 62 |
Using an IPv4 subnet calculator performs these steps automatically, but knowing the process makes the results easier to understand.
Subnet Mask vs. CIDR
A subnet mask and CIDR prefix can describe the same IPv4 network boundary, but they use different formats.
For example:
255.255.255.0
is equivalent to:
/24
The subnet mask represents the network bits using four decimal octets. CIDR notation simply states the number of leading network-prefix bits.
Here are a few examples:
Subnet Mask | CIDR |
255.0.0.0 | /8 |
255.255.0.0 | /16 |
255.255.240.0 | /20 |
255.255.252.0 | /22 |
255.255.255.0 | /24 |
255.255.255.128 | /25 |
255.255.255.192 | /26 |
255.255.255.224 | /27 |
255.255.255.240 | /28 |
255.255.255.248 | /29 |
255.255.255.252 | /30 |
CIDR notation is widely used because it is compact and works naturally with modern classless networks.
Frequently Asked Questions (FAQs)
What is a subnet calculator?
A subnet calculator is a tool that calculates network information from an IP address and subnet mask or prefix length. Depending on whether you use IPv4 or IPv6, it can determine information such as the network address, address range, prefix, subnet mask, broadcast address, and host capacity.
How do I calculate a subnet from an IP address?
For IPv4, you need both the IP address and subnet mask or CIDR prefix. The network address is found by performing a bitwise AND operation between the IP address and subnet mask:
Network Address=IP Address∧Subnet Mask
An online subnet calculator performs this calculation automatically.
How do I calculate a subnet mask?
A CIDR prefix tells you how many leading bits of the IPv4 subnet mask are 1.
For example, /24 contains 24 network bits:
11111111.11111111.11111111.00000000
Converting each octet to decimal gives:
255.255.255.0
Therefore:
/24=255.255.255.0
A subnet mask calculator can perform this conversion instantly.
What does /24 mean in an IP address?
/24 means that the first 24 bits of a 32-bit IPv4 address form the network prefix.
That leaves:
32 − 24 = 8
remaining bits, giving:
28=256
total IPv4 addresses in the subnet.
How many usable hosts are in a /24 subnet?
A conventional IPv4 /24 subnet contains 256 total addresses.
After reserving the network and broadcast addresses, it traditionally provides:
256 − 2 = 254
usable host addresses.
What does /30 mean?
A /30 IPv4 prefix leaves two bits outside the network prefix:
32 − 30 = 2
Therefore:
22=4
A conventional /30 contains four total addresses: one network address, two usable host addresses, and one broadcast address.
What is the difference between a subnet mask and CIDR?
A subnet mask and CIDR prefix can represent the same IPv4 network boundary in different formats.
For example:
255.255.255.0
and:
/24
describe the same prefix length.
CIDR notation is shorter and is commonly used to represent network ranges, such as 192.168.1.0/24.
What is the difference between an IP address and a network address?
An IP address can identify an interface within a network, while the network address identifies the subnet itself.
For example, with:
192.168.1.50/24
the entered IP address is:
192.168.1.50
while its network address is:
192.168.1.0
The prefix is necessary to determine that network boundary.
What is a broadcast address?
In conventional IPv4 subnetting, the broadcast address is the final address in the subnet and is used to send traffic to all hosts on that subnet.
For example, the broadcast address of:
192.168.1.0/24
is:
192.168.1.255
IPv6 does not use this type of broadcast addressing.
What is a wildcard mask?
A wildcard mask is the bitwise inverse of an IPv4 subnet mask.
For example:
Subnet mask: 255.255.255.0
Wildcard mask: 0.0.0.255
Wildcard masks are often encountered in networking configurations and access-control rules.
What is the difference between total hosts and usable hosts?
The total-address count represents every address in an IPv4 subnet. The traditional usable-host count excludes the network and broadcast addresses in conventional subnets.
For example, a /29 contains:
232−29=8
total addresses and traditionally provides:
8 − 2 = 6
usable host addresses.
Special prefixes such as /31 and /32 should be treated separately.
What is a /31 subnet used for?
An IPv4 /31 contains two addresses. Under RFC 3021, /31 networks can be used on point-to-point links without reserving separate network and broadcast addresses, allowing both addresses to serve as endpoints.
This is an exception to the traditional usable-host formula.
What does /32 mean in IPv4?
An IPv4 /32 represents a single address because all 32 bits are included in the prefix.
It is commonly used when referring to one specific host address, such as in routing and access-control configurations.
Does IPv6 use subnet masks?
IPv6 normally expresses the network boundary using a prefix length rather than an IPv4-style dotted-decimal subnet mask.
For example:
2001:db8:1234::/64
The /64 indicates that the first 64 bits form the network prefix.
What does /64 mean in IPv6?
An IPv6 /64 uses the first 64 of its 128 bits for the network prefix, leaving 64 remaining bits.
The number of addresses is:
2128−64=264
or:
18,446,744,073,709,551,616 addresses
A /64 is commonly used for IPv6 LAN subnets, although other prefix lengths are valid for different purposes.
Does IPv6 have a broadcast address?
No. IPv6 does not use the traditional broadcast addressing found in IPv4. It uses mechanisms such as multicast instead.
This is why an IPv6 subnet calculator should not show an IPv4-style broadcast address as part of an IPv6 subnet calculation.
How do I know if two IP addresses are on the same subnet?
Calculate the network address of each IP using the same subnet mask or prefix. If both produce the same network address, they belong to the same IP subnet under that prefix.
For example:
192.168.1.10/24
and:
192.168.1.200/24
both belong to:
192.168.1.0/24
However, changing the prefix can change whether two addresses belong to the same subnet.
What is the difference between IPv4 and IPv6 subnet calculators?
An IPv4 subnet calculator works with 32-bit IPv4 addresses and commonly calculates the network address, broadcast address, subnet mask, wildcard mask, and usable host range.
An IPv6 subnet calculator works with 128-bit IPv6 addresses and prefix lengths. It focuses on values such as the IPv6 network, prefix, total address space, and start and end ranges. IPv6 does not have the traditional broadcast address used by IPv4.
Conclusion
A subnet calculator makes IPv4 and IPv6 subnetting faster and easier by calculating network information directly from an IP address and prefix. Instead of manually working through binary conversions, you can use the calculator to check network boundaries, address ranges, masks, host capacity, and other important IP details.
Whether you are planning a network, checking a CIDR range, troubleshooting an IP configuration, or learning subnetting, the subnet calculator online gives you the information needed to understand an IPv4 or IPv6 network more clearly.
Helpful Resources
Pro Tips
Enter a valid IPv4 or IPv6 address to ensure accurate subnet calculation results.
Select the correct subnet mask or CIDR prefix length based on your network configuration.
Use subnet calculators when designing or managing computer networks.
Double-check the IP address and subnet mask before calculating.
Subnet calculations help network administrators manage IP ranges, improve network organization, and optimize address allocation.