Home Math & Calculator Tools IP Subnet Calculator
🌐
Math & Calculator Tools

IP Subnet Calculator

Calculate network address, broadcast address, subnet mask, host range, usable IPs and IP class from any CIDR notation.

⚡ Instant calculation 🔒 Private — runs in your browser 🚫 No login required 📋 Copy or download results
🌐 IP Subnet Calculator
🌐

Enter your figures and click Calculate to see your results.

📖How to Use the IP Subnet Calculator

  1. 1
    Enter your values

    Enter an IP address with CIDR prefix notation (e.g. 192.168.1.0/24) — all subnet details appear instantly.

  2. 2
    Click Calculate

    Press the Calculate button. All results appear instantly — no page reload, no waiting.

  3. 3
    Read and use your results

    Results appear in the panel on the right with all key values clearly labelled. Use Copy to grab the result or Download to save a text file.

💡When to Use This Calculator

SituationWhy It Helps
Financial planning Make informed decisions
Business analysis Support data-driven choices
Personal finance Understand your numbers

Frequently Asked Questions

What does /24 mean in 192.168.1.0/24?

The /24 is the CIDR prefix length — the first 24 of the 32 IP address bits are the network portion. This leaves 8 bits for hosts: 2⁸ = 256 total addresses. Subtract 2 (network address and broadcast) = 254 usable host addresses. The subnet mask is 255.255.255.0.

What is the difference between network address and broadcast address?

The network address (all host bits = 0) identifies the subnet and cannot be assigned to a device. The broadcast address (all host bits = 1) sends messages to every device on the subnet and also cannot be used as a host. These two reserved addresses reduce usable hosts by 2: a /24 gives 254 usable hosts, not 256.

How many hosts can different prefix lengths support?

Usable hosts = 2^(32−prefix) − 2. Examples: /30 = 2 hosts (point-to-point links), /29 = 6 hosts, /28 = 14 hosts, /27 = 30 hosts, /26 = 62 hosts, /25 = 126 hosts, /24 = 254 hosts, /23 = 510 hosts, /22 = 1,022 hosts, /16 = 65,534 hosts, /8 = 16,777,214 hosts.

What is subnetting used for?

Subnetting divides a larger network into smaller segments to: improve security (isolate departments and limit broadcast traffic), reduce congestion (smaller broadcast domains), enable more efficient IP address use, and simplify network management and troubleshooting.

What are private IP address ranges?

RFC 1918 defines three private (non-routable) IP address ranges: 10.0.0.0/8 (Class A, 16.7 million addresses), 172.16.0.0/12 (Class B, ~1 million addresses) and 192.168.0.0/16 (Class C, 65,536 addresses). These are used in home and corporate networks and are translated to public IPs via NAT when accessing the internet.