Subnet calculator

Calculate the network, broadcast and host range of an IPv4 subnet.

  • Research
  • 100% free
  • No sign-up
  • Runs in your browser
Subnet calculator

What is the subnet calculator?

The subnet calculator splits an IPv4 address and its prefix (such as 192.168.1.10/24) into everything you need to plan a network: the network address, the broadcast address, the first and last usable host, the subnet and wildcard masks and the number of addresses.

Enter a CIDR prefix or a dotted subnet mask. The calculator also tells you the class of the address and whether it's public, private, loopback or link-local.

How to use the subnet calculator

  1. 1Enter an IP address with a prefix, e.g. 10.0.0.1/16, or an IP and a mask.
  2. 2The results update while you type.
  3. 3Copy any value with one click.

Features

CIDR or mask

Accepts /24 as well as 255.255.255.0.

Host range

First and last usable address and the number of hosts.

Masks

Subnet mask, wildcard mask and binary values.

Address type

Public, private, loopback, link-local or CGNAT.

Frequently asked questions

What is CIDR notation?

A compact way to write an IP range: 192.168.1.0/24 means the first 24 bits are the network, leaving 256 addresses.

Why are there 2 fewer usable hosts?

The first address identifies the network and the last one is the broadcast address. /31 and /32 networks are exceptions.

What is a wildcard mask?

The inverse of the subnet mask, used in router access lists and OSPF.

Which IP ranges are private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.