Back to Utiliverse
100% Free and Browser Based

IP Subnet Calculator – IPv4, IPv6, CIDR & IP Range

Calculate IPv4 network and broadcast addresses, usable IP ranges, subnet and wildcard masks, CIDR prefix details, host capacity, and IPv6 network prefixes directly in your browser.

Network details

—

Network
—
Broadcast
—
First host
—
Last host
—
Mask
—
Usable hosts
—

Calculated parameters

Subnet details table

A practical breakdown of the current IPv4 subnet and where each value is commonly used.

ParameterCalculated valueHow to apply it

Browser-based calculation: IP addresses and prefixes entered here are processed locally by the subnet calculator and are not submitted to a Utiliverse processing server. The page itself still loads interface and advertising resources from external providers.

Utiliverse guide

What an IP Subnet Calculator Does

An IP subnet calculator turns an address and network prefix into usable network information. For IPv4, it can identify the network address, broadcast address, subnet mask, host range and number of usable host addresses. For IPv6, the focus is on the network prefix and the size of the address space represented by that prefix.

Subnetting divides an IP network into smaller logical networks. This is fundamental in business LANs, VLANs, cloud environments, data centers, labs and home networks because it provides a structured way to separate traffic and address different groups of devices.

In practice, you can apply the calculator by entering an address already assigned to a device, switch, router interface or proposed VLAN and then checking the resulting network boundary before making configuration changes. The network address can be used in route tables and firewall objects, the subnet mask or prefix can be entered on interfaces and DHCP scopes, and the usable host range helps you decide which addresses are safe for gateways, servers, printers, access points and client devices.

How to Use the IP Subnet Calculator

Choose IPv4 or IPv6, enter the address you want to evaluate, and select the CIDR prefix length. The results update automatically and can also be recalculated with the button in each mode.

In IPv4 mode, the tool returns the network address, conventional broadcast address, first and last host values, subnet mask, wildcard mask, total address capacity and usable host count. In IPv6 mode, it normalizes the network prefix and shows the selected prefix length, remaining host bits and address-space capacity.

CIDR and IPv4

CIDR notation expresses the network boundary with a slash and prefix length. A /24 means 24 bits identify the network and leaves 8 bits for the host portion. The corresponding mask is 255.255.255.0. Longer prefixes create smaller subnets, while shorter prefixes create larger address blocks. For a deeper explanation of prefix boundaries, masks, /31 and /32 behavior, see the CIDR and subnet masks guide.

Traditional IPv4 calculations reserve the network address and broadcast address, leaving fewer usable hosts than total addresses. Special cases such as /31 and /32 have different operational uses, so engineers should interpret those prefixes according to the network design.

IPv6 prefixes

IPv6 uses a much larger address space and identifies the network boundary with a prefix length. IPv6 does not use an IPv4-style broadcast address. A /64 is common in many IPv6 network designs, while larger aggregated prefixes can be divided into multiple networks.

CIDR Prefix Length & IPv4 Subnet Reference

Prefix length is one of the most common subnetting lookups. A larger CIDR prefix means more network bits and a smaller IPv4 address block. The table below provides a quick reference for commonly used IPv4 prefixes, masks, total addresses and conventional usable-host counts.

CIDR prefixSubnet maskTotal addressesConventional usable hosts
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/20255.255.240.04,0964,094
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422 endpoints on supported point-to-point links
/32255.255.255.25511 address / host route

How to read CIDR prefix length

A CIDR value such as /24 means the first 24 bits identify the network and the remaining 8 bits are available for addresses inside that IPv4 block. In IPv6, the same slash notation is used across a 128-bit address. Prefix length is therefore the direct bridge between subnet size, host bits and IP range.

How to find the IP range of a subnet

For IPv4, the network address is the first address in the calculated block and the broadcast address is the last address for conventional prefixes below /31. The usable host range normally starts one address above the network and ends one address below the broadcast. For example, 192.168.10.77/26 belongs to the range 192.168.10.64–192.168.10.127, with conventional usable hosts from .65 through .126.

Common IPv6 prefix lengths

IPv6 /32A large provider or organization allocation size commonly seen in routing and delegation contexts.
IPv6 /48A common site-level allocation size that can be divided into many smaller subnets.
IPv6 /56A delegation size sometimes used for customer or site networks, leaving room for multiple /64 subnets.
IPv6 /64The standard subnet size used by many IPv6 LAN designs and by mechanisms such as SLAAC.
IPv6 /128A single IPv6 address, often used similarly to a host route.
IPv6 calculator outputThe tool normalizes the network prefix, reports host bits, and shows address-space capacity as 2^host-bits.

IPv4 versus IPv6 subnet calculation

