ToolZone

Subnet / CIDR Calculator

Calculate network address, broadcast address, subnet mask, and usable host range from any IP and CIDR prefix.

Network address
192.168.1.0
Broadcast address
192.168.1.255
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
First usable host
192.168.1.1
Last usable host
192.168.1.254
Total addresses
256
Usable hosts
254
What these terms mean
CIDR (Classless Inter-Domain Routing) prefix (/24)

The number after the slash tells you how many bits of the 32-bit address are fixed as the "network" part. A smaller number (like /8) means a huge network; a larger one (like /30) means a tiny one.

Network address

The first address in the range. It identifies the subnet itself and can't be assigned to a device.

Broadcast address

The last address in the range, reserved for sending a message to every device on the subnet at once.

Subnet mask

Another way of writing the same CIDR prefix — it marks which bits of an IP are the network part vs. the host part.

Usable hosts

Total addresses minus 2 (the network and broadcast addresses, which can't be assigned to devices). A /31 or /32 is a special case used for point-to-point links, so it has 0 "usable" hosts by this definition.

First / last usable host

The actual range of IPs you can assign to devices — routers, computers, servers — on this subnet.

About the Subnet / CIDR Calculator

A subnet calculator breaks an IP address and CIDR prefix down into the network address, broadcast address, subnet mask, and usable host range for that network.

Common CIDR prefixes

PrefixTotal addressesUsable hosts
/3042
/2986
/281614
/24256254
/1665,53665,534

How to use

1

Enter the IP address for your network, such as 192.168.1.0.

2

Enter the CIDR prefix, the number after the slash, from 0 to 32.

3

Read off the network address, broadcast address, and usable host range for that subnet.

Worked examples

Example: a common home network

The IP address 192.168.1.0 with a /24 prefix.

Input
192.168.1.0/24
Result
Network: 192.168.1.0, Broadcast: 192.168.1.255, Usable hosts: 254

A /24 reserves the first and last address in the range for the network and broadcast addresses, leaving 254 addresses that can actually be assigned to devices.

Frequently asked questions

What's the difference between a /24 and a /16?
A /24 gives you 256 addresses, 254 usable, while a /16 gives you 65,536 addresses. The smaller the number after the slash, the larger the network.
Why are the network and broadcast addresses not usable?
The first address in a range identifies the subnet itself, and the last is reserved for messages to every device on it, so neither can be assigned to an individual device.

Explore more tools in the Developer category.