JN IT-Tools Toolbox

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 address192.168.1.0/24
Broadcast address192.168.1.255
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
First host192.168.1.1
Last host192.168.1.254
Usable hosts254 (total 256)
IP in binary11000000.10101000.00000001.00001010
network bits / host bits
Mask in binary11111111.11111111.11111111.00000000
Class (historic)C
Address typePrivate (RFC 1918)

#NetworkHost rangeBroadcast
1192.168.1.0/26192.168.1.1 – 192.168.1.62192.168.1.63
2192.168.1.64/26192.168.1.65 – 192.168.1.126192.168.1.127
3192.168.1.128/26192.168.1.129 – 192.168.1.190192.168.1.191
4192.168.1.192/26192.168.1.193 – 192.168.1.254192.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.