🌐 IT & Network Tools

Subnet Calculator

IPv4 subnet calculator with binary visualization, wildcard mask, VLSM subnet split, and host-count input. Enter any IP address and CIDR prefix — instantly see network address, broadcast, usable host range, and a color-coded binary bit breakdown.

Enter IP Address & Subnet
or calculate from required hosts
Network
Usable Hosts
Total Addresses
Prefix
Network Address
First address in subnet
Broadcast Address
Last address in subnet
First Usable Host
Network address + 1
Last Usable Host
Broadcast address − 1
Subnet Mask
Wildcard Mask
Inverse of subnet mask
IP Address (Hex)
Hexadecimal notation
IP Address (Integer)
32-bit unsigned integer
Binary Visualization — Network / Host Bit Boundary
IP Address
Subnet Mask
Network Addr
Network bits (fixed)
Host bits (variable)
Subnet Split — VLSM Reference
Prefix Subnet Mask Subnets Hosts/Subnet First Subnet Range
CIDR Quick Reference Table
Prefix Subnet Mask Wildcard Mask Total Addresses Usable Hosts Notes
Class A — /8 through /15
/8255.0.0.00.255.255.25516,777,21616,777,214Large orgs, ISPs
/9255.128.0.00.127.255.2558,388,6088,388,606
/10255.192.0.00.63.255.2554,194,3044,194,302
/12255.240.0.00.15.255.2551,048,5761,048,574172.16.0.0/12 private
/16255.255.0.00.0.255.25565,53665,534Class B default
Class B — /16 through /23 (common ranges)
/17255.255.128.00.0.127.25532,76832,766
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094AWS VPC default
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022Mid-size office
/23255.255.254.00.0.1.255512510
Class C — /24 through /32
/24255.255.255.00.0.0.255256254Most common subnet
/25255.255.255.1280.0.0.127128126Half of /24
/26255.255.255.1920.0.0.636462CCNA common example
/27255.255.255.2240.0.0.313230Small workgroup
/28255.255.255.2400.0.0.151614Small team / DMZ
/29255.255.255.2480.0.0.786Router link segment
/30255.255.255.2520.0.0.342WAN point-to-point
/31255.255.255.2540.0.0.120*RFC 3021 P2P links
/32255.255.255.2550.0.0.011Single host route

* /31 uses RFC 3021 — no network or broadcast address; both addresses are usable on point-to-point links. Highlighted rows are the most commonly used prefixes.

Frequently Asked Questions

Everything you need to know about subnetting, CIDR notation, and using this calculator for CCNA study or network planning.

CIDR (Classless Inter-Domain Routing) notation expresses a network as an IP address followed by a forward slash and a prefix length — for example 192.168.1.0/24. The number after the slash indicates how many bits of the 32-bit IP address are used for the network portion. /24 means the first 24 bits are the network, leaving 8 bits for hosts — giving 254 usable addresses.

A wildcard mask is the inverse of a subnet mask — every 0 in the subnet mask becomes a 1, and every 1 becomes a 0. Wildcard masks are used in Cisco ACL (Access Control List) configurations and OSPF area definitions to specify which bits of an IP address must match. For a /24 subnet (mask 255.255.255.0), the wildcard mask is 0.0.0.255.

The network address is the first address in a subnet — it identifies the subnet itself and cannot be assigned to a host. The broadcast address is the last address in the subnet — packets sent to it are delivered to all hosts in the subnet and it also cannot be assigned. All addresses between network and broadcast are usable host addresses.

VLSM (Variable Length Subnet Masking) is the practice of using different prefix lengths on different parts of a network. Instead of wasting a /24 (254 hosts) on a point-to-point link that only needs 2 hosts, VLSM lets you use a /30 (2 hosts) for that link and save the rest of the address space. The Subnet Split table in this calculator shows how your parent network divides at each prefix length from your current prefix down to /30.

The binary visualization shows all 32 bits of your IP address, subnet mask, and network address. Network bits are highlighted in navy and host bits in orange, making the boundary between them visually obvious. This is the same technique used in CCNA certification training. Seeing the bit boundary makes it immediately clear why certain IP addresses belong to a given subnet and others do not — and it makes the math behind subnetting intuitive rather than abstract.

Private IP addresses are defined in RFC 1918 and can only be used inside private networks — they are not routable on the public internet. The three private ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. Any IP outside these ranges is a public address assigned by your ISP and routable on the internet. This calculator detects which type your entered IP belongs to.

Use the Required Hosts input. Enter the number of hosts you need and the calculator will automatically select the smallest subnet prefix that can accommodate that count, accounting for the 2 reserved addresses (network and broadcast). For example, entering 50 hosts selects a /26 subnet with 62 usable host addresses — the smallest prefix that fits 50 hosts without wasting space.

Disclaimer: QuickITTools.com and EnterPlanet LLC strive to make our tools as accurate as possible. All subnet calculations are performed client-side using standard RFC-compliant IPv4 bit arithmetic. Results are provided for network planning and educational purposes. Always verify critical network configurations independently before production deployment.