CIDR notation
—
Network address
—
Broadcast address
—
Subnet mask
—
Wildcard mask
—
First host
—
Last host
—
Total addresses
—
Usable hosts
—
Address type
—

Understanding CIDR notation

In 192.168.1.0/24, the number after the slash says how many of an IPv4 address’s 32 bits identify the network. The remaining bits number the devices. A /24 leaves 8 bits for hosts — 256 addresses, 254 of them usable: the first is the network address and the last is the broadcast address.

Most common prefixes

PrefixMaskAddressesTypical use
/30255.255.255.2524 (2 hosts)Point-to-point link
/28255.255.255.24016 (14 hosts)Small office, DMZ
/24255.255.255.0256 (254 hosts)Home network
/16255.255.0.065,536Large corporate network

Private ranges worth knowing

RFC 1918 reserves three blocks for local networks: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. The 100.64.0.0/10 block is used by providers for shared addresses (CGNAT): if your router gets an address in that range, you share your public IP with other subscribers.

Frequently asked questions

Why does a /24 give 254 hosts and not 256?

The first address identifies the network itself and the last one broadcasts to every device. Neither can be assigned to a machine.

What’s the difference between a netmask and a wildcard?

The wildcard is the bitwise inverse of the mask (0.0.0.255 for a /24). You’ll mostly meet it in Cisco access control lists and OSPF.

Does this calculator work offline?

Yes: every calculation runs in your browser, and the address you type is never sent to a server.

Keep reading