CIDR / Subnet Calculator

Calculate IPv4 subnet ranges and host counts from CIDR notation.

192.168.1.0/24
Class C Private (RFC 1918)
Network Address
192.168.1.0
Broadcast Address
192.168.1.255
First Usable Host
192.168.1.1
Last Usable Host
192.168.1.254
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
Total Hosts
256
Usable Hosts
254

Binary Representation

IP 11000000.10101000.00000001.00000000
Mask 11111111.11111111.11111111.00000000
Split into Subnets

Divide this network into smaller subnets by choosing a larger prefix.

/

4 subnets, 62 usable hosts each

# Network First Host Last Host Broadcast Usable
1 192.168.1.0/26 192.168.1.1 192.168.1.62 192.168.1.63 62
2 192.168.1.64/26 192.168.1.65 192.168.1.126 192.168.1.127 62
3 192.168.1.128/26 192.168.1.129 192.168.1.190 192.168.1.191 62
4 192.168.1.192/26 192.168.1.193 192.168.1.254 192.168.1.255 62

How It Works

CIDR notation (Classless Inter-Domain Routing) expresses an IP address and its network prefix in the form a.b.c.d/n. The prefix length n specifies how many leading bits identify the network — the remaining 32 − n bits identify individual hosts within that network.

The subnet mask is a 32-bit number with n ones followed by zeros (e.g. /24255.255.255.0). AND-ing any IP address with the mask yields the network address; OR-ing with the inverted mask (the wildcard) yields the broadcast address. All host addresses in between are usable — except the first (network) and last (broadcast), which are reserved. A /31 or /32 is a special case per RFC 3021: all addresses are usable.

Private address ranges (RFC 1918) are never routed on the public internet: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. These are commonly used behind NAT in home and enterprise networks. 127.0.0.0/8 is the loopback range, 169.254.0.0/16 is link-local (APIPA), and 224.0.0.0/4 is reserved for multicast.

Subnetting divides a network by increasing the prefix length. Each additional bit halves the address space: a /24 split into /26 yields 4 subnets of 62 usable hosts each. This tool uses pure bitwise integer arithmetic — no external libraries.

Crunchify.net — Free tools, no ads, no tracking.