Subnet Calculator (CIDR)

Enter an IP address and CIDR prefix — get the network and broadcast address, masks, host range and count. Entirely in your browser.

The most looked-up mask is /24: 255.255.255.0 — 256 addresses, 254 usable hosts. The full /0–/32 table is below.

Network address192.168.1.0/24
Broadcast address192.168.1.255
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Usable host range192.168.1.1 – 192.168.1.254
Host count254
Total addresses256
ClassC · Private address (RFC 1918)

All CIDR prefixes

CIDRMaskAddressesUsable hosts
/00.0.0.04,294,967,2964,294,967,294
/1128.0.0.02,147,483,6482,147,483,646
/2192.0.0.01,073,741,8241,073,741,822
/3224.0.0.0536,870,912536,870,910
/4240.0.0.0268,435,456268,435,454
/5248.0.0.0134,217,728134,217,726
/6252.0.0.067,108,86467,108,862
/7254.0.0.033,554,43233,554,430
/8255.0.0.016,777,21616,777,214
/9255.128.0.08,388,6088,388,606
/10255.192.0.04,194,3044,194,302
/11255.224.0.02,097,1522,097,150
/12255.240.0.01,048,5761,048,574
/13255.248.0.0524,288524,286
/14255.252.0.0262,144262,142
/15255.254.0.0131,072131,070
/16255.255.0.065,53665,534
/17255.255.128.032,76832,766
/18255.255.192.016,38416,382
/19255.255.224.08,1928,190
/20255.255.240.04,0964,094
/21255.255.248.02,0482,046
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

Frequently asked questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) writes a network as address + prefix length: 192.168.1.0/24 means the first 24 bits are the network part. It replaced the old classful system (A/B/C) and allows arbitrarily sized blocks.

How is the network address calculated?

By a bitwise AND between the IP address and the subnet mask. For example 192.168.1.10 AND 255.255.255.0 = 192.168.1.0 — the network address of the /24 block.

Why are there 2 fewer hosts than addresses?

The first address in a block is the network address and the last is the broadcast address; neither is assigned to a device. Exceptions: /31 (RFC 3021, both addresses used on point-to-point links) and /32 (a single host).

What is a wildcard mask?

The inverse of the subnet mask (bitwise NOT). It is used in Cisco ACLs and OSPF configuration: for /24 the mask is 255.255.255.0 and the wildcard is 0.0.0.255.

Which IP ranges are private?

Per RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. They are not routed on the internet and are used in home and corporate networks behind NAT.

Number Base Converter →HTTP Status Codes →Hash Generator →