Free IP Subnet Calculator

Calculate network details from an IP address and CIDR prefix.

No data leaves your device

Quick Examples

CIDR Reference Table

How to Use

  1. Enter an IP address (e.g., 192.168.1.0).
  2. Select a CIDR prefix (/0 to /32).
  3. Click Calculate to see network details.
  4. Click Copy Results to copy all values.

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation like /24 defines how many bits of the IP address identify the network. A /24 means the first 24 bits are the network part, leaving 8 bits (256 addresses) for hosts.

What is the difference between network and broadcast address?

The network address is the first address in a subnet (all host bits are 0). The broadcast address is the last (all host bits are 1). Neither can be assigned to a host.

Does this support IPv6?

This tool currently supports IPv4 subnetting only. IPv6 subnet calculation may be added in a future update.

A Short History of CIDR and IPv4 Subnetting

When RFC 791 standardised the Internet Protocol in September 1981, IPv4 addresses were carved into rigid classes. Class A allocations gave 16,777,214 hosts, Class B gave 65,534, Class C gave 254, and there was nothing in between. Any organisation needing more than 254 hosts asked for a Class B, even if it only had 1,000 employees, and tens of thousands of addresses were wasted per assignment. By the late 1980s Class B was vanishing fast, the global routing table was outgrowing backbone-router memory, and the 32-bit IPv4 space was being consumed faster than its designers had ever expected. RFC 1518 and RFC 1519 (September 1993) introduced Classless Inter-Domain Routing, pronounced "cider," which let the network/host boundary fall at any bit position and let sixteen contiguous /24s be advertised as a single /20. Allocation finally matched need, the BGP table stopped collapsing under its own weight, and IPv4 exhaustion was pushed roughly seventeen and a half years into the future. RFC 4632 re-issued and obsoleted RFC 1519 in August 2006 and remains the current authority. Three private ranges were carved out by RFC 1918 in February 1996 (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), giving every NAT'd home router and corporate firewall a usable address pool that the public internet would never route. RFC 3021 (December 2000) carved out the /31 exception for point-to-point links, saving roughly two IPv4 addresses per router-to-router circuit. The IANA top-level free pool was finally exhausted on 31 January 2011; APNIC followed in April 2011, LACNIC in 2014, ARIN in 2015, AfriNIC in 2017, and RIPE NCC in November 2019. CIDR is the reason any of those dates is in this decade rather than the 1990s.

The Anatomy of a Subnet Calculation

Common Subnet Sizes and Where They Show Up

Key RFCs and Historical Milestones

More frequently asked questions

What's the difference between a subnet mask and a CIDR prefix?

They express the same information in two notations. /24 in CIDR is 255.255.255.0 as a dotted-decimal subnet mask.

Why can't I use the network or broadcast address?

The network address is reserved as the identifier for the subnet itself; the broadcast address is reserved for "send to every host."

What about IPv6?

IPv6 uses the same prefix-notation idea but with 128-bit addresses; the standard end-user subnet size is /64.

Is anything sent to a server?

No. The calculator runs entirely in your browser; nothing is transmitted, logged, or stored.

What's the smallest practical subnet?

/30 for typical point-to-point links, /31 (RFC 3021) for the same case with both addresses usable, /32 for single-host routes.

How do I pick a private range for my home or office network?

List every network you'll need to reach (VPNs, VPCs, partner networks) and pick a range that does not overlap any of them.

Related Tools

Number Base Converter DNS Lookup Bitwise Calculator