Home › Other Calculators › IP Subnet Calculator

IP Subnet Calculator

Looking for a ip subnet calculator with cidr notation? This free tool gives you network, broadcast, mask and usable host range from IP and CIDR. Just enter your numbers and press Calculate — results are instant.

How to Use This IP Subnet Calculator

An IP subnet is defined by an address and a CIDR prefix like /24. The prefix says how many bits of the address are the network part; the rest are host bits. The network address is the IP with the host bits set to zero, the broadcast address has them all set to one, and the usable hosts are everything in between. A /24 has 256 addresses and 254 usable hosts, because the network and broadcast addresses themselves cannot be assigned to a device.

Formula Used

The network address is the IP bitwise-AND the subnet mask; broadcast is the network OR the inverted mask. Usable hosts = 2^(32−CIDR) − 2.

Worked Example

Example: IP address 192.168.1.10 · CIDR prefix /24

  1. /24 means the first 24 bits are the network part, leaving 8 host bits: 2^8 = 256 total addresses.
  2. Subnet mask = 255.255.255.0; network address = 192.168.1.0; broadcast address = 192.168.1.255.
  3. Usable hosts run from 192.168.1.1 to 192.168.1.254 — 254 addresses, since the network and broadcast addresses are reserved.

Usable Hosts: 254

Frequently Asked Questions

What does /24 mean?

It means the first 24 bits of the 32-bit address are the network part and the remaining 8 bits are for hosts. A /24 has 256 addresses; a /25 has 128, and a /16 has 65,536.

Why are there 254 usable hosts and not 256?

Two addresses are reserved: the network address (all host bits zero) and the broadcast address (all host bits one). Neither can be given to a device.

Is 192.168.1.10 a private address?

Yes. Addresses starting 192.168, 10, or 172.16–172.31 are private — used inside homes and offices, not on the public internet. Your router gives your devices addresses from these ranges.

What about /31 and /32?

They are special cases with no usable hosts in the usual counting: /32 is a single address, and /31 is used for point-to-point links. The calculator shows 0 usable hosts for both.

Related Calculators

Advertisement