Last updated: March 2026
What Is a Subnet Calculator?
A subnet calculator takes an IPv4 address and a CIDR prefix length (like 192.168.1.0/24) and computes every property of that subnet: network address, broadcast address, subnet mask, wildcard mask, first and last usable host, total addresses, and usable host count.
IPv4 has 4.3 billion possible addresses, and subnetting is how network engineers carve that space into manageable, secure segments. The average enterprise network uses 50 to 200 subnets to separate departments, server VLANs, guest networks, and management interfaces.
How to Use This Subnet Calculator
- Enter an IP address — Type any IPv4 address into the input field. You can include the CIDR prefix (e.g.
10.0.0.0/16) or set it separately. - Adjust the CIDR prefix — Use the dropdown or slider to choose a prefix from /0 to /32. Results update in real time as you move the slider.
- Read the results — The results table shows network address, broadcast address, masks, host range, usable hosts, IP class, and a color-coded binary representation.
- Use the CIDR reference — Click any row in the reference table to instantly switch to that prefix and see its properties.
- Try VLSM planning — Switch to the VLSM tab to divide a parent network into multiple subnets of different sizes based on host requirements.
Key Features
Real-time calculation means there is no calculate button to press. Every change to the IP address or CIDR prefix immediately recalculates all results. The binary subnet mask uses color coding to visually distinguish network bits (green) from host bits (blue), making it easy to understand exactly where the subnet boundary falls.
The CIDR reference table lists all 33 possible prefix lengths with their subnet masks, total IPs, usable hosts, and typical use cases. Click any row to instantly select that prefix. The current selection is highlighted so you can easily compare neighboring sizes.
The VLSM planner solves a real-world problem: given a parent network and a list of subnets with different host requirements, it calculates the optimal CIDR for each subnet and allocates non-overlapping address ranges. Subnets are sorted by size (largest first) for the most efficient allocation.
IP class detection identifies whether an address falls in Class A, B, C, D, or E, and flags it as private or public. Copy any result value with a single click.
CIDR Notation Explained
CIDR (Classless Inter-Domain Routing) notation appends a slash and a number to an IP address: 192.168.1.0/24. The number after the slash indicates how many of the 32 bits in the address are used for the network portion. The remaining bits identify individual hosts within that network.
A /24 means 24 network bits and 8 host bits, giving 256 total addresses (254 usable). A /16 means 16 network bits and 16 host bits, giving 65,536 total addresses (65,534 usable). The smaller the prefix number, the larger the network.
Before CIDR, the internet used classful addressing where networks could only be /8 (Class A), /16 (Class B), or /24 (Class C). This led to massive waste — a company needing 300 addresses had to take a full Class B (/16 = 65,534 addresses). CIDR, introduced in 1993, solved this by allowing any prefix length, which significantly slowed the exhaustion of IPv4 addresses.