Skip to main content
CalcChef

CIDR Calculator

Enter an IPv4 CIDR block such as 192.168.1.0/24 for its IP range, netmask, broadcast address and usable hosts, split it into subnets or turn a range into CIDR. How it works

Use the CIDR Calculator

IPv4 only. A bare address with no slash is read as one host (/32).

Usable hosts
254
Total addresses 256

Netmask255.255.255.0
Wildcard Mask0.0.0.255
Network Address192.168.1.0
Broadcast Address192.168.1.255
Total Addresses256
Usable Hosts254
First Usable IP192.168.1.1
Last Usable IP192.168.1.254
Address TypePrivate-Use (192.168.0.0/16, RFC 1918)

Split into smaller subnets

What the /24 block gives when cut into equal subnets. Type a prefix or a host count to list the subnets.

PrefixSubnetsAddresses eachUsable each
/252128126
/2646462
/2783230
/28161614
/293286
/306442
/3112822
/3225611

About the CIDR Calculator

A /24 block holds 256 addresses and 254 usable hosts. 192.168.1.0/24 runs from 192.168.1.1 to 192.168.1.254, with netmask 255.255.255.0 and broadcast address 192.168.1.255. Type any IPv4 address with a prefix from /0 to /32 to get the same figures, the wildcard mask and, for a special range, its IANA name. The calculator also splits a block into subnets and turns an address range into CIDR blocks. It is IPv4 only.

Common prefix lengths

PrefixNetmaskTotal addressesUsable hosts
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/20255.255.240.04,0964,094
/22255.255.252.01,0241,022
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

Each row is what the calculator returns for 10.0.0.0 with that prefix. Usable hosts are the total minus 2, except /31 (both addresses usable, RFC 3021) and /32 (one host).

192.168.1.0/24 split into /26 subnets

SubnetFirst hostLast hostBroadcast
192.168.1.0/26192.168.1.1192.168.1.62192.168.1.63
192.168.1.64/26192.168.1.65192.168.1.126192.168.1.127
192.168.1.128/26192.168.1.129192.168.1.190192.168.1.191
192.168.1.192/26192.168.1.193192.168.1.254192.168.1.255

Split /26, or 50 hosts per subnet, which needs a /26 (62 usable hosts). A split lists the first 64 subnets.

Range 192.168.1.10 to 192.168.1.200 as CIDR blocks

BlockAddresses
192.168.1.10/312
192.168.1.12/304
192.168.1.16/2816
192.168.1.32/2732
192.168.1.64/2664
192.168.1.128/2664
192.168.1.192/298
192.168.1.200/321

191 addresses in 8 blocks. Each block is the largest one that starts at the current address, is aligned to its own size and stays inside the range.

How to use this tool

  1. Type an IPv4 address and a prefix, such as 10.0.0.0/16. A host address such as 192.168.1.77/24 works and gives the block it belongs to.
  2. Read the netmask, network address, broadcast address, total addresses, usable hosts, and the first and last usable address.
  3. If a message appears under the field, it names the part that is wrong: one of the four numbers or the prefix. An address with no slash is not an error; it is read as a single host, /32.
  4. To split the block, type a longer prefix, or the number of hosts each subnet needs, under Split. To go from a list of addresses to blocks, switch to Range to CIDR and enter the first and last address.

Frequently asked questions

How many usable hosts are in a /24?
254. Usable hosts are 2^(32 − prefix) minus 2, because the network address and the broadcast address are not given to hosts. Each bit taken off the prefix doubles the block: a /23 has 512 addresses and 510 usable hosts, while a /25 has 128 and 126.
What are a /31 and a /32?
A /31 has 2 addresses, and both are usable because RFC 3021 treats them as host addresses on a point-to-point link, so the tool shows no broadcast address for it. A /32 is a single host. An address typed without a slash is read as /32.
How do I find the network address of an IP address?
Type the address with its prefix. 192.168.1.77/24 gives network address 192.168.1.0, because the last 8 bits are cleared. Two addresses are in the same subnet when they give the same network address for the same prefix.
How many usable IP addresses does an AWS subnet have?
Fewer than the tool shows. AWS reserves the first four addresses and the last one in every subnet, so a /24 holds 251 usable addresses, not 254. AWS allows subnet sizes only from /28 to /16. A /28 has 16 addresses here and 11 usable in AWS.
Does the CIDR calculator support IPv6?
No. It reads four decimal numbers from 0 to 255 and a prefix from 0 to 32, and an IPv6 block such as 2001:db8::/32 gets a message that an IPv4 address has four numbers separated by dots.
How do I convert an IP range to CIDR?
Switch to Range to CIDR and enter the first and last address. 192.168.1.10 to 192.168.1.200 is 191 addresses and needs 8 blocks, from 192.168.1.10/31 to 192.168.1.200/32, because a block has to start on a multiple of its own size. A range from 192.168.1.0 to 192.168.1.255 is the single block 192.168.1.0/24.

Related Tools

View all tools