Home / Converters / Subnet Calculator

Subnet Calculator 2026

Example Calculation

For IP address 192.168.1.0/24:

  • Network Address: 192.168.1.0
  • Broadcast Address: 192.168.1.255
  • Subnet Mask: 255.255.255.0
  • Usable Hosts: 254 (192.168.1.1 - 192.168.1.254)

What is a Subnet Calculator?

A subnet calculator is an essential networking tool that helps you determine network parameters for both IPv4 and IPv6 addresses. It identifies the network and broadcast addresses, calculates subnet masks or prefixes, and determines the exact range of usable IP addresses. Whether you're a network administrator, IT student, or security professional, this tool simplifies complex IP address allocation and management.

IPv4 Subnetting & CIDR

Subnetting is the process of dividing a larger network into smaller, more manageable sub-networks. In IPv4, CIDR (Classless Inter-Domain Routing) notation is used to specify how many bits of an address are reserved for the network portion (e.g., /24).

Common IPv4 CIDR Blocks:

  • /8 - 16,777,214 usable hosts (Standard Class A)
  • /16 - 65,534 usable hosts (Standard Class B)
  • /24 - 254 usable hosts (Standard Class C)
  • /30 - 2 usable hosts (Perfect for point-to-point links)

Understanding IPv6 Subnetting

IPv6 uses a 128-bit addressing scheme, significantly larger than IPv4's 32-bit system. Subnetting in IPv6 is primarily based on Prefix Lengths rather than complex masks. A standard IPv6 subnet is typically a /64, which provides 18,446,744,073,709,551,616 addresses.

IPv6 Formatting Rules:

  • Zero Compression: Consecutive sections of zeros can be replaced with :: (e.g., 2001:db8:0:0::1 becomes 2001:db8::1).
  • Leading Zeros: Zeros at the beginning of a hex block can be omitted.
  • Hexadecimal: Addresses are written in 8 blocks of 4 hex digits separated by colons.

How to Use This Calculator

  1. Toggle between IPv4 and IPv6 modes at the top.
  2. Enter your target IP address (Decimal for v4, Hexadecimal for v6).
  3. Specify the Prefix Length (CIDR). For IPv4, use the Quick-Select buttons (A, B, C) for standard sizes.
  4. Click "Calculate Subnet" to instantly view network ranges, masks, and comprehensive technical IDs.

Subnet Mask Reference Table

CIDR Subnet Mask Usable Hosts Networks
/24 255.255.255.0 254 256
/25 255.255.255.128 126 512
/26 255.255.255.192 62 1,024
/27 255.255.255.224 30 2,048
/28 255.255.255.240 14 4,096
/30 255.255.255.252 2 16,384

Frequently Asked Questions

1. What is a subnet calculator used for?

A subnet calculator helps network administrators plan IP address allocation, determine network boundaries, and configure routers and switches. It's essential for network design, troubleshooting, and optimization.

2. What's the difference between network address and broadcast address?

The network address is the first IP in a subnet and identifies the network itself. The broadcast address is the last IP and is used to send messages to all devices in the subnet. Neither can be assigned to individual hosts.

3. Why are there fewer usable hosts than total hosts?

Each subnet reserves two addresses: the network address (first) and broadcast address (last). These cannot be assigned to devices, so usable hosts = total hosts - 2.

4. What is a wildcard mask?

A wildcard mask is the inverse of a subnet mask. It's used in access control lists (ACLs) and routing protocols. For a subnet mask of 255.255.255.0, the wildcard mask would be 0.0.0.255.

5. What does /24 mean in networking?

/24 is CIDR notation indicating that the first 24 bits of the IP address represent the network portion. This corresponds to a subnet mask of 255.255.255.0 and provides 254 usable IP addresses.

6. Does this tool support IPv6?

Yes, this calculator fully supports IPv6. You can calculate 128-bit network prefixes, binary representations, and even generate ip6.arpa reverse DNS pointers.

7. What is a "Nibble" in IPv6?

A nibble consists of 4 bits, or exactly one hexadecimal digit in an IPv6 address. Subnetting precisely at nibble boundaries (like /64 or /60) is considered a best practice for reverse DNS management.

8. What are Class A, B, and C networks?

These are traditional legacy classifications for IPv4: Class A (/8), Class B (/16), and Class C (/24). Our IPv4 calculator includes a quick-select feature to toggle these standard classes instantly with one click.

8. How many subnets can I create?

The number of subnets depends on the CIDR prefix. For example, a /24 network can be divided into 2 /25 subnets, 4 /26 subnets, 8 /27 subnets, and so on. Each increase in CIDR number doubles the number of subnets.

Common Use Cases

🏢 Office Networks

Divide a large office network into smaller subnets for different departments (Sales, IT, HR) to improve security and manage traffic.

🌐 ISP Management

Internet Service Providers use subnetting to allocate IP addresses to customers efficiently and manage large address spaces.

🔒 Security Segmentation

Isolate critical systems (servers, databases) into separate subnets to limit access and improve network security.

☁️ Cloud Infrastructure

Configure Virtual Private Clouds (VPCs) in AWS, Azure, or Google Cloud with proper subnet planning for different application tiers.