IPv4 Subnet Calculator

Free Tool

Please enter a valid IPv4 address (e.g. 192.168.1.0).

Subnet Results

Binary Breakdown

What Is Subnetting?

Subnetting is the practice of dividing a single IP network into smaller, more manageable sub-networks (subnets). It allows network administrators to organise devices into logical groups, improve performance, and tighten security by isolating traffic between segments.

Every IPv4 address has two components: the network portion — shared by all devices on the same subnet — and the host portion — unique to each device within that subnet. The subnet mask defines exactly where the split occurs.

Understanding CIDR Notation

CIDR (Classless Inter-Domain Routing) notation expresses an IP address and its subnet mask together — for example 192.168.1.0/24. The number after the slash is the prefix length: how many leading bits of the address are the network portion. A /24 prefix means 24 bits for the network and 8 bits for hosts, yielding 254 usable addresses.

CIDR Subnet Mask Usable Hosts Common Use
/8255.0.0.016,777,214Large ISP / Class A
/16255.255.0.065,534Large enterprise / Class B
/24255.255.255.0254Small office / Class C
/25255.255.255.128126Half a Class C
/26255.255.255.19262Small department
/27255.255.255.22430Small team
/28255.255.255.24014Small office segment
/29255.255.255.2486Point-to-point + devices
/30255.255.255.2522Point-to-point link
/31255.255.255.2542Router-to-router (RFC 3021)
/32255.255.255.2551Single host / loopback route

Key Terms Explained

  • Network Address — The first address in a subnet. All host bits are zero. It identifies the subnet itself and cannot be assigned to a device.
  • Broadcast Address — The last address in a subnet. All host bits are one. Packets sent here reach every device on the subnet. Also not assignable to individual devices.
  • Subnet Mask — A 32-bit number with consecutive ones for the network bits and zeros for host bits (e.g. 255.255.255.0). ANDing an IP with its mask reveals the network address.
  • Wildcard Mask — The bitwise inverse of the subnet mask (e.g. 0.0.0.255 for a /24). Used in access control lists (ACLs) and OSPF area definitions to specify which bits to ignore.
  • Usable Hosts — The addresses between the network address and broadcast address. Calculated as 2(32−prefix) − 2.
  • IP Class — A legacy classification (A, B, C) based on the first octet. Mostly replaced by CIDR, but still referenced in documentation and textbooks.