Subnet and CIDR Calculator

Calculate CIDR network ranges and inspect bounded IPv4 or IPv6 address counts.

On-device No sign-up Free to use

Calculate controls

Showing an example. Edit to see your own.

?

IPv4 or IPv6. You can also paste a prefix with it, such as 192.168.1.10/24 or 2001:db8::1/64.

?

Used when the address above has no /prefix of its own. IPv4 stops at 32 and IPv6 at 128.

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

Find the network and conventional usable IPv4 host range for 192.168.1.10/24.

192.168.1.10 sits in 192.168.1.0/24. Usable hosts run from 192.168.1.1 to 192.168.1.254.

https://usefreetools.net/subnet-cidr-calculator · 20 November 2026

Was this helpful?

How to use Subnet and CIDR Calculator

  1. Paste the address, and add a prefix if you like: 192.168.1.10/24 works as a single field.
  2. Leave the prefix field alone when the address already carries one, or type 0 to 32 for IPv4 and 0 to 128 for IPv6.
  3. Read the network, mask, first and last address, and exact counts. IPv4 /31 and /32 have special usable-address rules; IPv6 has no broadcast line.

Example: Subnet and CIDR Calculator

Find the network and conventional usable IPv4 host range for 192.168.1.10/24.

You add
IP address: 192.168.1.10; Prefix length: 24
You get
192.168.1.10 sits in 192.168.1.0/24. Usable hosts run from 192.168.1.1 to 192.168.1.254.

Options

IPv6 keeps its own rules
An IPv4 address has 32 bits and an IPv6 address has 128. IPv6 has no broadcast address, so the result reports the first and last address in the prefix instead and never prints a broadcast line for it.
Point-to-point and single-host prefixes
A /31 describes a two-address point-to-point link under RFC 3021, so it has no separate network and broadcast address, and a /32 is one host. The page names both cases rather than subtracting two and reporting a count that makes no sense.
IP address
IPv4 or IPv6. You can also paste a prefix with it, such as 192.168.1.10/24 or 2001:db8::1/64.
Prefix length
Used when the address above has no /prefix of its own. IPv4 stops at 32 and IPv6 at 128.

Supported inputs and limits

  • IPv4 accepts dotted decimal with four parts from 0 to 255, and IPv6 accepts full, compressed and IPv4-mapped forms.
  • Prefixes run from 0 to 32 for IPv4 and 0 to 128 for IPv6.
  • A /31 is described as a two-address point-to-point link, per RFC 3021, rather than as a general subnet, and a /32 is a single host.
  • Abbreviated IPv4 forms such as 10.1, hexadecimal forms and leading zeros inside an IPv4 octet are refused rather than guessed at.
  • IPv6 totals are exact whole numbers that run far past what a spreadsheet can hold, so they are printed as digits.
More details

Everything is calculated locally with no lookup, so the page cannot say whether an address is in use, routed, or assigned to you.

Where your input is processed

This tool does not upload your inputs. See the limits for anything saved on your device.

What a prefix length decides

An IPv4 address is 32 bits, an IPv6 address is 128, and the prefix length says how many of those bits name the network rather than the host. Every device in the subnet shares the network part; the remaining bits pick out one device. The network address has all the host bits set to zero, and in IPv4 the broadcast address has them all set to one, which is why the usable range is the space between the two. A shorter prefix therefore means a much larger subnet. IPv6 uses the same idea for the prefix, but the address with every host bit set to one is an ordinary address there rather than a broadcast. Two prefixes step outside the usual subtraction: a /32 names one host, and a /31 is the point-to-point pair defined in RFC 3021, where both addresses belong to the two ends of the link.

Questions about Subnet and CIDR Calculator

Why does a /31 show two usable addresses?

RFC 3021 defines a /31 for point-to-point links between two devices, and on that link both addresses belong to hosts, with no separate network and broadcast address. The page names that case instead of subtracting two addresses the pair does not really have, and it keeps the wording to point-to-point links rather than a general subnet.

Where is the IPv6 broadcast address?

IPv6 does not have one. It uses multicast for that job, so the page reports the first and last address inside the prefix and leaves the broadcast line out.

Why was 192.168.1.010 refused?

A leading zero inside an octet is read as decimal by some tools and as octal by others, so the two disagree about which address 192.168.1.010 means. Drop the zero and use 192.168.1.10.

Is my address sent anywhere?

The prefix arithmetic runs in your browser with JavaScript and BigInt. It does not send the entered address for a network lookup or probe.

Can I plan a whole network with this?

Use it to check the arithmetic of a prefix you already chose. It knows nothing about your routers, switches, DHCP pools or reservations, so confirm the range against your own address plan before handing it out.

Page updated · Project managed by Tony Hines · Report a problem with Subnet and CIDR Calculator