IPv4 Subnet Calculator

Calculate network ranges, broadcast addresses, and total usable hosts from any IPv4 address and CIDR block.

How to use IPv4 Subnet Calculator

  1. 1

    Enter an IPv4 address (e.g. 192.168.1.1).

  2. 2

    Use the slider to select a CIDR subnet mask (e.g. /24).

  3. 3

    Instantly view the network address, broadcast address, and host range.

Frequently Asked Questions

What does CIDR mean?

Classless Inter-Domain Routing (CIDR) is a method for allocating IP addresses and IP routing. The /number represents how many bits are used for the network.

Detailed Guide

What Is Subnetting and Why Does It Matter?

When computer networks were first designed, IP addresses were assigned in large blocks called classes — Class A, B, and C. The problem? A company that needed 300 IP addresses would get an entire Class C block of 256, and a company that needed 5000 would get a Class B block of 65,536. Most of those addresses would go to waste.

Subnetting solves this by dividing a large block of IP addresses into smaller, more manageable chunks. Instead of handing out entire classes, network engineers can carve out exactly the size network they need.

Today, every network you work with — your home router, your company's infrastructure, cloud VPCs — uses subnetting. Understanding it is fundamental to networking.


The Anatomy of an IPv4 Address

An IPv4 address is 32 bits written as four groups of 8 bits (octets), each displayed as a decimal number from 0–255:

192.168.1.0
↑   ↑   ↑ ↑
8   8   8  8 bits = 32 bits total

Every IP address has two conceptual parts:

  • Network portion — identifies which network the address belongs to
  • Host portion — identifies the specific device within that network

The subnet mask tells you where the dividing line is.


Subnet Masks and CIDR Notation

A subnet mask is also a 32-bit number. Ones (1) in the mask mark the network portion, zeros (0) mark the host portion:

255.255.255.0  in binary:
11111111.11111111.11111111.00000000
↑——————————————————————↑  ↑———————↑
      Network (24 bits)    Host (8 bits)

CIDR notation is a shorthand that replaces the full subnet mask with a prefix length — the count of 1 bits. So /24 means 24 network bits, which is the same as 255.255.255.0.

CIDRSubnet MaskUsable HostsUse Case
/30255.255.255.2522Point-to-point links
/29255.255.255.2486Very small office
/28255.255.255.24014Small office
/27255.255.255.22430Department
/24255.255.255.0254Standard LAN
/22255.255.252.01022Medium network
/16255.255.0.065,534Large enterprise

What the Calculator Gives You

Enter any IP address and prefix (like 192.168.10.50/26) and you get:

Network address — The first address in the subnet. This identifies the network itself and can't be assigned to a device.

Broadcast address — The last address in the subnet. Packets sent here go to every device on the subnet....

Looking for a more detailed deep-dive and advanced tips?

Read Full Article on our Blog