How many usable hosts are in a /24 subnet?
A /24 contains 256 total IPv4 addresses. In the traditional model, 254 are usable by hosts because the network and broadcast addresses are excluded.
Fast, private IPv4 calculations
Calculate the network address, broadcast address, usable host range, subnet masks and adjacent subnets.
Runs locally in your browser.
An IPv4 subnet calculator converts an IP address and CIDR prefix into the network address, broadcast address, subnet mask, wildcard mask, address range, and host capacity of the subnet. It helps you verify an addressing plan without calculating binary values by hand.
Use the Copy buttons for values you need elsewhere. Use Load on an adjacent subnet to calculate it without entering the address manually.
A CIDR prefix indicates the number of network bits in an IPv4 address. A /24 uses 24 network bits and leaves 8 host bits.
The subnet mask for a /24 is 255.255.255.0, and its wildcard mask is 0.0.0.255. The wildcard mask is the bitwise inverse of the subnet mask.
A larger prefix generally produces a smaller address block. Wildcard masks are commonly used in access control lists and some routing configurations.
The network address is the first address of a traditional subnet and identifies the subnet itself. The broadcast address is normally the last address and is used to reach every host on that subnet. The /31 and /32 prefixes have different operational rules, explained below.
In a traditional IPv4 subnet, the usable host range excludes the network and broadcast addresses. For example, a /24 contains 256 total addresses and traditionally provides 254 usable host addresses.
A /31 contains two addresses and is commonly used on point-to-point links, where both addresses can act as endpoints instead of using separate network and broadcast addresses. A /32 represents one IPv4 address and is often used as a host route.
192.168.1.1024A /24 contains 256 total IPv4 addresses. In the traditional model, 254 are usable by hosts because the network and broadcast addresses are excluded.
CIDR expresses the network boundary as a prefix length, such as /24. A subnet mask expresses the same boundary in dotted-decimal form, such as 255.255.255.0.
Yes. A /31 is commonly used for a point-to-point link, where its two addresses are treated as endpoints and no separate broadcast address is needed.
A /32 identifies one IPv4 address. It is commonly used for a host route or when a configuration must refer to one exact address.
A wildcard mask is the bitwise inverse of a subnet mask. It is commonly used in access control lists and some routing configurations to identify which address bits must match.
No. The subnet calculation is performed locally in your browser, and the IPv4 address you enter is not sent to a server for the calculation.