IP Subnet Calculator (CIDR)

Enter an IP and a CIDR prefix (e.g. 192.168.1.10/24) and get the network address, mask, broadcast, and usable host range.

/
Network address
192.168.1.0
Subnet mask
255.255.255.0
Broadcast address
192.168.1.255
First usable host
192.168.1.1
Last usable host
192.168.1.254
Total addresses
256
Usable hosts
254

What CIDR notation is

The number after the slash (/24, /30...) indicates how many of an IPv4 address's 32 bits belong to the network — the rest identify each host within that network. The larger the prefix, the smaller the subnet and the fewer hosts it supports.

PrefixMaskTotal addressesUsable hosts
/24255.255.255.0256254
/28255.255.255.2401614
/30255.255.255.25242
/31255.255.255.25420 (point-to-point link)

Why 2 addresses are subtracted from usable hosts

The first address in any subnet is the network address (identifies the subnet itself, not any host) and the last is the broadcast address (sends to every host in the subnet at once) — neither can be assigned to an individual host, except in the special /31 and /32 cases.

Frequently asked questions

Related tools

We use analytics cookies to understand which calculators are useful. They are never used for advertising. More information in our privacy policy.