Back to Tools

IP Subnet Calculator

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.

Related Tools

View All

Bandwidth Calculator

Calculate download time for files based on your internet speed.

NetworkOpen Tool

Binary Converter

Convert text or numbers to binary code and back.

NetworkOpen Tool

Salary Calculator

Calculate your net pay with federal and state tax breakdowns for 2026.

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