Number of Hosts Per Subnet

Check the number of hosts that is in a subnet on CIDR


Calculate the Number of Hosts in a Subnet

To calculate the number of hosts that are in a given subnet you can use the formula 2h-2, The variable h is based on the number of host bits of an IP address. Negative two represents the network address and broadcast address in the network which would be unusable for the hosts. Therefore two addresses are always removed. For example /28 would have 28 network bits and four host bits. The formula would be 24-2 which would result in 14 hosts per subnet.

Number of hosts per subnet formula
Fig.1 The formula to calculate the number of hosts in a subnet.

What is a Private IP Address?

Private IP addresses are allocated in private networks, These networks usually are Local Area Networks (LANs). In IPv4 there are three private IP address spaces. A device that does not require connection with the outside internet, the device can be assigned a private address. With a private IP address enables a device to communicate only with other devices on the same private network. Each device within the private network will have a unique IP assigned. The router will also be assigned a private IP address in order to communicate with the devices on the private network. The router would usually be assigned the first usable address ( after the network identifier( Other external networks on the internet can avail of the same private addressing space for their internal networks. The private address of a device is not exposed to the internet. The private address block spaces are :

  1. to
  2. to
  3. to

Number of hosts per Subnet table

The number of hosts in a subnet would depend on the Classless Interdomain Routing (CIDR) and the class range of the IP address. Class A networks or anything greater than a /8 CIDR, would have the largest number of hosts ranging in the millions. Class B networks or greater than /16 CIDR would have thousands of hosts. In a class C subnet any CIDR greater than /24 would be a couple of hundred.

Number of hosts in /24 Subnets

Number of Hosts in a Class C Subnet
CIDRNumber of hosts (Available)

Number of hosts in /16 Subnets

Number of Hosts in a Class B Subnet
CIDRNumber of hosts (Available)

Number of hosts in /8 Subnets

Number of Hosts in a Class A Subnet
CIDRNumber of hosts (Available)

Similar Pages/Apps

Subnet Mask To Wildcard Mask

Convert subnet mask to a wildcard mask

Star Icon


Number Of Hosts

Calculate the number of hosts

Star Icon


Subnet Mask To CIDR

Convert subnet mask to a CIDR

Star Icon


Number Of Subnets

Calculate the number of Subnets

Star Icon


Subnet Mask to Binary

Calculate the Subnet Mask to Binary Notation

Star Icon


IPv4 to Hex

Convert IPv4 to Hex

Star Icon


IPv6 to Hex

Convert IPv6 to Hex

Star Icon


Wildcard Mask to Subnet Mask

Convert a Wildcard Mask to a Subnet Mask

Star Icon


IPv6 to Decimal

Convert IPv6 to Decimal Notation

Star Icon


Generate MAC Address

Randomly Generate a Mac Address

Star Icon


IPv6 Compression Calculator

Compressor or Shorten an IPv6 Address

Star Icon


IPV4 Validator

Check if an IPV4 Address is vaild

Star Icon


IP to binary

Convert IPV4 to binary

Star Icon


IP class checker

Check the class of an IP address

Star Icon