CIDR Calculator

Calculate network range, netmask, and usable hosts from CIDR notation.
Calculator
Enter your values
Analysis
Interpretation of the current calculator output

Enter values to see detailed analysis and insights.

How to Use

Step-by-step instructions
  1. 1Enter the IP address.
  2. 2Enter the CIDR suffix (e.g., 24 for /24).
  3. 3The calculator will display the netmask and host count.

Subnet Calculation

Calculates the number of available IP addresses in a subnet based on the prefix length (CIDR).
Hosts = 2^(32 - CIDR) - 2

Variables:

CIDRNetwork prefix length (0-32)

Example

/24 Network

Inputs:

IP:192.168.1.0
CIDR:24

Steps:

  1. 1.Host Bits = 32 - 24 = 8
  2. 2.Total Hosts = 2^8 = 256
  3. 3.Usable = 256 - 2 = 254
Result:
254 Hosts

Frequently Asked Questions

Why -2 hosts?

The first address is the Network Address and the last is the Broadcast Address. Neither can be assigned to a specific host.