Skip to content

IP Subnet Calculator

Calculate IPv4 and IPv6 subnet details including network address, broadcast, usable host range, wildcard mask, and CIDR notation.

IPv4 Subnet Calculator

Network Class
IP Address192.168.1.100
Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
IP ClassC
IP TypePrivate
CIDR Notation24 (192.168.1.0/24)
Total Hosts256
Usable Hosts254
IP Binary11000000.10101000.00000001.01100100
Subnet Binary11111111.11111111.11111111.00000000

IPv6 Subnet Calculator

Full Address2001:0db8:85a3:0000:0000:8a2e:0370:7334
Short Address2001:db8:85a3::8a2e:370:7334
Network Prefix2001:db8:85a3:/64
First Address2001:db8:85a3:
Last Address2001:db8:85a3:0:ffff:ffff:ffff:ffff
Total Addresses2^64
IP TypeGlobal unicast

Understanding IP Subnets

Subnetting divides a large network into smaller, manageable sub-networks. Each subnet has its own range of IP addresses, defined by the subnet mask (or CIDR prefix length).

Key Concepts

  • Network Address: First address in the subnet — identifies the network itself
  • Broadcast Address: Last address — sends data to all hosts on the subnet
  • Usable Hosts: Total addresses minus 2 (network and broadcast). A /24 = 256 - 2 = 254 hosts
  • Wildcard Mask: Inverse of subnet mask — used in ACLs and OSPF. For 255.255.255.0, wildcard is 0.0.0.255

IPv4 Subnet Reference Table

PrefixNetwork MaskUsable Hosts
Classless
/1128.0.0.02,147,483,646
/2192.0.0.01,073,741,822
/3224.0.0.0536,870,910
/4240.0.0.0268,435,454
/5248.0.0.0134,217,726
/6252.0.0.067,108,862
/7254.0.0.033,554,430
Class A
/8255.0.0.016,777,214
/9255.128.0.08,388,606
/10255.192.0.04,194,302
/11255.224.0.02,097,150
/12255.240.0.01,048,574
/13255.248.0.0524,286
/14255.252.0.0262,142
/15255.254.0.0131,070
Class B
/16255.255.0.065,534
/17255.255.128.032,766
/18255.255.192.016,382
/19255.255.224.08,190
/20255.255.240.04,094
/21255.255.248.02,046
/22255.255.252.01,022
/23255.255.254.0510
Class C
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522
/31255.255.255.2540
/32255.255.255.2550

Private IP Address Ranges

ClassRangeCIDRAddresses
A10.0.0.0 — 10.255.255.25510.0.0.0/816,777,216
B172.16.0.0 — 172.31.255.255172.16.0.0/121,048,576
C192.168.0.0 — 192.168.255.255192.168.0.0/1665,536

IPv6 Addressing

IPv6 uses 128-bit addresses written as eight groups of four hexadecimal digits separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334). Leading zeros in each group can be omitted, and consecutive groups of all zeros can be replaced with "::".

Common IPv6 Prefix Lengths

  • /32: Minimum allocation to an ISP from a Regional Internet Registry
  • /48: Typical allocation to a single site or customer
  • /56: Smaller site allocation — gaining popularity for residential customers
  • /64: Standard subnet size — required for SLAAC (Stateless Address Autoconfiguration)
  • /128: Single host address (loopback, point-to-point)

Related Calculators

Frequently Asked Questions

What is a subnet mask?

A subnet mask divides an IP address into network and host portions. It determines how many devices can be on a network and which IP addresses belong to the same subnet.

What does CIDR notation mean?

CIDR (Classless Inter-Domain Routing) notation like /24 indicates the number of bits used for the network portion. /24 means 24 network bits and 8 host bits (256 addresses, 254 usable).

What is the difference between network and broadcast address?

The network address is the first IP in a subnet (all host bits 0) and identifies the network. The broadcast address is the last IP (all host bits 1) and reaches all hosts on the subnet. Neither can be assigned to a device.

How many usable hosts in a /24 subnet?

254 usable hosts. A /24 has 256 total addresses (2^8), minus 2 for the network and broadcast addresses.