Subnet Calculator

Calculate IPv4 network, broadcast, mask, wildcard and usable host range from a CIDR block or dotted mask, and split a network into smaller subnets.

Developer Tools Runs in your browser · no upload

Reviewed 23 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Enter an IPv4 address with a prefix (192.168.1.10/24) or with a dotted mask (192.168.1.10 255.255.255.0).
  2. Read the network, broadcast, mask, wildcard and the first and last usable host.
  3. Check the usable host count, address class and whether the address is private, public or special-use.
  4. Optionally pick a longer prefix to split the network into equal subnets and copy the list.

Example

Input: 192.168.1.10/24

Output: Network 192.168.1.0 · broadcast 192.168.1.255 · 254 usable hosts (192.168.1.1 – 192.168.1.254)

How it works

The address and prefix are turned into 32-bit integers; the mask is the top prefix bits set to one, and every other value is derived with bitwise AND, OR and NOT.

Mask = top p bits set. Network = address AND mask. Broadcast = network OR (NOT mask). Usable hosts = 2^(32 − p) − 2 for prefixes up to /30; first host = network + 1, last host = broadcast − 1.

Limits and edge cases

  • IPv4 only: IPv6 prefixes are not supported.
  • /31 networks treat both addresses as usable (RFC 3021) and /32 is a single host.
  • Subnet splitting lists at most 256 subnets at a time; the total count is still shown.
  • Address class is the historical classful label and does not affect how CIDR routing works.
  • A non-contiguous dotted mask such as 255.0.255.0 is rejected with an explanation.
  • An octet above 255 or a prefix above /32 is reported rather than wrapped.
  • A bare address with no prefix is treated as a /32 host route.

Privacy

Addresses are calculated locally in your browser. Nothing you enter is sent to a server or stored.

About this page

Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.

Further reading

Guides that use Subnet Calculator

All guides →

Related tools

FAQ

Questions about Subnet Calculator

What is the difference between CIDR and a subnet mask?

They describe the same thing two ways. CIDR gives the number of leading one-bits, such as /24, while the dotted mask spells the same bits out as 255.255.255.0. You can enter either form, and the result shows both. A /24 always has 256 addresses, whichever way you write it.

Why are two addresses missing from the usable host count?

In an ordinary subnet the first address is the network address and the last is the broadcast address, so neither can be given to a device. That is why a /24 has 256 addresses but 254 usable hosts. The exceptions are /31, which has two usable addresses, and /32, which is a single host.

Does the subnet calculator support IPv6?

No. It works on 32-bit IPv4 addresses only. IPv6 subnetting follows different conventions, typically /64 for a single network, and the host-counting rules above do not apply. If you paste an IPv6 address the tool will report that it is not a valid IPv4 address rather than guess.

How does splitting into subnets work?

Pick a longer prefix than your current one and the tool lists equal-sized subnets with their network, host range and broadcast. Splitting a /24 into /26 gives four subnets of 64 addresses. To keep the page responsive, at most 256 subnets are shown, though the total count is always displayed.