Subnet Calculator

Network, broadcast, host range and mask from any CIDR.

Tech Calculators Free, no sign-up Runs in your browser

Subnet Calculator tool

The /24 or /26 part. 0 to 32.

—
Network address
—
Usable host range
—
Usable hosts
—
Subnet mask
—
Broadcast address
MeasureValue
A /31 has no broadcast address and two usable addresses by convention (RFC 3021), and a /32 is a single host. Both are shown correctly rather than reported as having negative hosts, which is what a naive formula gives.

About the Subnet Calculator

Subnet Calculator takes an IPv4 address and a CIDR prefix and works out everything that follows from them: the network address, the broadcast address, the usable host range, the subnet mask and its wildcard. You can type the prefix in its own box or append it to the address as 192.168.1.130/26, which is how it usually appears in configuration.

The prefix is the number of leading bits that identify the network, so a /26 fixes 26 bits and leaves 6 for hosts. That gives 64 addresses, of which 62 are usable: the first is the network address and the last is the broadcast, and neither can be assigned to a machine. Every figure here comes from that single piece of arithmetic, which is why getting the prefix right matters more than anything else in a subnet plan.

Two prefixes break the usual rule and are handled specially. A /31 has no room for a network and broadcast pair, so RFC 3021 defines both of its addresses as usable for point-to-point links. A /32 is one address, a single host route. A formula that simply subtracts two reports zero and minus one for these, which is wrong and causes real confusion when reading a routing table.

The page shows its working, not just its answer. Where there is a formula it is printed with your own numbers substituted in, so you can check the result rather than take it on trust -- which is the difference between a calculator you can use for something that matters and one you cannot.

Everything runs inside your browser. What you type is never uploaded, never logged and never stored, and the calculator keeps working if your connection drops after the page has loaded.

Looking for something this does not cover? FreeToolsZone.org is more free browser-based tools, organised by job, and it is worth a look if subnet calculator is only part of what you are working on.

How to use the Subnet Calculator

  1. Enter ipv4 address and cidr prefix lengthDecimals are fine, and thousands separators are accepted and ignored.
  2. Read the network address, usable host range and usable hostsThe figures update as you type. The Calculate button is there if you would rather press something, but nothing waits for it.
  3. Copy or check the resultCopy the summary with the copy button, or open the table to check it row by row.

Features

  • Shows network address, usable host range, usable hosts, subnet mask and broadcast address together, so you are not running it twice
  • A results table you can read across
  • Updates as you type, with no button to press and no page reload
  • Copy the result in one click
  • Free, no sign-up, and it runs entirely in your browser

Who uses this tool

The subnet calculator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:

  • Splitting an office network into subnets of the right size
  • Checking which network an address belongs to
  • Finding the usable host range for a DHCP scope
  • Converting between a prefix length and a dotted mask

Frequently asked questions

What does the /24 mean?

It is the prefix length: the number of bits that identify the network. A /24 fixes the first three octets and leaves 254 usable hosts.

Why are two addresses unusable?

The first address in a subnet identifies the network itself and the last is the broadcast address, so neither can be assigned to a host.

What is a wildcard mask?

The bitwise inverse of the subnet mask. Cisco access lists and some routing protocols take the wildcard rather than the mask.

Does it handle IPv6?

Not yet -- this calculator is IPv4 only. IPv6 prefixes work on the same principle but use 128 bits and hexadecimal notation.

If the subnet calculator is not quite what you need, these other free tools solve closely related problems, and there are 11 more in tech calculators.

Byte Converter

Bytes to KB, MB, GB and the KiB/MiB/GiB family.

Tech Calculators Use tool

Binary Calculator

Binary arithmetic with decimal, hex and octal output.

Tech Calculators Use tool

Bitwise Calculator

Bitwise operations with the bit patterns displayed.

Tech Calculators Use tool

Number Base Converter

Convert a number between binary, octal, decimal, hex and custom bases.

Encoding & Conversion Use tool

Checked and rebuilt on 2026-10-14. The method this calculator uses is described in the section above, and corrections go through the contact page.