100% Client-Side · Zero Server Uploads

IPv4 subnet calculator

Parse your IPv4 CIDR blocks and get all the info you need about your subnet.

Initializing interactive IPv4 subnet calculator workspace…

About IPv4 subnet calculator

Enter any IPv4 address with CIDR prefix (such as `192.168.1.0/24`) on XMOOO Tools to immediately compute the subnet mask, wildcard mask, network address, broadcast address, first and last usable host IPs, and total usable IP count.

Formulas & Technical Rules

  • Total IP Addresses = 2^(32 − CIDR); Usable Host Addresses = 2^(32 − CIDR) − 2 (for /0 to /30).

How to Use IPv4 subnet calculator

  1. Enter an IPv4 address and CIDR slash prefix (e.g., 10.0.0.0/16 or 192.168.1.10/24).
  2. Inspect the full subnet breakdown including binary netmask, host range, and next/previous subnet navigation.
  3. Copy any individual field directly into your cloud VPC or router configuration.

IPv4 CIDR Subnet Quick Reference

CIDRSubnet MaskTotal IPsUsable Hosts
/32255.255.255.25511 (Single Host)
/30255.255.255.25242 (Point-to-Point Link)
/28255.255.255.2401614
/24255.255.255.0256254 (Standard LAN)
/16255.255.0.065,53665,534 (Cloud VPC)

Frequently Asked Questions

How many usable IP addresses are in a /24 subnet?

A /24 subnet contains 256 total IPv4 addresses and 254 usable host addresses (excluding the network address and broadcast address).

What is a wildcard mask?

A wildcard mask is the bitwise inverse of a subnet mask (e.g., 0.0.0.255 for /24), commonly used in Cisco ACLs and OSPF routing rules.

Can I navigate to the next adjacent subnet block?

Yes. Use the Previous / Next block buttons inside the calculator to step cleanly across consecutive CIDR ranges.