Home
My IP
GPS
Find Me
Your Location
4️⃣IPv4:
📍...
6️⃣IPv6:
🌍...
🏢...
📌...

Subnet Calculator

Calculate network details from CIDR notation

Examples: 192.168.1.0/24, 10.0.0.0/8, 172.16.0.0/16

Common Subnet Reference

CIDRSubnet MaskUsable Hosts
/32255.255.255.2551
/31255.255.255.2542
/30255.255.255.2522
/29255.255.255.2486
/28255.255.255.24014
/27255.255.255.22430
/26255.255.255.19262
/25255.255.255.128126
/24255.255.255.0254
/23255.255.254.0510
/22255.255.252.01,022
/21255.255.248.02,046
/20255.255.240.04,094
/16255.255.0.065,534
/8255.0.0.016,777,214

About Subnet Calculators

A subnet calculator helps you divide IP networks into smaller subnetworks. Subnetting is essential for efficient IP address management, network security, and reducing broadcast traffic.

Key Concepts

Network Address

The first address in a subnet, identifying the network itself. All host bits are set to 0.

Broadcast Address

The last address in a subnet, used to send data to all hosts. All host bits are set to 1.

Subnet Mask

Separates the network portion from the host portion of an IP address using a bitmask.

Wildcard Mask

The inverse of the subnet mask. Used in ACLs and routing protocols to match IP ranges.

CIDR

Classless Inter-Domain Routing notation uses a slash and number (e.g., /24) to define the prefix length.

IP Class

Legacy classification: Class A (0-127), B (128-191), C (192-223), D (multicast), E (reserved).

Common Use Cases

  • Planning network segments for offices and data centers
  • Configuring firewall rules and access control lists (ACLs)
  • Determining available host addresses in a subnet
  • Troubleshooting network connectivity issues
  • Studying for network certification exams (CCNA, CompTIA)

Related tools: Look up any IP address location with our IP Lookup tool. Find DNS records for any domain, or check your own IP address.

Frequently Asked Questions

What is a subnet?

A subnet (subnetwork) is a logical division of an IP network. Subnetting breaks a large network into smaller, more manageable segments. Each subnet has its own range of IP addresses, network address, and broadcast address.

What does CIDR notation mean?

CIDR (Classless Inter-Domain Routing) notation like /24 or /16 specifies how many bits of the IP address are used for the network portion. A /24 subnet has 256 addresses (254 usable), while a /16 has 65,536 addresses.

How do I calculate the number of hosts in a subnet?

The formula is 2^(32-prefix) - 2 for IPv4. Subtract 2 because the network address and broadcast address cannot be assigned to hosts. For example, a /24 gives 2^8 - 2 = 254 usable host addresses.

What is the difference between a subnet mask and CIDR?

They represent the same information differently. A subnet mask like 255.255.255.0 is the same as /24 in CIDR notation. CIDR is more compact and widely used in modern networking. Our calculator converts between both formats.