← All tools
// Networking

Subnet Calculator online

IPv4 CIDR subnet calculator — network, broadcast, host range, and more

Subnet Calculator logo
by
CHUNKY
MUNSTER

How to Use the Subnet Calculator

  1. Enter an IPv4 address in dotted form (192.168.1.42).
  2. Enter a prefix (/24) or a dotted-decimal mask (255.255.255.0).
  3. Read the network, broadcast, host range and host count.
  4. Use the wildcard mask field if you're writing a Cisco ACL.

A subnet calculator answers the four questions you ask every time you carve up an address range: what's the network address, what's the broadcast, which IPs are usable for hosts, and how many of them are there? This one accepts either CIDR notation (192.168.1.0/24) or an IP plus dotted-decimal mask (192.168.1.0 + 255.255.255.0) and produces all of the above plus the wildcard mask used by Cisco ACLs.

How the Subnet Calculator Works

Edge cases are handled correctly: /31 follows RFC 3021 and reports two usable hosts (point-to-point links), /32 reports a single host (loopback or host route), and /0 reports the entire IPv4 address space. The mask is shown in dotted, prefix and binary forms so you can paste it into whichever config syntax you need.

Frequently Asked Questions

What's the wildcard mask used for?

It's the bitwise inverse of the subnet mask, used in Cisco IOS access-control lists (ACLs) and OSPF area definitions. /24 has subnet mask 255.255.255.0 and wildcard 0.0.0.255 — the wildcard tells the device which bits to ignore when matching.

Why does /30 give two usable hosts but /31 gives two as well?

Traditionally /30 reserves the first address as the network and the last as broadcast, leaving 2 hosts. /31 (defined in RFC 3021) re-uses both addresses as hosts on point-to-point links — common between routers — also giving 2 usable addresses but no overhead.

How is /32 a valid subnet?

A /32 represents a single host (a one-IP "subnet"). It's used in loopback interfaces, host routes and BGP advertisements where you specifically want to route a single address.

What about IPv6?

This tool is IPv4 only. IPv6 doesn't use broadcast (it uses multicast for similar functions), and the address arithmetic is done in 128-bit integers — see a dedicated IPv6 subnet calculator for that work.

Explore the full suite of Networking tools and 290+ other free utilities at Chunky Munster.