Subnet Calculator

Enter any CIDR block and instantly get the network address, broadcast address, subnet mask and usable host range.

Advertisement

How to use the subnet calculator

  1. Type a CIDR block into the field, such as 192.168.1.0/24 or 10.0.0.0/16.
  2. Press "Calculate".
  3. Read the network address, broadcast address, subnet mask and first and last usable hosts.
  4. Use the total and usable host counts to plan how many devices a subnet can hold.

What each result means

ValueMeaning
Network addressThe first address of the subnet, which identifies the subnet itself.
Broadcast addressThe last address, used to send a message to every device in the subnet at once.
Subnet maskThe dotted mask that marks which part of the address is the network and which part is the host.
First / last usable hostThe range of addresses you can actually assign to devices.
Total hostsEvery address in the subnet, including the network and broadcast addresses.
Usable hostsThe addresses available for real devices, excluding the two reserved addresses.

How CIDR notation works

CIDR (Classless Inter-Domain Routing) notation packs an address and its prefix length into one value separated by a slash. The number after the slash says how many leading bits belong to the network. A /24 prefix leaves 8 bits for hosts, which is 256 addresses in total and 254 that are usable. A /16 leaves 16 bits for hosts — 65,536 addresses — and so on. The prefix is a compact way to describe a subnet without spelling out the full mask.

Why subnet math matters

Subnetting is how one network is divided into smaller, manageable pieces. Network engineers use it to keep departments or services isolated, to limit broadcast traffic, and to conserve address space. Getting the math right means two devices you intend to talk to each other actually land in the same subnet, while devices you want separate stay apart. A calculator like this removes the manual binary work and the mistakes that come with it.

A note on special cases

Most subnets reserve two addresses — the network address and the broadcast address — which is why the usable count is two less than the total. Very small prefixes are the exception: a /31 is used for point-to-point links where both addresses are usable, and a /32 describes a single host. The calculator applies these rules automatically so the numbers you see match how real routing equipment behaves.

Frequently asked questions

The network address and the broadcast address are reserved and cannot be assigned to devices, so a subnet with 256 total addresses has 254 usable ones. /31 and /32 prefixes are the exceptions.
Use CIDR notation: an IPv4 address followed by a slash and a prefix from 0 to 32, like 192.168.1.0/24. The address does not have to be the network address — the tool normalizes it.
No. This calculator works with IPv4 addresses and CIDR prefixes only.
Yes, completely free with no signup and no limits. It runs entirely in your browser.