Utilitory / Technology / Subnet / CIDR Calculator
Technology · Tool #010

Subnet / CIDR Calculator

Calculate IPv4 network address, subnet mask, broadcast address, address count and usable host range.

Reserved ad space · responsive display

IPv4 network

Enter an IPv4 address and choose a CIDR prefix to inspect the network it belongs to.

——

Subnet Mask — Binary

—
Network bitsHost bits

Subnet details

Usable host range
—
Network / CIDR—
Network address—
Subnet mask—
Broadcast address—
Total addresses—
Usable addresses—

RFC 1918 private IPv4 ranges

RFC 1918 reserves these address blocks for private networks. They are not globally routable on the public Internet and are commonly used inside homes, businesses and cloud networks.

Private rangeCIDRAddresses
10.0.0.0 – 10.255.255.25510.0.0.0/816,777,216
172.16.0.0 – 172.31.255.255172.16.0.0/121,048,576
192.168.0.0 – 192.168.255.255192.168.0.0/1665,536

Private addressing is defined by RFC 1918. Other special-purpose IPv4 ranges exist for loopback, link-local, documentation, carrier-grade NAT and other uses.

Reserved ad space · after calculator

More useful tools

General information only. Results are estimates and may differ from provider calculations, market outcomes or local rules.

More information

How to use it

Enter an IPv4 address and a CIDR prefix or subnet mask, depending on the available input. The tool identifies the network range associated with that address. Network engineers use this to plan address allocation, check routes and determine whether hosts share a subnet.

CIDR and subnet masks

CIDR /24 means the first 24 bits identify the network, leaving eight host bits. Its dotted-decimal mask is 255.255.255.0. The total address count is 2^(32 − prefix), so a /24 contains 256 IPv4 addresses. A /26 contains 64 addresses and is one quarter the size.

Worked example

For 192.168.10.42/24, the network address is 192.168.10.0 and the broadcast address is 192.168.10.255. In a conventional LAN, the usable host range is 192.168.10.1 through 192.168.10.254, or 254 hosts.

Special cases

A /31 is commonly used for point-to-point links under RFC 3021, where both addresses may be usable. A /32 identifies one address. Cloud providers may reserve additional addresses within each subnet, so usable counts can differ from the traditional network-minus-two calculation.

Planning advice

Avoid overlapping private subnets when connecting networks with VPNs, transit gateways or peering. Common private IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. This calculator is for IPv4; IPv6 uses different conventions.

Explore related tools

Working on a larger task? Browse the connected calculators in these toolkits.

Developer & Networking Tools →

Continue exploring Developer & Networking Tools

These calculators work independently. Open another tool to continue your planning.