Subnet Calculator
Calculate the network address, broadcast address, subnet mask, wildcard mask, usable host range and more from any IP and CIDR prefix — instantly, in your browser.
Binary representation
Split this network into subnets
4 subnets of /26 (62 usable hosts each)
| # | Subnet | Usable Range | Broadcast | Hosts |
|---|---|---|---|---|
| 1 | 192.168.1.0/26 | 192.168.1.1 – 192.168.1.62 | 192.168.1.63 | 62 |
| 2 | 192.168.1.64/26 | 192.168.1.65 – 192.168.1.126 | 192.168.1.127 | 62 |
| 3 | 192.168.1.128/26 | 192.168.1.129 – 192.168.1.190 | 192.168.1.191 | 62 |
| 4 | 192.168.1.192/26 | 192.168.1.193 – 192.168.1.254 | 192.168.1.255 | 62 |
Advertisement
A subnet calculator takes an IP address and a CIDR prefix (or subnet mask) and instantly works out every value you need to plan or troubleshoot a network — the network address, broadcast address, subnet mask, wildcard mask, usable host range, and total host count. Instead of doing binary maths by hand, you get the full breakdown the moment you type an address.
This CIDR calculator runs entirely in your browser. Nothing is sent to a server, so it works offline and there is no rate limiting — ideal for firewall rule planning, ACL design, DHCP scope sizing, or studying for a networking certification. Enter an address like 192.168.1.0, choose a prefix such as /24, and the tool derives the network and broadcast address, both mask forms, and the exact list of assignable hosts.
CIDR notation and subnet masks are two ways of expressing the same thing: how many bits identify the network versus the host. This IP subnet calculator lets you switch between them — type /26 or 255.255.255.192 and see the results update either way. A colour-coded binary view shows exactly where the network boundary falls, which makes the relationship between the prefix length and the address space obvious at a glance.
The built-in network calculator also splits a block into equal subnets. Tell it how many subnets you need and it borrows the right number of host bits, then lists every resulting subnet with its own range and usable host count — the fastest way to carve a supernet into VLANs or departmental segments.
How to Use the Subnet Calculator
- 1
Enter an IP address
Type any IPv4 address in dotted-decimal form, for example 192.168.1.0 or 10.0.0.0. The tool validates each octet as you go and flags anything outside the 0–255 range.
- 2
Choose a prefix or subnet mask
Switch between CIDR mode and subnet-mask mode with the toggle. Enter a prefix such as /24, or a dotted mask such as 255.255.255.0 — both describe the same network boundary and produce identical results.
- 3
Use a quick preset (optional)
Click a preset pill — /8, /16, /24, /25, /26, /27, /28, /30 or /32 — to jump straight to a common prefix without typing. The results recalculate instantly.
- 4
Read the full breakdown
The results card shows the network and broadcast addresses, subnet and wildcard masks, total and usable hosts, the usable IP range, the IP class, and a colour-coded binary view marking the network/host boundary.
- 5
Split the network into subnets
In the subnet divider below the results, enter how many subnets you need. The tool borrows the fewest host bits required and lists every resulting subnet with its own range and usable host count.
Understanding Subnet Calculator Results
/24 reserves 24 bits for the network and 8 for hosts, which is why it holds 256 addresses (28) with 254 usable.
The network address is the first address in the block — every host bit set to 0 — and identifies the subnet itself. The broadcast address is the last address — every host bit set to 1 — and reaches every host on the segment. Because these two are reserved, the usable hosts count is normally the total minus 2. The /31 and /32 prefixes are special cases: a /31 is a two-host point-to-point link (RFC 3021) and a /32 identifies a single host.
The subnet mask and wildcard mask are inverses of each other. The subnet mask (for example 255.255.255.0) has 1-bits for the network portion; the wildcard mask (0.0.0.255) has 1-bits for the host portion and is the form used in Cisco ACLs and OSPF configuration. The binary view colours the network bits and host bits differently so you can see the split directly.| Field | Description |
|---|---|
| Network Address | The first address in the block, with all host bits set to 0. Identifies the subnet and cannot be assigned to a host. |
| Broadcast Address | The last address in the block, with all host bits set to 1. Traffic sent here reaches every host on the subnet. |
| Subnet Mask | Dotted-decimal mask (e.g. 255.255.255.0) whose 1-bits mark the network portion of the address. |
| Wildcard Mask | The bitwise inverse of the subnet mask (e.g. 0.0.0.255). Used in Cisco ACLs and OSPF area statements. |
| Total Hosts | The full size of the block, 2 raised to the number of host bits. Includes the network and broadcast addresses. |
| Usable Hosts | Addresses assignable to devices — total minus 2 for most prefixes (with /31 and /32 as special cases). |
| IP Range | The first and last usable addresses, i.e. the pool available for hosts, DHCP scopes, or static assignment. |
| IP Class | The classful category (A–E) of the address based on its leading bits, retained for reference alongside CIDR. |
Advertisement
Common Subnet Calculator Use Cases
Plan VLANs and network segments
Divide an office or data-centre block into equal subnets sized to each department or VLAN. The subnet divider shows exactly how many hosts each segment gains so you can avoid over- or under-provisioning address space.
Write firewall and ACL rules
Confirm the exact network and broadcast addresses before writing allow/deny rules. The wildcard mask output drops straight into Cisco access lists and OSPF configuration without manual conversion.
Size DHCP scopes correctly
Read off the first and last usable addresses to define a DHCP pool that fits the subnet precisely, leaving room for gateways, printers, and other static assignments outside the dynamic range.
Study for networking certifications
CCNA, Network+, and similar exams test subnetting under time pressure. The colour-coded binary view and instant results make it easy to check your manual calculations and build an intuition for prefix lengths.