ZHIXU TOOLSZHIXU TOOLSZHIXU

Subnet Calculator

Enter IP address and subnet mask to calculate quickly the number of host units available, the number of subnets and the broadcast address

Network Parameters Input

IP Address

. . .

Subnet settings

Subnet mask

. . .
/

Number of hosts available

254
Number of host IP addresses available in the current subnet

Number of subnets

1
Total number of subnets based on network categories

Broadcast address

192.168.1.255
Broadcasting address of the current network

Network address

192.168.1.0
Network address of the current network

Subnet mask visualization

Network bits
Host bits
Subnet bits

How subnet calculations work

An IPv4 subnet mask is a 32-bit binary value that separates the network and host portions of an IP address. Consecutive 1s represent network bits, followed by 0s for host bits.

Core formula:

1. Number of hosts available = 2(Number of host spaces) - 2

2. Number of subnets = 2(Number of subnet bits)

3. Network address = IP address AND subnet mask

4. Broadcast address = Network address OR (NOT subnet mask)

Example of calculation:

Assuming that we have a C-type network: 192.168.1.0 with a subnet mask of 255.255.255.0 (24):

  • Number of host places = 32 - 24 = 8
  • Usable hosts = 28 - 2 = 254
  • Number of subnets = 2(24-24) = 1 (undistributed subnet)
  • Network address = 192.168.1.0
  • Broadcast address = 192.168.1.255

Why subtract 2?

A conventional subnet reserves 2 addresses: the network address (all host bits 0) and broadcast address (all host bits 1). These addresses are not assigned to host devices.

CIDR expression

CIDR (inter-area route without category) means that it is a simpler sub-net mask expression, in the form of IP addresses followed by "/" and network position lengths. For example: 192.168.1.0/24.

How to use

ZHIXU TOOLS · Back to all tools