IP MANAGE

Free IPv4 and IPv6 subnet calculator and planner · no account needed

Subnet Calculator

Enter a CIDR to get its network and broadcast address, subnet mask, wildcard, usable host range and host count. Then split it into subnets by number of devices, prefix length or an exact range, see what is left free, and share a short link.

1. IP block

IPv4 /8 to /32 or IPv6 /16 to /64. Try one: 10.0.0.0/16192.168.0.0/24172.16.0.0/202001:db8::/48

How it works

  1. Pick a block such as 10.0.0.0/16.
  2. Add subnets by device count (“50 devices”), prefix (/24) or an exact range. Overlaps are impossible.
  3. See what is left as free ranges you can add with one click.
  4. Share or keep it with a short link, an HTML report or CSV.
Read the user guide

Import a saved calculation

Lost the share link? Upload the CSV you downloaded from the planner, or paste your subnets, and the calculation opens again, ready to change or share with a new link. Nothing you import is stored.

Example: the subnet calculator result for 192.168.1.0/24

Network address
192.168.1.0
Broadcast address
192.168.1.255
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Usable host range
192.168.1.1 – 192.168.1.254
Usable hosts
254
Total addresses
256

A /24 keeps the first 24 of 32 bits for the network and leaves 8 for hosts: 28 = 256 addresses, minus the network and broadcast address, leaves 254 usable hosts. Open this block in the planner to split it into subnets, or see it in binary.

IPv4 subnet cheat sheet

Prefix length, subnet mask, wildcard mask and host counts for common IPv4 subnet sizes.

CIDRSubnet maskWildcardAddressesUsable hosts
/16255.255.0.00.0.255.2556553665534
/17255.255.128.00.0.127.2553276832766
/18255.255.192.00.0.63.2551638416382
/19255.255.224.00.0.31.25581928190
/20255.255.240.00.0.15.25540964094
/21255.255.248.00.0.7.25520482046
/22255.255.252.00.0.3.25510241022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122
/32255.255.255.2550.0.0.011

Subnetting questions

What does a subnet calculator do?
It turns a CIDR such as 192.168.1.0/24 into its network address, broadcast address, subnet mask, wildcard mask, first and last usable host and the number of usable hosts. This one also splits a block into subnets for you and lists the free ranges that are left. CIDR calculator with the binary view
How many usable hosts are in a /24?
A /24 has 256 addresses and 254 usable hosts: the first (network) and last (broadcast) addresses are reserved. A /26 has 62 usable hosts, a /28 has 14 and a /30 has 2. A /31 point-to-point link has 2 and a /32 is a single host. Subnetting terms explained
How do I choose a subnet size for a number of devices?
Enter the number of devices: the calculator picks the smallest subnet that fits them plus the network and broadcast addresses. For 50 devices it picks a /26 (62 usable hosts). Subnet planner
How do I split a network into subnets of different sizes?
Use VLSM: sort the subnets from largest to smallest and give each the first free, correctly aligned block that fits. Starting with the largest keeps the space tidy and leaves the free ranges at the end. VLSM calculator
What is the difference between a subnet mask and a wildcard mask?
The subnet mask marks the network bits (255.255.255.0 for a /24). The wildcard mask is its inverse (0.0.0.255) and is used in router access lists and OSPF configuration. Convert a mask, wildcard or prefix
Does it work for IPv6?
Yes. Enter an IPv6 block such as 2001:db8::/48 and add subnets by prefix length, for example /64 for a LAN. IPv6 has no broadcast address, so every address in a subnet is usable. IPv6 subnet calculator
How do I turn an IP range into CIDR blocks?
Cover the range with the biggest aligned blocks that fit, starting at the first address. 10.0.0.5 to 10.0.0.20 needs five blocks, for example. The range converter does it for you. IP range to CIDR

How the calculator counts

  • IPv4 subnets give up their first address (the network) and last address (the broadcast), so a /24 has 254 usable hosts.
  • A /31 has two addresses and both are usable, for point-to-point links (RFC 3021). A /32 is one host.
  • IPv6 has no broadcast address, so every address in a prefix is usable. A /64 is the normal size of one network.
  • Subnets are placed at the first free address that fits and are always aligned to their own size, so they can never overlap.

Built and maintained by Bhavesh Vala. Last reviewed . About this calculator

Do more with a free account

  • Keep your plansSave a plan as real IP blocks and subnets, kept for good.
  • Excel reportsUtilization reports with used, reserved and free ranges.
  • Teams and approvalsInvite people with roles; requests can need approval.
  • Never double-bookOverlapping subnets are refused, even when two people ask at once.
  • Audit log and alertsWho changed what, and an email when a block fills up.
  • Import, search and APICSV/Excel import, “who owns 10.4.2.17?”, REST API.