CIDR Calculator

Instant subnet calculations with interactive binary visualization.

Summary

Network
192.168.1.0
Broadcast
192.168.1.255
First Host
192.168.1.1
Last Host
192.168.1.254
Usable Hosts
254
Subnet Mask
255.255.255.0
Prefix
/24

Binary Visualization

NetworkHost
Octet: 1Bit: 0Value: 128

Network Information

Network Address

192.168.1.0

Broadcast Address

192.168.1.255

First Host

192.168.1.1

Last Host

192.168.1.254

Default Gateway

192.168.1.1

Subnet Details

CIDR Prefix

/24

Subnet Mask

255.255.255.0

Wildcard Mask

0.0.0.255

Network Bits

24

Host Bits

8

Host Capacity

Total Hosts

256

Usable Hosts

254

Reserved Addresses

2

IP Classification

IP Class

Class C

Class Range

192.0.0.0 - 223.255.255.255

Default Mask

255.255.255.0 (/24)

Class Hosts

254

Visibility

Private

Flags

Private

Network Range

NetworkFirstHostCIDR
subnets
Key Concepts

CIDR Essentials

Five core concepts that explain how CIDR works and why it matters.

CIDR Notation

IP/prefix (e.g., 192.168.1.0/24) — the prefix length tells you how many bits belong to the network.

Subnet Masks

Dotted-decimal form of the prefix. /24 = 255.255.255.0. Network bits are 1, host bits are 0.

Binary Breakdown

Every IPv4 address is 32 bits. The first N bits = network, remaining 32-N bits = host.

Route Aggregation

Supernetting combines adjacent blocks (e.g., four /24s → one /22), keeping global routing tables small.

VLSM

Variable Length Subnet Masking lets you carve a network into differently-sized subnets for efficient allocation.

CIDR prefix reference table from /8 to /32
PrefixSubnet MaskWildcardTotalUsableBlock Size
/8255.0.0.00.255.255.25516,777,21616,777,21416,777,216
/9255.128.0.00.127.255.2558,388,6088,388,6068,388,608
/10255.192.0.00.63.255.2554,194,3044,194,3024,194,304
/11255.224.0.00.31.255.2552,097,1522,097,1502,097,152
/12255.240.0.00.15.255.2551,048,5761,048,5741,048,576
/13255.248.0.00.7.255.255524,288524,286524,288
/14255.252.0.00.3.255.255262,144262,142262,144
/15255.254.0.00.1.255.255131,072131,070131,072
/16255.255.0.00.0.255.25565,53665,53465,536
/17255.255.128.00.0.127.25532,76832,76632,768
/18255.255.192.00.0.63.25516,38416,38216,384
/19255.255.224.00.0.31.2558,1928,1908,192
/20255.255.240.00.0.15.2554,0964,0944,096
/21255.255.248.00.0.7.2552,0482,0462,048
/22255.255.252.00.0.3.2551,0241,0221,024
/23255.255.254.00.0.1.255512510512
/24255.255.255.00.0.0.255256254256
/25255.255.255.1280.0.0.127128126128
/26255.255.255.1920.0.0.63646264
/27255.255.255.2240.0.0.31323032
/28255.255.255.2400.0.0.15161416
/29255.255.255.2480.0.0.7868
/30255.255.255.2520.0.0.3424
/31255.255.255.2540.0.0.1222
/32255.255.255.2550.0.0.0111

Usable = Total − 2 (network + broadcast), except /31 (2 usable, RFC 3021) and /32 (1 host).

Private & Reserved Ranges

Ranges not routed on the public internet — safe for internal use with NAT.

10.0.0.0/816.7M

Class A private — 16.7M addresses, largest private block

172.16.0.0/121.0M

Class B private — 1M addresses across 16 contiguous /16s

192.168.0.0/1665.5K

Class C private — 65K addresses, most common for home/small office

127.0.0.0/8Loopback

Loopback — host talks to itself (127.0.0.1 = localhost)

169.254.0.0/16Link-local

Link-local — auto-assigned when DHCP fails (APIPA)

100.64.0.0/10CGNAT

CGNAT (Carrier-grade NAT) — shared address space used by ISPs

Real-World Scenarios

Practical Examples

Three common network designs — click any to load it in the calculator above.

10.0.0.0/16Interactive

AWS VPC /16

Standard VPC with /24 subnets per Availability Zone for high availability.

65,534 hosts65,534
/24 per AZ/24 per AZ
16 subnets16 subnets
192.168.10.0/24Interactive

Office /24

Typical small office network divided into departmental /26 subnets.

254 hosts254 hosts
/26 per dept/26 per dept
4 departments4 departments
10.255.255.0/30Interactive

Point-to-Point /30

Router-to-router link using RFC 3021 /31 or traditional /30.

2 usable2 usable
RFC 3021RFC 3021
No broadcastNo broadcast

All examples are interactive — click to populate the calculator and explore further.

Quick Reference

Quick Reference

Common prefixes at a glance and links to related tools.

Common Prefixes

Prefix, mask, host count, and typical use case.

PrefixMaskUsable HostsTypical Use
/8255.0.0.016,777,214Class A networks, large ISPs
/16255.255.0.065,534Large enterprises, VPC blocks
/24255.255.255.0254Standard LAN, most common
/26255.255.255.19262Department subnets, small offices
/28255.255.255.24014DMZ, point-to-multipoint
/30255.255.255.2522Router links (traditional)
/31255.255.255.2542*Router links (RFC 3021)
/32255.255.255.2551Loopbacks, host routes

* /31 has 2 usable addresses per RFC 3021 (no network/broadcast).

Related Tools

Specialized calculators for every network task.