iGuideSmart

IPv4 Subnet & CIDR Calculator

Calculate network address, broadcast address, subnet mask, wildcard mask, and usable host IP range from any IPv4/CIDR. Runs locally inside your browser with zero uploads, explicit reference table, and FAQs.

Network CIDR
192.168.1.0/24
Subnet Mask
255.255.255.0
Usable Host Range
192.168.1.1 – 192.168.1.254
Broadcast / Usable Hosts
192.168.1.255 (254 hosts)

Formula & Calculation Logic

Performs exact unsigned 32-bit bitwise masking to compute network boundaries and host capacities for VPCs and LANs.

Primary Formula

Usable Hosts = 2^(32 − prefix) − 2 (for prefix ≤ /30)

Example: 192.168.1.42/24

  1. 1
    Build /24 subnet mask
    24 leading 1-bits
    255.255.255.0
  2. 2
    Compute network, broadcast & usable range
    2^8 − 2 = 254 hosts
    192.168.1.1 – 192.168.1.254

IPv4 CIDR Prefix Quick Reference (/16 to /32)

Subnet masks and usable host capacities.

Showing 9 of 9 reference values
IPv4 CIDR prefix sizes, masks, and usable hosts
CIDRSubnet MaskTotal IPsUsable Hosts
/16255.255.0.065,53665,534
/20255.255.240.04,0964,094
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/30255.255.255.25242 (point-to-point)
/32255.255.255.25511 (single host)

Practical Real-World Use Cases

Zero-Upload Security

API payloads, keys, SQL queries, and configs never leave your local browser tab.

Instant Engineering Workflow

Zero signups, instant copy buttons, and keyboard-friendly controls.

IPv4 Subnet & CIDR Calculator – Frequently Asked Questions

How many usable IP addresses are in a /24 subnet?
A /24 block has 256 total addresses minus 2 reserved (network and broadcast) = 254 usable host IPs.
What is a /32 CIDR block?
A /32 specifies a single exact IPv4 host address (mask 255.255.255.255), common in firewall allowlists.
What are the RFC 1918 private IPv4 ranges?
10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 are reserved exclusively for private internal networks.
View all Developer Tools →