Subnet calculator
Network, broadcast and host addresses for an IPv4 network, plus splitting into subnets.
Formats:
192.168.1.10/24 or 192.168.1.10 255.255.255.0| Network address | 192.168.1.0/24 |
|---|---|
| Broadcast address | 192.168.1.255 |
| Subnet mask | 255.255.255.0 |
| Wildcard mask | 0.0.0.255 |
| First host | 192.168.1.1 |
| Last host | 192.168.1.254 |
| Usable hosts | 254 (total 256) |
| IP in binary | 11000000.10101000.00000001.00001010 network bits / host bits |
| Mask in binary | 11111111.11111111.11111111.00000000 |
| Class (historic) | C |
| Address type | Private (RFC 1918) |
| # | Network | Host range | Broadcast |
|---|---|---|---|
| 1 | 192.168.1.0/26 | 192.168.1.1 – 192.168.1.62 | 192.168.1.63 |
| 2 | 192.168.1.64/26 | 192.168.1.65 – 192.168.1.126 | 192.168.1.127 |
| 3 | 192.168.1.128/26 | 192.168.1.129 – 192.168.1.190 | 192.168.1.191 |
| 4 | 192.168.1.192/26 | 192.168.1.193 – 192.168.1.254 | 192.168.1.255 |
Doing it by hand
Network = IP AND mask. Broadcast = network OR inverted mask. Usable hosts = 2(32 − prefix) − 2.
Example /26: 32 − 26 = 6 host bits → 2⁶ = 64 addresses → 62 usable hosts.