Calculate IPv4 and IPv6 subnet information with instant results, network addresses, host ranges, and CIDR notation support.
An IP Subnet Calculator is a powerful network tool that takes an IP address and subnet mask (in dotted decimal or CIDR notation) and instantly computes essential subnetting parameters. It calculates the network address, subnet mask, wildcard mask, broadcast address, first and last usable host addresses, and total host count for both IPv4 and IPv6 networks.
This tool eliminates manual bitwise calculations and reduces configuration errors when designing or verifying IP addressing schemes, VLAN layouts, firewall rules, and routing policies. It supports both IPv4 (with classful and CIDR notation) and IPv6 addressing, making it essential for modern dual-stack network environments.
Whether you're a network administrator planning VLANs, a security engineer building ACLs, or a student learning subnetting fundamentals, this calculator provides instant, accurate results with detailed breakdowns of all subnet parameters.
The IP Subnet Calculator processes your IP address and subnet mask to compute all critical network parameters. For IPv4, it calculates the network address in both IP/mask and CIDR notation, subnet mask in dotted decimal, wildcard mask for ACL configuration, network and broadcast addresses, and the complete range of usable host addresses.
For IPv6 networks, the calculator expands compressed addresses, computes the network prefix, determines the prefix length, and calculates the total address space. It handles both fully expanded and compressed IPv6 notation, making it easy to work with modern IPv6 deployments.
Advanced features include support for planning multiple subnets from a given block, calculating supernets for route aggregation, and displaying binary representations to aid in learning and troubleshooting. The tool ensures accurate results for all subnet sizes, from single-host /32 networks to large /8 blocks.
IPv4 uses 32-bit addresses divided into network and host portions by the subnet mask. The calculator performs bitwise AND operations between the IP address and subnet mask to determine the network address. The broadcast address is found by setting all host bits to 1. Usable host addresses are all addresses between the network and broadcast addresses.
For example, in a /24 network (255.255.255.0), the first 24 bits identify the network and the last 8 bits identify hosts, providing 254 usable addresses (256 total minus network and broadcast addresses). The wildcard mask is the bitwise complement of the subnet mask, used in ACL configurations.
IPv6 uses 128-bit addresses, typically written in hexadecimal with colons separating 16-bit segments. The calculator expands compressed notation (::) and applies the prefix length to determine the network portion. Unlike IPv4, IPv6 doesn't use broadcast addresses; instead, it uses multicast for similar functions.
Common IPv6 prefix lengths include /64 for LANs (providing 2^64 addresses), /48 for sites, and /32 for ISP allocations. The vast address space means subnetting focuses more on hierarchical organization and route aggregation than conserving addresses.
CIDR (Classless Inter-Domain Routing) notation uses a slash followed by the number of network bits (e.g., /24). This replaced the old classful system (Class A, B, C) and allows flexible subnet sizing. A /24 provides 256 addresses, /25 provides 128, /26 provides 64, and so on. Each decrease in the prefix length by 1 doubles the number of available addresses.
A subnet mask defines which bits represent the network portion (1s) and host portion (0s) of an IP address. A wildcard mask is the inverse—it has 0s where the subnet mask has 1s and vice versa. Wildcard masks are primarily used in router and firewall ACLs to specify which IP address bits to match.
A /24 subnet provides 256 total IP addresses. Subtracting the network address and broadcast address leaves 254 usable host addresses. This is the most common subnet size for small to medium LANs.
Yes! RFC 3021 allows /31 subnets for point-to-point links, providing exactly 2 usable addresses with no network or broadcast address. This is commonly used for router-to-router connections to conserve IPv4 addresses.
IPv4 uses 32-bit addresses and requires careful planning due to address scarcity. IPv6 uses 128-bit addresses with abundant space, focusing on hierarchical design rather than conservation. IPv6 also doesn't use broadcast addresses, relying on multicast instead.
Count your required network segments (departments, VLANs, sites, etc.) and add room for growth. Then choose a subnet mask that provides at least that many subnets. For example, borrowing 3 host bits (/27 from /24) creates 8 subnets with 30 hosts each.
Supernetting (route aggregation) combines multiple contiguous networks into a single larger prefix to reduce routing table size. Use it when advertising multiple networks to upstream routers or when consolidating routes in large enterprise or ISP networks.