E
EARNOVA DIGITALearnovadigital.com
Free browser-based productivity tool
#48 • EarnovaSubnetProductivity

Calculate IP Subnets & CIDR Fast & Accurately

Supported Features:
IPv4 / CIDRNetmaskUsable Host RangeBinary IP

Calculate IPv4 subnet masks, usable host ranges, broadcast addresses, and binary representations in real time.

100% Private — Processed locally in your browser

Loading tool…

Networking Architecture Technical Guide

IPv4 Subnetting, CIDR Notation & Variable Length Subnet Masking (VLSM)

Subnetting is the fundamental engineering practice of partitioning a single physical IPv4 network into multiple logical sub-networks. This improves network performance, isolates broadcast domains, and enforces security boundaries.

1. Classless Inter-Domain Routing (CIDR) Prefix Mechanics

Every IPv4 address is composed of exactly 32 binary bits represented in four 8-bit octets (e.g., 192.168.1.0). CIDR prefix notation (/24) denotes the number of contiguous leading bits allocated to the Network Identifier, leaving the remaining bits for Host Identifiers.

CIDR PrefixSubnet MaskTotal AddressesUsable Host CountCommon Application
/30255.255.255.25242Point-to-point router links
/28255.255.255.2401614Small DMZ / server racks
/24255.255.255.0256254Standard office / LAN segment
/20255.255.240.04,0964,094Enterprise campus network
/16255.255.0.065,53665,534Cloud VPC / Data Center core

2. Usable Host Count Formula & Boundary Addresses

For all subnets between /0 and /30, the usable host count is calculated using the formula:

Usable Hosts = 2^(32 - Prefix) - 2

The subtraction of 2 accounts for the two unassignable boundary addresses reserved by RFC 791: the Network ID (all host bits set to 0, representing the wire itself) and the Directed Broadcast Address (all host bits set to 1, used to address all nodes in the subnet simultaneously).

3. RFC 1918 Private IP Address Allocations

The Internet Engineering Task Force (IETF) designated three non-routable address ranges for internal enterprise and home networks that do not require globally unique public IPv4 addresses:

  • Class A Block: 10.0.0.0/8 (10.0.0.0 – 10.255.255.255, 16,777,216 total addresses)
  • Class B Block: 172.16.0.0/12 (172.16.0.0 – 172.31.255.255, 1,048,576 total addresses)
  • Class C Block: 192.168.0.0/16 (192.168.0.0 – 192.168.255.255, 65,536 total addresses)

How to Use IP Address & Subnet CIDR Calculator

  1. 1

    Enter IPv4 Address

    Type your IPv4 address (e.g. 192.168.1.1 or 10.0.0.1) into the input box.

  2. 2

    Adjust Subnet Mask CIDR

    Drag the smooth prefix slider or select any CIDR prefix from /0 to /32.

  3. 3

    Inspect Network Ranges & Copy

    Review network address, usable host ranges, broadcast IP, and binary breakdowns.

Frequently Asked Questions

CIDR (Classless Inter-Domain Routing) notation specifies an IP address and its associated routing prefix (e.g. /24 indicates 24 network bits and 8 host bits, yielding a 255.255.255.0 netmask).