IPv4 Subnet Calculator
Subnet masks, CIDR ranges and usable IPv4 hosts
Runs on this device · 0 B uploadedSubnet input
/0/8/16/24/32
Network CIDR
192.168.1.0/24
Private networkClass CNetwork and broadcast excluded
Usable hosts
254
Total addresses
256
Host bits
8
Network address
192.168.1.0
First address in the subnet
Broadcast address
192.168.1.255
Last address in the subnet
First usable host
192.168.1.1
After the network address
Last usable host
192.168.1.254
Before the broadcast address
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Network bits
/24
Binary breakdown
Input IP
11000000.10101000.00000001.00001010Network
11000000.10101000.00000001.00000000Subnet mask
11111111.11111111.11111111.00000000Wildcard
00000000.00000000.00000000.11111111Broadcast
11000000.10101000.00000001.11111111Common subnets
How IPv4 subnetting works
The CIDR prefix says how many of the 32 bits identify the network. A /24 prefix equals the mask 255.255.255.0 and leaves 8 host bits. In most subnets the first and last addresses are the network and broadcast addresses, while /31 links and /32 host routes are special cases.