GtuesSubnet Calculator

Subnet Calculator

Type an IP address and prefix such as 192.168.10.77/26, or an address and a dotted subnet mask, and the calculator shows the network and broadcast addresses, first and last usable hosts, number of hosts, wildcard mask, address type and a binary breakdown. It also converts between CIDR and dotted masks and splits any network into equal smaller subnets.

IPv4 subnet calculator

Subnetting Reference Pack

Printable subnetting cheat sheet (CIDR, masks, wildcards, hosts), a binary and powers-of-two table, subnetting practice worksheets with answers and an IP address plan workbook.

Formats: PDF, XLSX, DOCX. Instant download after payment (link valid 72 hours, up to 5 downloads). AI-assisted: the templates were drafted with AI help and reviewed and laid out before publishing.

$3.00 USD, one-time 5 files · about $0.60 each

7-day money-back guarantee. Full refund within 7 days of purchase, even after you download.

Free sample: Binary Octet Table (PDF, 53 KB)

Full refund within 7 days — see the refund policy and license.

Free printables

Single sheets you can print right now, no sign-up. The full pack adds every sheet in one download plus the editable files.

Browse the free printables →

How subnetting works

An IPv4 address is 32 bits, usually written as four numbers from 0 to 255. The prefix length (the number after the slash) says how many of those bits identify the network; the rest identify hosts within it. A /24 network keeps 24 network bits and leaves 8 host bits, giving 256 addresses. The first address is the network address and the last is the broadcast address, so 254 are usable for devices. Every extra prefix bit halves the size of the network.

CIDR to subnet mask chart

CIDRSubnet maskWildcardAddressesUsable hosts
/16255.255.0.00.0.255.25565,53665,534
/20255.255.240.00.0.15.2554,0964,094
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122*
/32255.255.255.2550.0.0.011

*A /31 has no network or broadcast address when used on point-to-point links (RFC 3021), so both addresses are usable.

How to use the calculator

  1. Enter an address with a prefix, such as 10.20.30.40/22, or an address in the first box and a dotted mask such as 255.255.252.0 in the second.
  2. Read the network, broadcast and usable host range.
  3. Check the binary view to see exactly where the network bits end.
  4. To plan smaller networks, choose a longer prefix in “Split into subnets” — for example split a /24 into four /26 subnets.
  5. Download the subnet list as a CSV for your documentation.

Worked example

For 192.168.10.77/26 the mask is 255.255.255.192, so the last octet is split into blocks of 64. 77 falls in the block starting at 64, giving network 192.168.10.64 and broadcast 192.168.10.127. Usable hosts run from .65 to .126 — 62 addresses. The wildcard mask, used in access control lists and some routing configurations, is 0.0.0.63. Splitting the /26 into /28s gives four subnets of 14 hosts each: .64, .80, .96 and .112.

The block-size shortcut

To subnet in your head, find the “interesting” octet (the one where the mask is not 255 or 0) and subtract its mask value from 256. That is the block size. Networks start at multiples of the block size; the broadcast is one less than the next network. For a mask of 255.255.255.224 the block is 32, so networks begin at .0, .32, .64, .96 and so on.

Private and special address ranges

RangeUse
10.0.0.0/8Private networks
172.16.0.0/12Private networks
192.168.0.0/16Private networks (most home routers)
100.64.0.0/10Carrier-grade NAT
127.0.0.0/8Loopback (localhost)
169.254.0.0/16Link-local (no DHCP address received)
224.0.0.0/4Multicast

Planning subnets

Troubleshooting with subnets

Many network problems come down to subnetting mistakes: two devices that should talk can’t because one has the wrong mask, a gateway outside the host range, or an address that is actually the network or broadcast address. Enter each device’s address and mask here and check that they share the same network address and that the gateway falls inside the usable range.

What about IPv6?

IPv6 uses 128-bit addresses, and a standard LAN subnet is a /64 — far larger than any IPv4 network — so host counting is rarely a concern. This calculator focuses on IPv4, where careful subnetting still matters because addresses are scarce.

Privacy

All calculations run in your browser. Addresses you enter are not sent anywhere.

Frequently asked questions

How many hosts are in a /24?

254 usable hosts out of 256 addresses.

What is the subnet mask for /26?

255.255.255.192, with 62 usable hosts.

What is a wildcard mask?

The inverse of the subnet mask, used in ACLs and some routing configurations; for /24 it is 0.0.0.255.

How do I convert a subnet mask to CIDR?

Count the one bits in the mask: 255.255.255.0 has 24, so it is /24.

Why are two addresses not usable?

The first is the network address and the last is the broadcast address (except in /31 and /32).

Can I split a network into smaller subnets?

Yes, choose a longer prefix in the split option.

What is the difference between /24 and 255.255.255.0?

Nothing — they are two ways of writing the same mask.

Is my data sent anywhere?

No, everything runs locally.