IPv4 Subnet Calculator

Enter a network address in CIDR notation or with a subnet mask. Instantly compute all subnet parameters including usable host range, wildcard mask, and binary representation.

Enter a CIDR notation above and press Calculate or Enter

How to use this subnet calculator

Enter any IPv4 address with a CIDR prefix (e.g., 192.168.1.0/24) or with a dotted-decimal subnet mask (e.g., 10.0.0.0 255.0.0.0). The calculator instantly returns all subnet parameters.

Understanding CIDR notation

CIDR (Classless Inter-Domain Routing) notation combines the network address with the prefix length using a slash. A /24 prefix means the first 24 bits are the network portion, leaving 8 bits for host addresses — yielding 254 usable hosts.

Common subnet masks reference

CIDRSubnet maskUsable hosts
/30255.255.255.2522
/29255.255.255.2486
/28255.255.255.24014
/27255.255.255.22430
/26255.255.255.19262
/25255.255.255.128126
/24255.255.255.0254
/23255.255.254.0510
/22255.255.252.01022
/16255.255.0.065534
/8255.0.0.016777214