IP Subnet Calculator

Calculate IP subnets, CIDR blocks, and network addresses

Network Configuration

Enter any IP address within the network you want to analyse

Enter subnet mask (e.g., 255.255.255.0) OR use CIDR notation below

Enter CIDR notation (0-32) OR use subnet mask above

Network Analysis Results

Enter network details and click Calculate to analyse your IP subnet

About the IP Subnet Calculator

This IP subnet calculator takes an IPv4 address and CIDR prefix (or subnet mask) and returns the network address, broadcast address, usable host range, and the number of hosts. It is the everyday tool for planning networks, configuring routers, and understanding where one subnet ends and the next begins.

How subnetting works

An IPv4 address has 32 bits split into a network part and a host part. The CIDR prefix (the /24 in 192.168.1.0/24) says how many leading bits are the network, leaving the rest for hosts. From that, the calculator derives the subnet mask, the network address (all host bits zero), the broadcast address (all host bits one), and the usable host range in between — the addresses you can actually assign to devices.

The number of hosts is 2 to the power of the host bits, minus two for the network and broadcast addresses. A /24 gives 256 total and 254 usable; a /30 gives just 2 usable, ideal for a point-to-point link. Choosing the right prefix sizes a subnet to its devices without wasting address space.

Why it matters

Subnetting divides a network into manageable, isolated segments — improving security, reducing broadcast traffic, and organising address allocation. Getting the boundaries right prevents overlapping ranges and addresses that silently fail to route. The calculator makes the boundaries explicit so you can plan a clean addressing scheme.

Worked example

Working out the details of 192.168.1.0/24.

  1. /24 means 24 network bits, 8 host bits, mask 255.255.255.0.
  2. Hosts = 2⁸ − 2 = 254 usable.
  3. Network 192.168.1.0, broadcast 192.168.1.255, usable .1 to .254.

192.168.1.0/24 has 254 usable hosts from .1 to .254, broadcasting on .255.

Frequently asked questions

What does the /24 in an IP address mean?

It is the CIDR prefix: the number of bits used for the network portion. /24 means 24 network bits (mask 255.255.255.0), leaving 8 bits — 254 usable addresses — for hosts.

Why are there two fewer usable hosts than addresses?

The first address in a subnet is the network address and the last is the broadcast address; neither can be assigned to a device. So usable hosts equal the total addresses minus two.

What subnet should I use for a point-to-point link?

A /30 provides exactly two usable addresses, perfect for a link between two routers. A /31 is also used for point-to-point links in some configurations to save addresses.