An IPv4 subnet calculator commonly focuses on network address, broadcast address, subnet mask, wildcard mask and usable host range. An IPv6 subnet calculator focuses on prefix normalization, prefix length, host bits and address-space capacity because IPv6 does not use an IPv4-style broadcast address.

When Subnet Math Is the Right Troubleshooting Layer

Use this calculator when the question is about address boundaries: whether an IP belongs to a CIDR block, what the network and broadcast addresses are, how many usable IPv4 addresses are available, or what prefix an IPv6 address belongs to. If the addressing math is correct but communication still fails, move to the next layer rather than changing the subnet repeatedly.

DNS problem?If the hostname does not resolve, use the DNS and Network Troubleshooting guide.
Port or transport problem?If the IP is correct but a service is not responding, use the TCP vs UDP Ports guide and Port Checker.
TLS or HTTPS problem?If TCP 443 is reachable but HTTPS still fails, move to the SSL/TLS layer instead of changing the subnet.
Public IP context?Use IP Address Lookup for ASN, organization, and approximate geolocation context; it does not calculate subnet boundaries.

Subnet Calculation Methodology and Limits

The IPv4 calculator converts the entered address to a 32-bit integer, builds a mask from the selected CIDR prefix, then applies bitwise network and broadcast calculations. The IPv6 calculator expands the address into eight hexadecimal groups, converts the 128-bit value to binary, zeros every bit after the selected prefix boundary, and compacts the resulting network prefix for display.

IPv4 network boundaryThe network address is calculated by applying the subnet mask to the entered address. For conventional prefixes below /31, the broadcast address sets all host bits to one.
/31 and /32 handlingThe tool does not label a conventional broadcast address for /31 or /32. A /31 is shown as two endpoints for supported point-to-point use; a /32 represents one address.
IPv6 prefix mathIPv6 has no IPv4-style broadcast address. The tool reports the normalized prefix, host-bit count and address-space capacity as 2^host-bits.
Wildcard maskThe IPv4 wildcard mask is the bitwise inverse of the subnet mask. Whether a device or platform uses wildcard notation depends on that platform's configuration syntax.

Worked example: IPv4 /26

Input: 192.168.10.77/26 Network: 192.168.10.64 Broadcast: 192.168.10.127 Mask: 255.255.255.192 Wildcard: 0.0.0.63 Conventional hosts: 192.168.10.65–192.168.10.126 Usable hosts: 62

Worked example: IPv4 /31

A /31 contains exactly two addresses. On supported point-to-point links, RFC 3021 allows both addresses to be used as endpoints, so the traditional network/broadcast reservation model does not apply in the same way.

Input: 192.0.2.10/31 Block: 192.0.2.10–192.0.2.11 Address count: 2 Conventional broadcast label: Not applicable

Worked example: IPv6 /64

Input: 2001:db8:1234:1::25/64 Network prefix: 2001:db8:1234:1::/64 Host bits: 64 Address-space capacity: 2^64 addresses

Address capacity is not the same as deployable-device count

The tool reports mathematical address capacity. Real networks can reserve addresses for gateways, platform services, DHCP infrastructure, anycast, network appliances, cloud-provider functions, or organizational policy. Cloud platforms in particular can reserve addresses beyond the conventional IPv4 network and broadcast values.

The calculator does not detect overlapping networks

Each calculation evaluates one address/prefix pair at a time. It does not compare two CIDR blocks for overlap, inspect live routes, query DHCP scopes, discover VLANs, or validate firewall objects. Compare proposed ranges separately before deploying them.

Routing reachability is separate from subnet membership

Two addresses can fall inside the same calculated prefix and still fail to communicate because of VLAN separation, firewall policy, host configuration, duplicate addresses, routing, wireless isolation, VPN policy, or other network controls. Conversely, different subnets can communicate when routing permits it.

IPv6 input limitations

The current parser supports standard hexadecimal IPv6 notation, compressed :: notation, and an optional zone identifier such as %eth0. The zone identifier is ignored for prefix math. IPv4-embedded dotted-decimal IPv6 forms are not parsed by this implementation, so convert those to hexadecimal notation before use.

Production network changes require more than subnet math. Verify VLAN, DHCP, routing, firewall, cloud-platform reservations, redundancy, address-management policy, and vendor-specific behavior before applying a calculated range to a live environment.

Related Utiliverse Tools & Guides

Last reviewed: October 9, 2026 · IPv4 bitwise calculations, /31 and /32 handling, IPv6 prefix normalization, wildcard masks, and parser limitations reviewed against the current implementation.

IP Subnet Calculator Use Cases

Network administrators can use a subnet calculator while planning office networks. A business may want separate address space for employees, voice devices, servers, printers and guest Wi-Fi. Calculating the network boundaries helps ensure that each segment has enough capacity.

