Home Tools Subnet Calculator

IPv4 Subnet Calculator

Enter an IP address in CIDR notation to instantly calculate network address, broadcast, host range, subnet mask, and binary breakdown.

RFC 950 compliant Instant — no server calls No data stored
Try:
Network Address
Broadcast Address
Subnet Mask
Wildcard Mask
Usable Hosts
CIDR Prefix
First Usable Host
Last Usable Host
Class & Type
Binary Breakdown
IP Addr
Subnet Mask
Network
Network portion
Host portion

Subnet Reference

CIDR Prefix → Hosts Quick Reference
PrefixSubnet MaskUsable HostsTotal Addr.Common Use
/8255.0.0.016,777,21416,777,216Class A / large ISP block
/12255.240.0.01,048,5741,048,576RFC 1918 172.16.0.0/12
/16255.255.0.065,53465,536Class B / enterprise campus
/20255.255.240.04,0944,096Large datacenter VLAN
/22255.255.252.01,0221,024Medium VLAN / building
/24255.255.255.0254256Standard LAN segment
/25255.255.255.128126128Half a /24, split LAN
/26255.255.255.1926264Small VLAN / office floor
/27255.255.255.2243032Small team / server cluster
/28255.255.255.2401416Small server subnet
/29255.255.255.24868Point-to-point with spares
/30255.255.255.25224WAN links, router-to-router
/31255.255.255.2542*2P2P links (RFC 3021)
/32255.255.255.25511Host route / loopback
* /31 per RFC 3021 — both addresses usable, no network/broadcast reservation. Usable hosts = 2^(32−prefix) − 2 for /0–/30.
Binary Example — 192.168.1.0/24
IP Addr 11000000.10101000.00000001.00000000 192.168.1.0
Mask /24 11111111.11111111.11111111.00000000 255.255.255.0
AND → 11000000.10101000.00000001.00000000 192.168.1.0 network
Bcast 11000000.10101000.00000001.11111111 192.168.1.255 (host bits → 1)
Network = IP AND mask. Broadcast = network OR (NOT mask). Blue = network portion (fixed). Green = host portion (variable).
RFC 1918 Private Address Space
10.0.0.0/810.0.0.0 – 10.255.255.255  ·  16,777,216 addresses  ·  Class A private
172.16.0.0/12172.16.0.0 – 172.31.255.255  ·  1,048,576 addresses  ·  Class B private
192.168.0.0/16192.168.0.0 – 192.168.255.255  ·  65,536 addresses  ·  Class C private
RFC 1918 ranges are not routed on the public internet. Requires NAT (RFC 3022) to reach external destinations.

Understand IPv4 at the packet level

Header fields, fragmentation, TTL, and addressing — all explained.

IPv4 Protocol Guide