Networking · Free tool

Subnet Calculator

Network, broadcast, host range and mask for any IPv4 subnet — plus a VLSM planner.

Calculate a subnet

Type 192.168.1.10/24, 192.168.1.10 255.255.255.0, or an address and pick a prefix.

Network address
192.168.1.0
Broadcast address
192.168.1.255
First usable host
192.168.1.1
Last usable host
192.168.1.254
Usable hosts
254
Total addresses
256
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
CIDR
192.168.1.0/24
Block size
256 in the 4th octet
IP class
C
Address type
Private (RFC 1918)

In binary

Network bits · Host bits — the | marks where the /24 prefix ends.

Address11000000.10101000.00000001.00001010
Mask11111111.11111111.11111111.00000000
Network11000000.10101000.00000001.00000000

VLSM planner

Split one network into subnets of different sizes. Largest first, each gets the smallest block that fits its hosts plus the network and broadcast addresses.

192.168.10.0/24, largest subnet first
SubnetHosts neededNetworkMaskUsable rangeBroadcastSpare
Sales100192.168.10.0/25255.255.255.128192.168.10.1 – 192.168.10.126192.168.10.12726
Engineering50192.168.10.128/26255.255.255.192192.168.10.129 – 192.168.10.190192.168.10.19112
HR20192.168.10.192/27255.255.255.224192.168.10.193 – 192.168.10.222192.168.10.22310
WAN link2192.168.10.224/30255.255.255.252192.168.10.225 – 192.168.10.226192.168.10.2270

28 addresses left, starting at 192.168.10.228.