VLAN planning is another common application. When a VLAN is assigned an IP subnet, the selected prefix needs to accommodate the expected devices without unnecessarily consuming a larger block. A calculator makes these comparisons quick.

Cloud networking also benefits from subnet calculations. Cloud environments commonly use virtual networks, subnets, route tables and security controls. Planning address ranges before deployment can reduce overlap and leave room for expansion.

VPN configuration often requires non-overlapping ranges between locations or environments. Calculate each proposed network, then compare the resulting ranges manually to check for overlap and identify suitable ranges for tunnels.

Home labs and virtualization environments can become surprisingly complex. Separate management, storage, server, testing and guest networks may all need distinct address ranges. A quick subnet calculation helps keep the design organized.

Students studying networking can use the tool to verify subnetting exercises. Manual binary calculations are valuable for learning, but checking an answer against a calculator is a useful way to catch arithmetic mistakes and reinforce concepts.

Security teams can use network boundaries when reviewing firewall and access-control rules. Knowing the exact addresses included in a subnet can prevent rules from being broader or narrower than intended.

IPv6 planning benefits from the same disciplined approach. Because IPv6 provides abundant address space, designers can create clear hierarchical prefixes for sites, departments and services rather than treating addresses as isolated numbers.

During troubleshooting, the network address and prefix can reveal why two devices do or do not belong to the same local subnet. This does not replace routing analysis or packet captures, but it is a useful first verification step.

A simple deployment workflow is to inventory how many devices a segment needs, choose a prefix with enough room for growth, calculate the exact network and host boundaries, reserve addresses for infrastructure, and then apply the same prefix consistently to the router or Layer 3 switch, VLAN interface, DHCP scope, firewall rules and documentation. Before going live, compare the proposed subnet against neighboring networks to avoid overlap and verify that any static addresses fall inside the intended usable range.

IP Subnet Calculator FAQ

What is a subnet prefix length?

A subnet prefix length is the number after the slash in CIDR notation. For example, /24 means 24 bits identify the network portion of an IPv4 address.

How do I calculate an IP range from CIDR?

Enter an IP address and CIDR prefix. The calculator derives the network boundary, broadcast address for conventional IPv4 subnets, and the usable host range.

What does an IP subnet calculator do?

It calculates network and host addressing details from an IP address and prefix, including IPv4 network, broadcast, host range, mask, wildcard mask, and IPv6 prefix information.

Can this calculate IPv6 subnets?

Yes. IPv6 mode accepts a hexadecimal IPv6 address and prefix length and returns the normalized network prefix, host-bit count, and address-space capacity.

What is an IPv6 subnet calculator used for?

It helps identify the normalized IPv6 network prefix and understand how many host bits remain inside a selected prefix such as /48, /56, /64, or /128.

How many usable hosts are in a /24?

A traditional IPv4 /24 contains 256 total addresses and 254 commonly usable host addresses.

What is the subnet mask for /24?

The IPv4 subnet mask for /24 is 255.255.255.0.

What is the subnet mask for /26?

The IPv4 subnet mask for /26 is 255.255.255.192, giving 64 total addresses and 62 conventional usable hosts.

What is the IPv4 broadcast address?

For a conventional IPv4 subnet, the broadcast address is the final address in the block, with all host bits set to one.

How does the calculator handle IPv4 /31 and /32?

A /31 is treated as two usable endpoints for supported point-to-point links, while a /32 represents one address. The tool does not show a conventional broadcast address for either case.

Does IPv6 have a broadcast address?

No. IPv6 does not use the IPv4-style broadcast mechanism, so the IPv6 mode focuses on the normalized prefix, prefix length, host bits, and address-space capacity.

Can the calculator tell whether two subnets overlap?

No. This tool calculates one address and prefix pair at a time. Compare the calculated ranges separately when checking for overlap.

Can I use this for production network design?

It is useful for planning and verification, but production changes should also be checked against routing, firewall, DHCP, VLAN, cloud-platform reservations, and vendor documentation.

Check a subnet with a worked example

Enter 192.168.10.77 and choose /26. The expected network is 192.168.10.64, broadcast is 192.168.10.127, mask is 255.255.255.192, and conventional host range is .65 through .126: 62 usable addresses.

Special prefixes and operational limits

A /31 has two endpoints on supported point-to-point links; a /32 represents one address. The calculator labels those cases without a conventional broadcast address. Cloud platforms may reserve additional addresses. IPv6 capacity is an address-space calculation, not a count of deployable devices. Hexadecimal IPv6 inputs are supported; convert embedded dotted IPv4 notation before use.

The calculator processes inputs locally. It does not inspect routes, discover devices, or automatically compare two networks for overlap. Check VLAN, DHCP, routing and firewall configuration separately.

Related guides

Related tools

Sources

Explanatory content reviewed October 9, 2026. Methodology · Corrections.