ToolsHubs
ToolsHubs
Privacy First

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.

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. Also not assignable.

First usable host — Network address + 1. The first address you can actually assign.

Last usable host — Broadcast address − 1.

Total hosts — 2^(host bits). For /24, that's 2^8 = 256.

Usable hosts — Total minus 2 (subtract network and broadcast addresses).

Subnet mask — Written in dotted decimal.

Wildcard mask — The inverse of the subnet mask. Used in access control lists (ACLs) and routing configurations.


A Practical Subnetting Example

You need to split 10.0.0.0/24 into 4 equal subnets.

You need at least 2 bits to represent 4 subnets (2² = 4). Borrowing 2 bits from the host portion gives you /26.

SubnetNetwork AddressUsable RangeBroadcast
110.0.0.010.0.0.1 – 10.0.0.6210.0.0.63
210.0.0.6410.0.0.65 – 10.0.0.12610.0.0.127
310.0.0.12810.0.0.129 – 10.0.0.19010.0.0.191
410.0.0.19210.0.0.193 – 10.0.0.25410.0.0.255

Each subnet has 64 addresses total, 62 usable. Paste any of these into the calculator to verify.


Private IP Address Ranges

Not all IP addresses are public. Three ranges are reserved for private networks and never routed over the internet:

RangeCIDRCommon Use
10.0.0.0 – 10.255.255.25510.0.0.0/8Large enterprises, cloud VPCs
172.16.0.0 – 172.31.255.255172.16.0.0/12Medium networks
192.168.0.0 – 192.168.255.255192.168.0.0/16Home routers, small offices

Your home router assigns devices addresses from 192.168.x.x — that's the private range at work. NAT (Network Address Translation) then translates these to your single public IP when communicating with the internet.