TOOLTIKI Lovable tool, really free
Developer Addressing

CIDR calculator

10.0.0.0/16 65,534 usable hosts
Network address
10.0.0.0
Broadcast address
10.0.255.255
First usable host
10.0.0.1
Last usable host
10.0.255.254
Usable hosts
65,534
Total addresses
65,536
Subnet mask
255.255.0.0
Wildcard mask
0.0.255.255
CIDR notation
10.0.0.0/16
Address range
10.0.0.0 – 10.0.255.255
Class
A
Scope
Private (RFC 1918)
Mask in binary
11111111.11111111.00000000.00000000
Address in binary
00001010.00000000.00000000.00000000
Subnets of /26
1,024
Usable hosts in each
62
Smallest block for 50 hosts
/26

Calculated in your browser · nothing is looked up or uploaded

Local · a longer prefix is a smaller network
Advertisement
320 × 100

Shows exactly what a CIDR block covers: its address range, how many addresses it holds, how many are usable, and how it divides into smaller prefixes.

How to use the cidr calculator

1 Enter the network address and prefix.
2 Read how many addresses the block holds.
3 Use the split rows to divide it up.

CIDR replaced the old class system in 1993 and the reason was arithmetic. Classes fixed the network boundary at 8, 16 or 24 bits, so an organisation needing 300 addresses had to take a class B — 65,534 of them — and waste the rest. CIDR lets the boundary sit anywhere, so 300 hosts get a /23 and 512 addresses.

The rule to internalise is that a longer prefix is a smaller network, which reads backwards the first hundred times. A /24 is 256 addresses; a /25 is 128. Each bit added to the prefix halves the block. That is also why the counts are all powers of two and why you cannot have a network of 300 addresses — you take 512 and use 300.

The classes are still shown here because people still say "a class C" when they mean a /24, and because the class of an address determines its default mask on equipment old enough to care. They have had no effect on routing for thirty years.

One thing worth watching in real use: a prefix must be aligned to its own size. 10.0.1.0/23 is not a valid network, because a /23 must start on an even third octet — the correct block is 10.0.0.0/23. Equipment will usually reject it; a calculator that accepts it and computes the containing network, as this one does, tells you what you actually asked for.

Questions

The prefix counts network bits, so more of them leaves fewer host bits. Each bit added halves the block.

RFC 4632 — Classless Inter-domain RoutingRFC 1519 — Classless Inter-domain Routing: an address assignment strategy
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING