Host range
The first and last address you can assign to a device, and how many there are.
Work out the network, broadcast, host range and masks for any IPv4 subnet
This tool is completely free — no credits required. All processing happens in your browser.
Usable hosts in 192.168.1.0/24
254
| Value | Binary |
|---|---|
| Address | 11000000.10101000.00000001.00001010 |
| Netmask | 11111111.11111111.11111111.00000000 |
| Network | 11000000.10101000.00000001.00000000 |
Subnetting by hand means converting addresses to binary and back, and one slipped bit puts a host in the wrong network. This calculator does the bitwise math for you and shows every value you need to configure a router, firewall rule or cloud VPC.
An IPv4 address is a 32-bit number. The prefix length says how many leading bits identify the network; the rest identify hosts.
A /24 prefix is 24 one-bits followed by 8 zero-bits: 255.255.255.0. The wildcard mask is its inverse, 0.0.0.255.
Network = address AND mask. For 192.168.1.10/24 that is 192.168.1.0.
Broadcast = network OR wildcard. For 192.168.1.0/24 that is 192.168.1.255.
A subnet holds 2^(32 − prefix) addresses. Removing the network and broadcast addresses leaves 2^(32 − prefix) − 2 usable hosts: 254 for a /24. A /31 has 2 usable addresses for point-to-point links and a /32 is a single host.
The first and last address you can assign to a device, and how many there are.
The two reserved addresses at each end of a standard subnet.
The inverted mask used in Cisco access lists and OSPF network statements.
See the address, mask and network bit by bit to check your own subnetting.
A /31 shows two usable hosts and no broadcast, as used on router-to-router links.
The math happens in your browser; no addresses are sent anywhere.
Anyone who plans, configures or troubleshoots IPv4 networks.
Check address plans, ACL wildcards and interface addressing before a change window.
Size VPC and subnet CIDR blocks and confirm they don't overlap.
Practice for CCNA and Network+ exams and check subnetting answers with the binary view.
Translate CIDR ranges in firewall rules into the exact addresses they cover.
Pick a prefix with roughly twice the hosts you need today. A /24 (254 hosts) is easier to live with than a /25 that is already full.
Cloud providers reserve extra addresses in each subnet. AWS, for example, reserves five per subnet, so a /24 there has 251 usable addresses.
RFC 3021 lets a two-router link use a /31 and save two addresses compared with a /30.
Some tools read 010 as octal 8. Write each part of the address without leading zeros to avoid surprises.
It is the prefix length: the first 24 bits of the address identify the network. A /24 equals the netmask 255.255.255.0 and holds 256 addresses, 254 of them usable.
In a standard subnet the lowest address identifies the network and the highest is the broadcast address, so neither can be assigned to a device.
Following RFC 3021, a /31 has two usable addresses and no broadcast, for point-to-point links. A /32 is a single host route, so its only address is both the first and last host.
It is the bitwise inverse of the netmask. 255.255.255.0 becomes 0.0.0.255. Cisco ACLs and OSPF use it to say which bits must match.
Yes. Enter the address on its own and type the mask, such as 255.255.240.0, or a prefix like /20 in the second field. The mask's one-bits must be contiguous.
Not yet. This calculator covers IPv4 addresses and masks only.