Home Net Guide

Home / Subnet calculator / /24

/24 subnet: mask 255.255.255.0

A /24 network holds 256 addresses, of which 254 can be given to devices. Its subnet mask is 255.255.255.0.

Prefix length (CIDR)
/24
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Mask in binary
11111111.11111111.11111111.00000000
Network bits / host bits
24 / 8
Total addresses
256 (2 to the power of 8)
Usable host addresses
254 (the first address names the network and the last is the broadcast address)

What a /24 is used for

A /24 is the network almost everyone has at home: 254 usable addresses, with the first three numbers naming the network, as in 192.168.1.0/24. It is the old class C. On the public internet it matters for another reason: a /24 is the smallest block that internet providers will generally accept in the global routing table.

Worked example: which /24 is 192.168.1.130 in?

The mask ends exactly on an octet boundary, so no arithmetic is needed. The first three octets name the network and the rest are set to zero: 192.168.1.130 is in 192.168.1.0/24.

Network
192.168.1.0/24
Usable range
192.168.1.1 to 192.168.1.254
Broadcast address
192.168.1.255
Next /24 begins at
192.168.2.0/24

Open this example in the subnet calculator to see it bit by bit, or to try your own address.

The first 16 of the 256 /24 networks in 192.168.0.0/16

NetworkUsable rangeBroadcast
192.168.0.0/24192.168.0.1 to 192.168.0.254192.168.0.255
192.168.1.0/24192.168.1.1 to 192.168.1.254192.168.1.255
192.168.2.0/24192.168.2.1 to 192.168.2.254192.168.2.255
192.168.3.0/24192.168.3.1 to 192.168.3.254192.168.3.255
192.168.4.0/24192.168.4.1 to 192.168.4.254192.168.4.255
192.168.5.0/24192.168.5.1 to 192.168.5.254192.168.5.255
192.168.6.0/24192.168.6.1 to 192.168.6.254192.168.6.255
192.168.7.0/24192.168.7.1 to 192.168.7.254192.168.7.255
192.168.8.0/24192.168.8.1 to 192.168.8.254192.168.8.255
192.168.9.0/24192.168.9.1 to 192.168.9.254192.168.9.255
192.168.10.0/24192.168.10.1 to 192.168.10.254192.168.10.255
192.168.11.0/24192.168.11.1 to 192.168.11.254192.168.11.255
192.168.12.0/24192.168.12.1 to 192.168.12.254192.168.12.255
192.168.13.0/24192.168.13.1 to 192.168.13.254192.168.13.255
192.168.14.0/24192.168.14.1 to 192.168.14.254192.168.14.255
192.168.15.0/24192.168.15.1 to 192.168.15.254192.168.15.255

One size up and one size down

Each bit removed from the prefix doubles a network, and each bit added halves it. A /23 is twice the size, with 510 usable addresses, and a /25 is half the size, with 126 usable addresses. The table of every prefix size compares them all, and the VLAN planner lays out several networks of different sizes without overlaps.