/24 Subnet Mask (255.255.255.0)

/24 subnet summary
Prefix/24
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Binary mask11111111.11111111.11111111.00000000
Total addresses256
Usable hosts254
Host bits8
Subnets of /24 in a /16256
Block size256 addresses (subnets start every 256 in the last octet)

e.g. 10.0.0.5/22 or 10.0.0.5 255.255.252.0

Subnet calculation results
Network address192.168.1.0
Broadcast address192.168.1.255
First usable host192.168.1.1
Last usable host192.168.1.254
Total addresses256
Usable hosts254
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
CIDR notation192.168.1.0/24
IP classClass C (legacy)
Address typePrivate (RFC 1918)
IP address (binary)11000000.10101000.00000001.00000000
Subnet mask (binary)11111111.11111111.11111111.00000000

■ network bits ■ host bits

Runs entirely in your browser. Nothing you enter is sent to a server.

What is a /24 subnet?

A /24 subnet uses the first 24 bits of an IPv4 address for the network and leaves 8 bits for hosts. Its subnet mask is 255.255.255.0, and it contains 2⁸ = 256 addresses, of which 254 can be assigned to devices. The /24 is the standard LAN size and the smallest prefix routinely accepted on the public internet via BGP. Use the subnet calculator above to check any /24 network.

/24 subnet example

For 192.168.1.0/24: network address 192.168.1.0, usable hosts 192.168.1.1 – 192.168.1.254, broadcast address 192.168.1.255, wildcard mask 0.0.0.255.

/24 networks in 172.16.0.0/16

A /16 holds 256 /24 networks:

Frequently asked questions

How many usable IPs are in a /24?

254. The block has 256 addresses; the first is the network address and the last is the broadcast address.

What is the subnet mask for /24?

255.255.255.0, or 11111111.11111111.11111111.00000000 in binary.

How many /24 subnets are in a /16?

256 (2⁸), because a /24 uses 8 more network bits than a /16.

What is the difference between /24 and /23?

A /23 (255.255.254.0) is twice as large: 512 addresses and 510 usable hosts, spanning two consecutive /24 blocks such as 192.168.0.0–192.168.1.255.

Nearby prefixes