Subnet Calculator

Split, join, and plan IPv4 and IPv6 subnets with cloud mode support for AWS, Azure, GCP, and OCI.

Protocol:
/
Quick:
Subnets
1
Usable Hosts
65,534
Reserved
2
Smallest
/16
Largest
/16
Address Space
/16
Address Space
SubnetMask / WildcardAddress RangeUsable RangeHostsReverse DNSNoteActions
10.0.0.0/16
Private
255.255.0.0
0.0.255.255
10.0.0.0 - 10.0.255.25510.0.0.1 - 10.0.255.25465,5340.10.in-addr.arpa+ note
Navigate: Up/Down rows, S split, Shift+J join

Free Online Subnet Calculator

Popular references: /24, /26, /30 subnet masks, 192.168.1.0/24, 10.0.0.0/8, the full CIDR table, and a practice quiz.

IPv4 & IPv6

Full calculation for 32-bit and 128-bit networks: subnet mask, wildcard, address type, and reverse DNS. Switch protocols with one click.

Split & Join

Interactively divide and merge subnets. Build complex designs with full undo/redo history.

Cloud Modes

Accurate host counts for AWS, Azure, GCP, and OCI with side-by-side comparison.

Specify host requirements, get optimally-sized subnets. See utilization, waste, and free space.

Export & Share

CSV, Excel, JSON, clipboard copy, and shareable URLs. Import previous designs from JSON.

Learn

Guides on subnetting, CIDR notation, VLSM, IPv6, the cheat sheet, and a practice quiz.

Frequently Asked Questions

What is a subnet calculator?

A subnet calculator divides IP networks into smaller subnetworks. Enter a network address and prefix length (like 192.168.1.0/24) to see the address range, usable hosts, subnet mask, and broadcast address. PrefixBench supports IPv4, IPv6, VLSM planning, and cloud provider modes.

How many usable hosts are in a /24 subnet?

A /24 has 256 total addresses and 254 usable hosts (network and broadcast are reserved). Cloud providers reserve more: AWS 5 (251 usable), Azure 5 (251 usable), GCP 4 (252 usable), OCI 3 (253 usable).

What is VLSM and why is it useful?

VLSM (Variable Length Subnet Masking) creates subnets of different sizes from one network. Specify how many hosts each subnet needs, and VLSM assigns the smallest matching prefix to minimize waste.

How does IPv6 subnetting differ from IPv4?

IPv6 uses 128-bit addresses with a much larger address space. Every subnet is conventionally /64 (2^64 addresses). There are no reserved network or broadcast addresses, so all addresses are usable.

How many IPs does AWS reserve in a VPC subnet?

AWS reserves 5 IPs: network address (.0), VPC router (.1), DNS server (.2), reserved for future use (.3), and broadcast (.255 in a /24). A /24 in AWS has 251 usable IPs.