IP / Subnet Calculator
Calculate subnet mask, network address and usable host range.
IP & Subnet
Network Info
About the IP / Subnet Calculator
The IP and Subnet Calculator works out what a CIDR block actually contains: the network address, the broadcast address, the subnet mask, the usable host range and how many hosts fit.
CIDR notation such as 192.168.1.10/24 says the first 24 bits are the network and the remaining 8 identify hosts. The mask for /24 is 255.255.255.0. You can enter either the prefix length or a dotted mask; the calculator accepts both.
Two addresses in every block cannot be used by a host: the network address, where all host bits are zero, and the broadcast address, where they are all one. That is why a /24 holds 256 addresses but only 254 usable hosts. A /31 is the exception, used for point-to-point links where both addresses are usable.
Common questions about IP Subnet Calculator
What is CIDR notation?
An address followed by a slash and the number of network bits, such as 192.168.1.0/24.
How many hosts does a /24 have?
256 addresses, of which 254 are usable after removing the network and broadcast addresses.
Why subtract two addresses?
The network address identifies the subnet itself and the broadcast address reaches every host, so neither can be assigned to a device.
What is a /31 used for?
Point-to-point links between two routers. Both addresses are usable and there is no broadcast.
Which ranges are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. They are not routed on the public internet.
Can I enter a subnet mask instead of a prefix?
Yes, 255.255.255.0 is read as /24.