Live Gold PriceGold CalculatorSilver PriceSilver CalculatorliveExchange Rate
Home › Calculators › Subnet Calculator
NETWORKING

Subnet Calculator

Network address, broadcast, subnet mask and usable hosts from IP + CIDR.

Subnet mask—
Network address—
Broadcast address—
Usable hosts—

Bitwise AND/OR on the 32-bit address with the CIDR mask.

What Is a Subnet Calculator?

A subnet calculator divides an IP network into smaller subnetworks (subnets) and shows the key facts about each one: the network address, broadcast address, subnet mask, and the range of usable host addresses. Network engineers use it when designing office networks, VLANs, and cloud VPCs, and students use it to check their networking homework. It works for IPv4, the 32-bit address system still dominant in most LANs.

How Subnet Math Works

An IPv4 address is 32 bits. CIDR notation like /24 says how many of those bits identify the network; the rest identify hosts:

How to Use This Calculator

  1. Enter an IP address and a subnet mask — either as dotted decimal (255.255.255.0) or CIDR (/24).
  2. The calculator returns the network address, broadcast address, usable host range, total and usable host counts, and the wildcard mask.
  3. To split a network, choose the new prefix length; it lists every resulting subnet with its ranges.

Worked Example

Take the network 192.168.1.0/24:

Now split it into /26 subnets (borrowing 2 bits → 4 subnets), each with 26 − 2 = 62 usable hosts:

SubnetNetworkUsable rangeBroadcast
1192.168.1.0192.168.1.1 – 62192.168.1.63
2192.168.1.64192.168.1.65 – 126192.168.1.127
3192.168.1.128192.168.1.129 – 190192.168.1.191
4192.168.1.192192.168.1.193 – 254192.168.1.255

Tips

Frequently asked questions

What is CIDR notation?

/24 means the first 24 bits are the network part — shorthand for writing the subnet mask.

Why subtract 2 from hosts?

The network address and broadcast address cannot be assigned to devices.