Skip to content
appsriha apps

IP Subnet Calculator

CIDR → network, broadcast & host range

Leave empty if the address already has a /24 suffix.

How to use IP Subnet Calculator

  • Enter an address with a prefix like 192.168.1.10/24, or an address and a subnet mask separately.
  • Shows the network and broadcast addresses, first and last host, usable host count, and masks alongside their binary form.
  • Pick a smaller size such as /26 below to split the range into equal subnets.

CIDR notation, how subnet maths works, and what to check when you split a network

In 192.168.1.10/24, the /24 says that the first 24 of the address's 32 bits identify the network and the remaining 8 identify a host inside it. Writing an address with its prefix length like this is CIDR notation, defined in RFC 4632. This guide walks through how the network and broadcast addresses fall out of simple bit operations, gives a size table for common prefixes, splits a /24 into smaller subnets and covers the planning mistakes that come up again and again.

Network address is AND, broadcast is OR

All of the calculation is bitwise arithmetic on the address and the mask. Taking 192.168.1.100/26 as the example, with every value computed by this tool's own functions:

  1. A /26 prefix is a mask of 26 ones followed by zeros: 11111111.11111111.11111111.11000000, which is 255.255.255.192.
  2. Write the address in binary: 192.168.1.100 is 11000000.10101000.00000001.01100100.
  3. Address AND mask gives the network address. In the last octet, 01100100 AND 11000000 = 01000000, so the network is 192.168.1.64.
  4. Invert the mask to get the wildcard (0.0.0.63) and OR it with the network address to get the broadcast address: 192.168.1.127.
  5. Everything in between is the host range: 192.168.1.65 to 192.168.1.126. That's 2^(32−26) = 64 addresses, minus two, leaving 62 usable hosts.

Prefix sizes at a glance

Each step up in prefix length halves the block. Usable hosts exclude the network and broadcast addresses, except for /31 and /32, which RFC 3021 and common practice treat differently.

PrefixSubnet maskTotal addressesUsable hosts
/16255.255.0.065,53665,534
/20255.255.240.04,0964,094
/22255.255.252.01,0241,022
/23255.255.254.0512510
/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 link)
/32255.255.255.25511 (single host)

Splitting a /24 into /27s

Dividing 192.168.1.0/24 into /27 blocks gives 2^(27−24) = 8 subnets of 32 addresses each, 30 of them usable. This is what the tool's split feature returns:

#NetworkHost rangeBroadcast
1192.168.1.0/27192.168.1.1 – .30192.168.1.31
2192.168.1.32/27192.168.1.33 – .62192.168.1.63
3192.168.1.64/27192.168.1.65 – .94192.168.1.95
4192.168.1.96/27192.168.1.97 – .126192.168.1.127
5192.168.1.128/27192.168.1.129 – .158192.168.1.159
6192.168.1.160/27192.168.1.161 – .190192.168.1.191
7192.168.1.192/27192.168.1.193 – .222192.168.1.223
8192.168.1.224/27192.168.1.225 – .254192.168.1.255

Planning mistakes to avoid

  • Assuming the network address ends in .0. As shown above, the network for 192.168.1.100/26 is .64. Below /24, block boundaries fall on multiples of 128, 64, 32 and so on.
  • Sizing for exactly today's hosts. Fifty devices fit in a /26 (62 usable), but once you allow for the gateway, DHCP headroom and growth, the next size up, a /25, is often the better choice. Some clouds reserve addresses in every subnet, AWS VPC reserves five, so the usable count is lower still.
  • A start address that isn't on a boundary. Enter 192.168.1.32/26 and the tool reports the network as 192.168.1.0, because a /26 has to start on a multiple of 64. If you really meant a block starting at .32, you wanted a /27.
  • Overlapping ranges. If your office uses 192.168.0.0/16 and a partner's VPN uses 192.168.1.0/24, one contains the other and routing breaks. Check every network you'll connect to before you pick a private range.
  • Non-contiguous masks. Something like 255.0.255.0 can't be written as a CIDR prefix and isn't a valid subnet mask, so the tool rejects it.

Check the address type too

The address type shown with each result is based on the special-purpose ranges listed in RFC 6890 and related RFCs. Internal networks should use the RFC 1918 private ranges: 10.0.0.0/8 (about 16.7 million addresses), 172.16.0.0/12 (about 1 million) and 192.168.0.0/16 (65,536). The middle one runs from 172.16 to 172.31, so 172.32.x.x is public address space, a detail that catches people out.

100.64.0.0/10 is shared address space for carrier-grade NAT (RFC 6598); if your router's outside address falls in it, your ISP hasn't given you a public IP. 169.254.x.x is a link-local address that a device assigns itself when DHCP fails. And for documentation and examples, use the reserved ranges in RFC 5737, such as 203.0.113.0/24, so you never collide with a real network.

Sources: RFC 4632 — Classless Inter-domain Routing (CIDR) · RFC 1918 — Address Allocation for Private Internets · RFC 3021 — Using 31-Bit Prefixes on IPv4 Point-to-Point Links · RFC 6890 — Special-Purpose IP Address Registries · AWS — Subnet CIDR blocks (reserved addresses)

Last reviewed: 2026-11-22

Frequently asked questions

What do I get for 192.168.1.10/24?

Network address 192.168.1.0, broadcast address 192.168.1.255, 254 usable hosts from 192.168.1.1 to 192.168.1.254, subnet mask 255.255.255.0 and wildcard mask 0.0.0.255. Because it starts with 192.168, the address type is private.

Why are the usable host counts for /31 and /32 different?

Normally the network and broadcast addresses are excluded, so usable hosts are total addresses minus 2. A /31, however, uses both addresses as hosts on point-to-point links (RFC 3021). So 10.0.0.0/31 shows 2 hosts (10.0.0.0 to 10.0.0.1), 10.0.0.5/32 shows the single host 10.0.0.5, and the broadcast address is shown as None.

Can I enter a subnet mask instead of a prefix?

Yes. Append it like /255.255.255.192 or type it into the mask field, and it is converted to the /26 prefix. Masks whose 1 bits are not contiguous from the left, such as 255.0.255.0, are invalid and reported as an error.

How do I split a subnet?

Choose a smaller prefix under Split into equal subnets. Splitting 192.168.1.0/24 into /26 gives four subnets starting at 192.168.1.0, .64, .128 and .192 with their host ranges. Splitting 10.0.0.0/16 into /24 gives 256 subnets; the list shows at most 256. IPv6 is not supported yet.