Subnet Calculator screenshot

Subnet Calculator

Work out the network, broadcast, usable range and host count for an IPv4 address and mask, with a split table.

Privacy First
0 Runs
Updated 2026-11-17
Runs in your browser
No sign-up, no upload

What the Subnet Calculator does

The mask selects the network bits, so the network is the address AND the mask and the broadcast is the network OR the inverted mask. The usable range is the two ends of that block, one in from each side, except where the prefix leaves no room for two reserved addresses.

The Split into extra bits control adds that many bits to the prefix and prints every resulting subnet with its own range and usable host count, which is the table you need when carving one allocation into per-rack blocks.

IPv4 only: a colon in the address is refused by name rather than half-parsed. A mask whose bits are not contiguous is refused with the mask named, because such a mask has no prefix and no honest split table.

How to use it

Paste the Address and prefix — 192.168.1.10/24, or a dotted mask like 10.0.0.5/255.255.255.0.

Leave Split into extra bits at 0 for the block itself, or set it to 1 to 8 to see the block carved into that many extra prefix bits.

Press Run and read the Subnet report: address, mask, network, broadcast, usable range and host count, then the split table when you asked for one.

Worked example

Input:

192.168.1.10/24

Output:

Address:        192.168.1.10
Mask:           255.255.255.0 (/24)
Network:        192.168.1.0/24
Broadcast:      192.168.1.255
Usable range:   192.168.1.1 - 192.168.1.254
Usable hosts:   254
Total addresses:256

Why it runs in your browser

The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.

One address and mask in, the whole subnet out: network, broadcast, the usable range, how many hosts fit, and how the block splits into smaller ones.

Written as digits you can check: the arithmetic is the mask applied to the address, with the two special cases — a /31 point-to-point link and a /32 host route — stated rather than quietly special-cased.

What it does, and what it does not

The mask selects the network bits, so the network is the address AND the mask and the broadcast is the network OR the inverted mask. The usable range is the two ends of that block, one in from each side, except where the prefix leaves no room for two reserved addresses.

The Split into extra bits control adds that many bits to the prefix and prints every resulting subnet with its own range and usable host count, which is the table you need when carving one allocation into per-rack blocks.

IPv4 only: a colon in the address is refused by name rather than half-parsed. A mask whose bits are not contiguous is refused with the mask named, because such a mask has no prefix and no honest split table.

How to use Subnet Calculator

Paste the Address and prefix — `192.168.1.10/24`, or a dotted mask like `10.0.0.5/255.255.255.0`.

Leave Split into extra bits at 0 for the block itself, or set it to 1 to 8 to see the block carved into that many extra prefix bits.

Press Run and read the Subnet report: address, mask, network, broadcast, usable range and host count, then the split table when you asked for one.

What to Expect

Best for

  • Checking a VLAN's usable range
  • Splitting a /24 into four /26s
  • Confirming why a /31 has two addresses and no broadcast

Not ideal for

  • IPv6, which is refused
  • Allocating addresses across a whole network plan
  • Reverse DNS zones, which need the zone names

What this tool keeps

  • The mask as written, dotted or prefix length
  • The RFC 3021 rule for /31 and /32
  • Split rows in ascending network order

What may need cleanup

  • Work out the gateway address, which is a policy choice
  • Plan a VLSM layout by hand

Common errors

  • The page refuses it: is not contiguous

Example use cases

  • Checking a subnet before configuring a router
  • Splitting a block for four VLANs
  • Teaching why the network address is reserved

Sample input

Address and prefix: 192.168.1.10/24

Sample output

Subnet report: Address: 192.168.1.10 …

Who this is for

  • Network engineers and students
  • Anyone configuring an interface by hand

Frequently asked questions

Why does a /31 have two usable hosts?

RFC 3021 defines a /31 as a point-to-point link: both addresses are usable and there is no broadcast. The report says so rather than printing a broadcast address that does not exist.

What does the split table show?

One row per subnet after adding the extra bits: its network with prefix, its address range, and how many hosts are usable in it. Two extra bits on a /24 give four /26 blocks.

Why is my mask refused as not contiguous?

A subnet mask must be a run of ones followed by a run of zeros. 255.0.255.0 is neither a prefix length nor a mask, so it has no network to compute — the refusal prints the bit pattern it found.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.