network subnet calculator

IPv4 Subnet Calculator

Enter an IPv4 address and CIDR prefix to calculate subnet mask, network range, usable hosts, and more.

Input Address -
Address Class / Type -
Subnet Mask -
Wildcard Mask -
Network Address -
Broadcast Address -
First Usable Host -
Last Usable Host -
Total IP Addresses -
Usable Host Addresses -
Binary Subnet Mask -

Why a network subnet calculator is useful

Subnetting is one of the most practical networking skills you can learn. Whether you are configuring a home lab, segmenting office departments, or preparing for certifications like Network+ and CCNA, you need to know where a subnet begins, where it ends, and how many hosts it can support. A network subnet calculator saves time and eliminates manual math errors.

With just two inputs (IPv4 address + CIDR prefix), you can instantly get the network address, broadcast address, usable range, subnet mask, and host capacity. That means faster setup, cleaner documentation, and fewer outages caused by bad IP plans.

Subnetting terms you should know

IPv4 address

A 32-bit number shown as four octets (for example, 192.168.1.130). Each octet ranges from 0 to 255.

CIDR prefix

CIDR notation (like /24 or /27) tells you how many bits are allocated to the network portion. The remaining bits are available for host addresses.

Subnet mask

The subnet mask is the dotted-decimal version of the CIDR prefix. For example:

  • /24 = 255.255.255.0
  • /26 = 255.255.255.192
  • /30 = 255.255.255.252

Network and broadcast

  • Network address: First address in the subnet; identifies the subnet itself.
  • Broadcast address: Last address in the subnet; sends traffic to all devices in that subnet.

How to use this calculator

  1. Enter a valid IPv4 address, such as 10.0.14.55.
  2. Enter a CIDR prefix from 0 to 32.
  3. Click Calculate Subnet.
  4. Read the computed subnet details in the result box.

Tip: Press Enter while focused on an input field to run the calculation quickly.

Common subnet sizes at a glance

CIDR Subnet Mask Total IPs Usable Hosts*
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422 (point-to-point)
/32255.255.255.25511 (single host)

*Traditional host counts subtract network + broadcast. /31 and /32 have special modern uses.

Real-world examples

Example 1: Office VLAN

Suppose your office VLAN is 192.168.50.0/24. You have 254 usable host addresses, enough for desktops, printers, phones, and wireless clients in a medium environment.

Example 2: Point-to-point WAN link

A router-to-router link often uses /30 or /31. With /30, you get 2 usable addresses. With /31, both addresses can be used on point-to-point interfaces (supported on modern devices).

Example 3: Small segmented networks

If one team needs only 20 IPs, /27 gives 30 usable addresses and keeps IP space efficient. Over-allocating /24 blocks everywhere leads to wasted address space and messy growth later.

Manual subnet math (quick method)

You can estimate ranges quickly by finding the “block size” in the interesting octet. For /26, mask is 255.255.255.192, so block size is 256 - 192 = 64. Subnets begin at:

  • 0, 64, 128, 192

If the IP is 192.168.1.130/26, it falls in the 128-191 range:

  • Network: 192.168.1.128
  • Broadcast: 192.168.1.191
  • Usable: 192.168.1.129 - 192.168.1.190

Common subnetting mistakes to avoid

  • Using overlapping subnets on routed networks.
  • Forgetting that network and broadcast are reserved in traditional subnets.
  • Mixing CIDR and dotted masks incorrectly during ACL or firewall work.
  • Ignoring growth and assigning subnets that are too small.
  • Not documenting gateway, DHCP scope, and static ranges for each subnet.

Final thoughts

Subnet calculators are not just exam tools—they are everyday operations tools. Good subnet design improves security, performance, and troubleshooting speed. Use this calculator as a quick planning companion, then document your design in your IP address management sheet or network diagram.

🔗 Related Calculators

🔗 Related Calculators