IP Tools

CIDR Calculator

Turn an IPv4 address and prefix, such as 192.168.1.10/26, into its subnet mask, network and address range.

Jump to tool

What Is a CIDR Calculator?

A CIDR calculator turns an IPv4 address with a prefix, such as 10.0.0.0/16, into the values you need to configure a network: the subnet mask, the network address and the first and last addresses. CIDR notation replaced the old fixed class A, B and C network sizes in the 1990s.

Enter an IPv4 address and prefix length and the tool calculates the network, mask and address bounds in your browser.

How to Use the CIDR Calculator

  1. Enter an IP address and choose the CIDR prefix, or type CIDR notation directly, such as 192.168.1.0/24.
  2. Select Calculate.
  3. Read the subnet mask, network address and first and last addresses.

Worked Example: 192.168.1.10/26

StepResult
Prefix /26 means 26 network bitsSubnet mask 255.255.255.192
32 minus 26 leaves 6 host bits2 to the power of 6 = 64 addresses per subnet
Subnets start every 64 addresses in the last octet10 falls in the block starting at 0
Network address192.168.1.0
Broadcast address192.168.1.63
Usable hosts192.168.1.1 to 192.168.1.62, 62 in total

What CIDR Notation Means

CIDR, classless inter-domain routing, writes a network as an address and a prefix length, such as 10.0.0.0/16. It replaced the fixed class A, B and C sizes in 1993, so networks can be any power-of-two size.

Where You'll Meet CIDR

  • Cloud networks, such as AWS VPCs and Azure virtual networks.
  • Firewall rules and security groups, such as allowing 203.0.113.0/24.
  • Router and VPN configuration.
  • Allow-lists for APIs and admin panels.

CIDR Calculator FAQ

Need the full range of a block?

List the first, last and usable addresses of any CIDR block.

CIDR to IP Range