IP Hosts Counter
Count the number of usable hosts in IP ranges, CIDR blocks, and subnets
Input
Output
Readme
What is IP host counting?
IP host counting is the process of determining how many usable device addresses exist within a given IP address range or subnet. Every network defined by a CIDR block or IP range contains a set number of addresses, but not all of them are assignable to devices. In standard IPv4 subnets, the network address and broadcast address are reserved, leaving the remaining addresses available for hosts.
Understanding how many hosts a network can support is essential for capacity planning, IP address management (IPAM), and network design. Whether you are splitting a large block into smaller subnets or auditing firewall rules that reference IP ranges, knowing the exact host count helps avoid allocation errors and wasted address space.
Tool description
This tool counts the total number of usable host addresses across one or more IP entries. Paste CIDR blocks, IP ranges, or individual addresses — one per line — and instantly see the host count for each entry along with the combined total. Results update in real time as you type.
Supported formats
- CIDR notation:
192.168.1.0/24— counts usable hosts in the subnet (excludes network and broadcast addresses) - IP range:
10.0.0.1-10.0.0.50— counts every address from start to end, inclusive - Single IP:
172.16.0.1— counted as 1 host
All formats can be mixed freely in the same input.
Examples
Input:
192.168.1.0/24
10.0.0.1-10.0.0.50
172.16.0.1Output:
192.168.1.0/24 - 254
10.0.0.1-10.0.0.50 - 50
172.16.0.1 - 1
Total Hosts: 305Features
- Supports CIDR notation, IP ranges, and single addresses in a single input
- Real-time calculation as you type with per-line breakdown
- Handles multiple entries at once with a combined total
- Clear error messages for invalid entries without blocking valid ones
- Formatted host counts with locale-aware number separators
Use cases
- Network capacity planning: Quickly determine how many devices a set of subnets can accommodate before provisioning new address space
- Firewall rule auditing: Calculate the scope of IP-based allow/deny rules to understand how many hosts are affected
- IP address management: Verify allocation sizes when splitting or merging address blocks across departments or environments
Limitations
- IPv4 only — IPv6 addresses are not currently supported
- CIDR host counts exclude network and broadcast addresses (standard convention); IP ranges count every address inclusively
- Overlapping entries are counted separately and not deduplicated