IP / CIDR Calculator

Break down any CIDR block into network address, broadcast, host range, subnet mask, and host count.

By Marshkalk

Quick presets

How to use the CIDR Calculator

  1. Enter an IP address with its prefix length in CIDR notation (e.g. 192.168.1.0/24).
  2. Click Calculate or use a quick preset.
  3. The tool shows the network address, broadcast, first and last host, subnet mask, wildcard, and host count.

CIDR notation explained

CIDR (Classless Inter-Domain Routing) represents an IP address range as a base address followed by a prefix length (/24). The prefix length indicates how many bits form the network part. The remaining bits define host addresses.

Usable hosts = 2^(32 − prefix) − 2 (the network and broadcast addresses cannot be assigned to hosts).

Common subnet sizes

CIDRSubnet maskTotal addressesUsable hosts
/30255.255.255.25242
/29255.255.255.24886
/28255.255.255.2401614
/27255.255.255.2243230
/26255.255.255.1926462
/25255.255.255.128128126
/24255.255.255.0256254
/16255.255.0.065,53665,534
/8255.0.0.016,777,21616,777,214

Private IP address ranges

  • 10.0.0.0/8, Class A private range (large enterprises)
  • 172.16.0.0/12, Class B private range (medium networks)
  • 192.168.0.0/16, Class C private range (home and small office)