IP Subnet Calculator

Calculate network, broadcast, mask, host range, and total addresses for any IPv4 CIDR. Free online tool, no signup required.

Preparing private browser tool…

Your file will stay on this device.

What is an IP subnet calculator?

A subnet calculator takes an IP address and a subnet mask (or CIDR prefix such as /24) and works out the network address, broadcast address, usable host range, and the total number of hosts the subnet can hold. It saves you from doing binary math by hand.

Enter an address like 192.168.1.10 with a prefix of /24 and the tool shows the network (192.168.1.0), broadcast (192.168.1.255), and the 254 usable addresses in between.

How subnetting works

The subnet mask splits an IP address into a network part and a host part. A /24 mask (255.255.255.0) reserves the first 24 bits for the network, leaving 8 bits for hosts, which gives 256 addresses minus 2 (network and broadcast) = 254 usable hosts.

Smaller prefixes cover more addresses (a /16 holds 65,534 hosts); larger prefixes cover fewer (a /30 holds just 2, ideal for point-to-point links). This calculator updates every value instantly as you change the prefix.

Frequently asked questions

How many hosts are in a /24 subnet?
A /24 (255.255.255.0) contains 256 addresses, 254 of which are usable for hosts after reserving the network and broadcast addresses.
What is the difference between netmask and CIDR?
They express the same thing. CIDR notation (/24) is a shorthand for the dotted-decimal netmask (255.255.255.0); both define how many bits belong to the network.
What are the network and broadcast addresses?
The network address is the first address in a subnet and identifies it; the broadcast address is the last and reaches every host at once. Neither can be assigned to a device.
Is my data sent anywhere?
No. The calculation runs entirely in your browser, so nothing is uploaded.