Developer Utility100% Client-Side Private

IP Subnet Calculator (CIDR & VLSM)

Calculate IPv4 network address, broadcast address, subnet mask, CIDR prefix, total hosts, usable host ranges, and binary netmasks online.

SS
Written by Sahil SasaparaFounder & Lead Engineer
Reviewed by Utsav SasaparaUpdated: March 2026Verified On-Device Privacy ✓
Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Usable Host Count
254
IP Class & Scope
Class CPrivate RFC 1918
Complete Subnet Calculations
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
Usable Host Range
192.168.1.1 — 192.168.1.254
Total Addresses
256
Binary IP Address
11000000.10101000.00000001.00110010
Binary Subnet Mask
11111111.11111111.11111111.00000000
Advertisement
Technical Documentation

IPv4 Subnetting, CIDR Notation & VLSM Architecture

Mathematical calculation of network addresses, broadcast domains, binary masks, and host capacities.

1. Understanding IPv4 Addressing & CIDR

An Internet Protocol version 4 (IPv4) address is a 32-bit numeric address written as four decimal octets separated by dots (e.g., 192.168.1.1). Each octet contains 8 bits, ranging from 0 to 255.

Classless Inter-Domain Routing (CIDR) notation denotes the network prefix length using a forward slash followed by the number of leading 1-bits in the subnet mask (e.g., /24 equals 255.255.255.0). The subnet mask divides the 32-bit address into two parts: the Network ID (identifying the subnet) and the Host ID (identifying individual devices within that subnet).

2. Calculating Usable Hosts & Network Addresses

To determine how many usable host IP addresses exist in a subnet with prefix length N, the formula is:

Subnet host capacity mathematical formula
Total Addresses = 2^(32 - N)
Usable Hosts    = 2^(32 - N) - 2

Example for /24 Network:
Total Addresses = 2^(32 - 24) = 2^8 = 256
Usable Hosts    = 256 - 2 = 254 usable devices
(1 address reserved for Network ID, 1 address reserved for Broadcast ID)

3. Common Subnet Mask & Host Capacity Table

Reference guide for common IPv4 CIDR subnet allocations:

CIDR PrefixSubnet MaskTotal IPsUsable HostsCommon Use Case
/32255.255.255.25511 (Host Route)Single loopback or host route
/30255.255.255.25242Point-to-point router links
/28255.255.255.2401614Small office / DMZ segment
/24255.255.255.0256254Standard local area network (LAN)
/16255.255.0.065,53665,534Enterprise VPC / Cloud network
/8255.0.0.016,777,21616,777,214Large ISP / Telecommunication block

Frequently Asked Questions (FAQs)

Q:What is CIDR notation?

CIDR (Classless Inter-Domain Routing) denotes the number of leading 1-bits in the subnet mask (e.g., /24 represents 255.255.255.0 with 254 usable hosts).