Calculate & Convert

Subnet / CIDR

Network range, mask and host count from CIDR notation.

Enter values

The formula

hosts = 2^(32 − prefix) − 2

All calculations run locally in your browser and update instantly as you type.

Related calculators

Frequently asked questions

Why subtract 2 from host count?+
The first address is the network identifier and the last is the broadcast address, so neither can be assigned to a host.
All calculations run locally in your browser. Nothing you type is sent to a server.