/24 subnet (CIDR)

A /24 network has subnet mask 255.255.255.0, 256 total addresses and 254 usable hosts.

255.255.255.0Subnet mask
0.0.0.255Wildcard mask
256Addresses
254Usable hosts

Open 192.168.1.0/24 in the subnet calculator →

Details

PropertyValue
Network bits24
Host bits8
Mask in binary11111111.11111111.11111111.00000000
Mask in hex0xFFFFFF00
Total addresses28 = 256
Usable hosts28 − 2 = 254
Subnets per /241
Historic class equivalentClass C

Typical use: Former class C and the most common LAN subnet (254 hosts).

First /24 blocks in 192.168.1.0/24

NetworkFirst hostLast hostBroadcast
192.168.1.0/24192.168.1.1192.168.1.254192.168.1.255

Example: 192.168.1.0/24

Network 192.168.1.0, broadcast 192.168.1.255, hosts 192.168.1.1 to 192.168.1.254.

Neighbouring prefixes

Each step of one bit halves (or doubles) the size: a /24 holds two /25s.

Frequently asked questions

How many hosts in a /24?
254 usable out of 256 addresses.
What is the subnet mask for /24?
255.255.255.0 (binary 11111111.11111111.11111111.00000000).