IP Subnet Calculator

Calculate subnet information from CIDR notation. Find network addresses, broadcast addresses, usable IP ranges, and subnet masks.

Enter CIDR Notation

Common prefixes:

CIDR Reference Table

CIDRSubnet MaskHostsUsable
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422*
/32255.255.255.25511

* /31 is a special case for point-to-point links (RFC 3021)

Understanding Subnets

Subnetting divides a large network into smaller, more manageable pieces. Each subnet has its own range of IP addresses, allowing for better organization, security, and efficient use of IP addresses.

The CIDR prefix (like /24) indicates how many bits are used for the network portion of the address. The remaining bits are used for host addresses.

Private IP Ranges

10.0.0.0/8

Class A private - 16.7 million addresses

172.16.0.0/12

Class B private - 1 million addresses

192.168.0.0/16

Class C private - 65,536 addresses

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation is a compact way to represent IP addresses and their associated network prefixes. For example, 192.168.1.0/24 represents a network with 256 addresses (254 usable) starting from 192.168.1.0.

What is a subnet mask?

A subnet mask defines which portion of an IP address identifies the network and which identifies the host. For example, 255.255.255.0 (/24) means the first three octets identify the network, and the last octet identifies the host.

Why are there fewer usable hosts than total hosts?

Two addresses are reserved in each subnet: the network address (first address) used to identify the network, and the broadcast address (last address) used to send messages to all hosts on the network.

What is the difference between private and public IP ranges?

Private IP ranges (10.x.x.x, 172.16-31.x.x, 192.168.x.x) are reserved for internal networks and cannot be routed on the internet. Public IPs are globally unique and routable on the internet.