IPNixa / ADDRESS TOOLS

Subnet Calculator: IPv4 & IPv6 CIDR, Mask & Hosts

Type an IPv4 or IPv6 CIDR and see the range, mask and usable hosts as you type. Drag the prefix, size a subnet for AWS, Azure or Google Cloud and split large blocks without sending your plan to a server.

  • Live results with a draggable prefix bar
  • Usable hosts for AWS, Azure and Google Cloud
  • Exact IPv6, subnet splitting and a cheat sheet
Try an example

Calculation happens in this browser. No address lookup or server request is made.

Ready. Inputs are not added to the URL or analytics.

How to use this tool

  1. Type an address with a prefix, such as 192.168.1.10/24 or 2001:db8::/48. Results update as you type.
  2. Drag the prefix bar, or enter the hosts you need and your platform to get the right size.
  3. Split the range into smaller subnets, copy a link to the calculation or export a report.

Read the result

CIDR separates the network bits from the host bits. The calculator clears the host bits to find the network and sets them to find the last address. IPv4 broadcast and traditional host ranges are separate from the full address range. IPv6 has no broadcast address. Exact integer arithmetic keeps large IPv6 counts precise. These are mathematical results, not allocation records, routing evidence or a scan of your network.

Subnet cheat sheet: masks and host counts

PrefixSubnet maskAddressesUsable hosts
/8255.0.0.016,777,21616,777,214
/12255.240.0.01,048,5761,048,574
/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
/32255.255.255.25511

Common IPv6 prefixes

Prefix/64 subnets inside
/324,294,967,296
/4016,777,216
/4865,536
/56256
/6016
/641

Questions and answers

How many usable hosts are in a /24, /26 or /28?

On a standard network a /24 has 256 addresses and 254 usable hosts, a /26 has 62 and a /28 has 14. Cloud platforms keep more: an AWS or Azure /28 leaves 11 and a Google Cloud /28 leaves 12. The cheat sheet lists every common prefix.

Can I enter a subnet mask instead of /24?

Yes. Enter an IPv4 address followed by a space or slash and a contiguous dotted mask, such as 192.168.1.10 255.255.255.0. Masks with gaps are rejected.

Why are /31 and /32 different?

A /31 can use both endpoints on a point-to-point IPv4 link under RFC 3021. A /32 names one address. The traditional subtract-two host rule does not apply to these cases.

Will splitting a large IPv6 block freeze my browser?

The tool shows at most 32 child subnets per page and reports the exact total. It never expands every host or silently truncates the total to the displayed rows.

Other address tools