Free tool
Subnet calculator
Pick an address and mask to find the subnet ID, broadcast, host range and wildcard mask for any IPv4 address, see the working, and practice until you don't need a calculator.
Calculate a subnet
- Subnet ID
- 192.168.10.64/26
- Broadcast
- 192.168.10.127
- Usable hosts
- 192.168.10.65 to 192.168.10.126
- Host count
- 62 usable of 64 addresses
- Subnet mask
- 255.255.255.192
- Wildcard mask
- 0.0.0.63
How it's worked out
- Mask 255.255.255.192 (/26). The interesting octet is the fourth, where the mask is 192.
- Block size: 256 - 192 = 64.
- Multiples of 64 in the fourth octet: 64 is the largest not above 77, and the next is 128.
- Subnet ID 192.168.10.64. The next subnet is 192.168.10.128, so the broadcast is one less: 192.168.10.127.
See the subnets in a block
Each square is one /26 subnet inside the block that holds your address. Select a square to calculate that subnet.
192.168.10.0/24 holds 4 subnets of /26, each with 64 addresses (62 usable).
Your address is in subnet 2 of 4: 192.168.10.64 to 192.168.10.127.
Practice mode
Neither the Network+ nor the CCNA exam gives you a calculator, so practice without one. Each problem is timed; aim for under a minute.
How the calculator works
It uses the block-size method. The interesting octet is the last octet of the mask that isn't 0. Subtract it from 256 to get the block size. Subnets start at multiples of the block size in that octet, the broadcast is one less than the next subnet, and the usable hosts are everything in between.
A /31 is treated as a point-to-point link with two usable addresses (RFC 3021), and a /32 as a single host. The full method, with worked examples and the common traps, is in how to subnet fast with the block-size method.
Using it to study
Work each problem by hand first, then check it here. Practice mode generates the five problem types the exams use: finding a host's subnet, subnets in the third octet, the most efficient mask for a number of hosts, /30 router links and ACL wildcard masks.
Everything runs in your browser; nothing you type is sent or stored. To use subnetting in real configurations, see the Network+ course and the CCNA course, or start studying with PeakHop.