IPv4 Subnet Calculator
Subnet Details
| Network Address | — |
|---|---|
| First Usable IP | — |
| Last Usable IP | — |
| Broadcast Address | — |
| Total Usable Hosts | — |
| Total Available Hosts | — |
| Subnet Mask | — |
| Wildcard Mask | — |
| Binary Subnet Mask | — |
| IP Class / Type | — |
Use this IPv4 Subnet Calculator to instantly calculate network addresses, usable IP ranges, broadcast addresses, subnet masks, wildcard masks, and binary representations from any IP address and CIDR prefix. Whether you are planning a network, studying for your CCNA, configuring router ACLs, or verifying host counts — simply enter your IP, adjust the CIDR slider, and get a complete subnet breakdown in real time with no login required.
| Network Address | — |
|---|---|
| First Usable IP | — |
| Last Usable IP | — |
| Broadcast Address | — |
| Total Usable Hosts | — |
| Total Available Hosts | — |
| Subnet Mask | — |
| Wildcard Mask | — |
| Binary Subnet Mask | — |
| IP Class / Type | — |
Type any valid IPv4 address into the IP Address field. The calculator accepts any address in dotted-decimal notation — four octets, each between 0 and 255.
192.168.0.1, 10.0.0.50, or 172.16.5.100.You have two ways to define the subnet size — both controls stay in sync automatically.
255.255.255.0 or 255.255.0.0. The CIDR slider jumps to match instantly./0 (entire internet block) to /32 (single host). The subnet mask field updates in real time.Every row in the results table explained:
Example — IP 10.0.0.50 with prefix /26
| Field | Value | Description |
|---|---|---|
| Network Address | 10.0.0.0 / 26 | Base address representing the subnet |
| First Usable IP | 10.0.0.1 | First IP assignable to a device |
| Last Usable IP | 10.0.0.62 | Last IP assignable to a device |
| Broadcast Address | 10.0.0.63 | Sends data to all hosts on this subnet |
| Total Usable Hosts | 62 | Assignable devices (2⁶ − 2) |
| Total Available Hosts | 64 | Full block size including network + broadcast (2⁶) |
| Subnet Mask | 255.255.255.192 | Dotted-decimal mask for /26 |
| Wildcard Mask | 0.0.0.63 | Used in ACLs and OSPF configurations |
10.0.0.50 falls inside the network 10.0.0.0/26 — the calculator always derives the true network address by ANDing your IP with the subnet mask.This tool handles single-subnet inspection. For multi-subnet planning, use the specialized tools in the navigation menu above:
A subnet mask is a 32-bit number that divides an IP address into a network portion and a host portion. Bits set to 1 identify the network; bits set to 0 identify the specific host within that network. For example, 255.255.255.0 (/24) means the first 24 bits are the network and the last 8 bits identify hosts — allowing up to 254 usable addresses.
CIDR (Classless Inter-Domain Routing) notation expresses a network as an IP address followed by a slash and the count of leading 1-bits in the subnet mask — e.g. 192.168.1.0/24. It replaced the rigid Class A/B/C system and allows flexible, efficient address allocation. The number after the slash is called the prefix length and ranges from /0 to /32.
Total Usable Hosts is the count of addresses you can actually assign to devices — calculated as 2(32−prefix) − 2, subtracting the network address and broadcast address. Total Available Hosts is the full block size — 2(32−prefix) — counting all addresses including those two reserved ones. For a /24: usable = 254, available = 256. For a /26: usable = 62, available = 64.
A wildcard mask is the bitwise inverse of the subnet mask. A 0 bit means "this bit must match" and a 1 bit means "any value is accepted." Wildcard masks are used in Cisco router ACLs (access control lists) and in OSPF network statements to define which addresses a rule applies to. For a /24 network the wildcard mask is 0.0.0.255.
Use the formula: 2(32 − prefix length) − 2. Subtract 2 to exclude the network address and broadcast address, neither of which can be assigned to a device. For example, a /24 gives 28 − 2 = 254 usable hosts; a /26 gives 26 − 2 = 62 usable hosts. Special cases: /31 = 2 hosts (RFC 3021 point-to-point link), /32 = 1 host (host route).
A /31 subnet (defined in RFC 3021) provides exactly 2 addresses for point-to-point links — no separate network or broadcast address is needed, so both addresses are usable. A /32 is a host route representing one specific IP address, commonly used on loopback interfaces and in BGP next-hop configurations. This calculator handles both correctly.
This Subnet Calculator is designed for inspecting a single network block — it instantly shows you the network address, usable host range, broadcast address, wildcard mask, and binary representation for one IP and mask combination. The FLSM Calculator divides a network into multiple equal-sized subnets, while the VLSM Calculator allocates subnets of varying sizes based on individual host requirements for each segment.