Skip to main content
Networking

Subnet Calculator

IPv4 CIDR calculator with usable ranges, wildcard masks, and VLSM split planning.

← All IT tools

IPv4 network
/24
VLSM planner (optional)
Subnet details
Network (CIDR)
Network address
Broadcast
Subnet mask
Wildcard mask
First usable
Last usable
Usable hosts
Total addresses
Classful legacy class
Mask (binary)
Split plan

IPv4 calculator for planning. Point-to-point /31 and host /32 follow modern conventions. Always verify with your network standards.

Deep dive

How this subnet calculator works (and how to use it well)

The calculator above is the interactive model. This guide explains assumptions, formulas, common mistakes, and when to involve an engineer — written to be useful for humans and clear for search engines.

Free IPv4 subnet calculator (CIDR)

Use this subnet calculator to plan IPv4 networks without spreadsheet math. Enter an IP address and CIDR prefix to get the network address, broadcast address, first and last usable hosts, subnet mask, wildcard mask, total addresses, and usable host count. Optional fields help with VLSM-style planning when you know how many hosts or subnets you need.

How CIDR subnet math works

IPv4 addresses are 32-bit numbers. A prefix length of n means the first n bits identify the network and the remaining 32 − n bits identify hosts.

PrefixTypical useUsable hosts (classic)
/30Point-to-point (legacy)2
/29Tiny segment6
/28Small office VLAN14
/27Small department30
/26Medium LAN62
/24Common LAN default254
/16Large private block65,534

Modern point-to-point links often use /31 (RFC 3021) with 2 addresses and no classic broadcast. Host routes use /32.

Formulas this tool uses

  1. Subnet mask from prefix: binary ones for network bits, zeros for host bits
  2. Network address = IP AND mask
  3. Broadcast = network OR wildcard
  4. Usable range = network+1 through broadcast−1 (except /31 and /32 special cases)
  5. Usable hosts = 2^(32−prefix) − 2 when prefix ≤ 30

These are the same fundamentals taught in CCNA-style networking and used by popular free subnet calculators from SolarWinds, MXToolbox, and open-source ipcalc tools.

VLSM and real network design

Variable Length Subnet Masking (VLSM) lets you carve a parent block into unequal children so a 12-host printer VLAN does not waste a full /24. Use the optional “hosts needed” and “subnets needed” fields for a first-pass split, then document the plan in IPAM.

Good production design also includes:

  • Separate user, server, voice, IoT, and guest networks
  • Firewall zones between trust levels
  • DHCP scopes that match usable ranges
  • Documentation for reverse DNS and ACLs

Common mistakes this calculator helps catch

  • Using /24 everywhere and running out of private space later
  • Forgetting network and broadcast reservations when ordering gear
  • Mismatched masks on two ends of a link
  • Overlapping VPN and LAN ranges after an acquisition
  • Planning IoT cameras on the same flat LAN as domain controllers

Networking services from Secure Techies

If you are redesigning VLANs, deploying SD-WAN, or hardening edge firewalls, pair this tool with network security services and managed infrastructure. For camera networks, also size storage with the surveillance storage calculator.

Ready for a network review? Contact Secure Techies for a free assessment.

Frequently asked questions

What is a subnet calculator?

A subnet calculator converts an IP address and CIDR prefix (or mask) into network details: network address, broadcast address, usable host range, subnet mask, wildcard mask, and host counts.

What is CIDR notation?

CIDR writes a network as address/prefix, for example 192.168.10.0/24. The prefix is the number of network bits (0–32 for IPv4). Larger prefixes mean smaller subnets.

How many usable hosts are in a /24?

A /24 has 256 total addresses and typically 254 usable hosts (network and broadcast reserved). /31 and /32 are special cases used for point-to-point links and single hosts.

What is a wildcard mask?

A wildcard mask is the inverse of the subnet mask, commonly used in Cisco ACL and OSPF configurations. For 255.255.255.0 the wildcard is 0.0.0.255.

Can this tool do VLSM planning?

Yes. Enter hosts needed or subnets needed to see a recommended prefix and a sample split table. For complex multi-site designs, validate against your IPAM standards.

Need network design or firewall segmentation help?

Secure Techies can design, implement, and manage the systems behind these numbers — storage, virtualization, cybersecurity, and recovery.

Talk to an engineer