Back to Tools

IP Subnet Calculator: IPv4, IPv6 and CIDR

Calculate network details, IP ranges, and usable hosts from an IPv4 or IPv6 address and CIDR mask.

Input

Quick Tip

The most common subnet masks are /24 for home networks (255.255.255.0) and /32 for single hosts.

Ready to Calculate

Enter an IP address and select a CIDR prefix to see detailed network information.

How do I find a subnet mask and usable host range?

Choose IPv4 or IPv6, enter the address, and select an integer CIDR prefix. For IPv4, inspect the network, broadcast address, mask, and host range. Use standard colon-separated IPv6 notation; embedded dotted-IPv4 IPv6 addresses are a known limitation of the current parser.

Try this tool

Related Tools

View All

Bandwidth Calculator

Estimate file transfer time from file size and connection speed. Convert bandwidth units, including Mbps and bytes, to compare download scenarios.

Binary Converter

Convert text and numbers between binary, decimal, and hexadecimal modes. Explore binary-to-text conversion and supported number-base conversions.

Salary Calculator

Estimate US take-home pay from hourly, monthly, or annual salary. See federal tax, FICA, and adjustable state tax deductions with 2026 assumptions.

Understanding IP Subnetting

Subnetting is the practice of dividing a network into two or more smaller networks. It increases routing efficiency, enhances network security, and reduces broadcast domain size.

IPv4: An address consists of 32 bits, divided into a **Network ID** and a **Host ID**. The **Subnet Mask** (e.g., 255.255.255.0) determines where the split occurs.

IPv6: An address consists of 128 bits. Subnetting is simpler because there is no variable-length subnet mask in the same way as IPv4. Instead, a **Prefix Length** (e.g., `/64`) is used to denote the network portion. Standard subnetting in IPv6 almost always uses a `/64` prefix for end-user networks.

Common IPv4 CIDR Reference

CIDRSubnet MaskTotal Hosts
/32255.255.255.2551 (Single Host)
/30255.255.255.2524 (2 Usable)
/24255.255.255.0256 (254 Usable)
/16255.255.0.065,536 (65,534 Usable)
/8255.0.0.016.7 Million

Common IPv6 Prefixes

PrefixTypical UsageAddress Count
/128Single Host (Loopback, etc.)1
/64Standard LAN Subnet18 Quintillion (2^64)
/56Typical Home/Small Business Assignment256 x /64 Subnets
/48Large Organization Assignment65,536 x /64 Subnets
/32ISP Allocation4 Billion x /64 Subnets

Frequently Asked Questions