Skip to content

/22 Subnet Mask: 255.255.252.0

A /22 holds 1,024 addresses (1,022 usable hosts). The calculator below is loaded with 10.22.0.0/22; change it to any block.

100% Local Browser Execution • Zero Server Uploads • Air-Gap Safe

100% Local Tool Execution • Tool Inputs Never Leave Your Browser Bitwise IPv4 engine

RFC 1918 private ranges:

Bit map

10

22

0

0

22 network bits10 host bits

Network
10.22.0.0
Broadcast
10.22.3.255
Subnet mask
255.255.252.0
Wildcard mask
0.0.3.255
Usable host range
10.22.0.1 – 10.22.3.254
Usable hosts
1,022
Total addresses
1,024
Scope
Private (RFC 1918)
Class
A
Hex mask
0xFFFFFC00

Subnet mask to CIDR & IP range converter

/27 · 32 addresses

IP range to CIDR

Reference: Class A, B and C IP address ranges
ClassRangeLeading bitsDefault maskPrivate blockHosts/network
A1.0.0.0 – 126.255.255.2550255.0.0.0 (/8)16,777,214
B128.0.0.0 – 191.255.255.25510255.255.0.0 (/16)65,534
C192.0.0.0 – 223.255.255.255110255.255.255.0 (/24)254
D224.0.0.0 – 239.255.255.2551110n/a (multicast)——
E240.0.0.0 – 255.255.255.2551111n/a (reserved)——

127.0.0.0/8 (loopback) sits between classes A and B and is not assignable. Classful addressing was replaced by CIDR in 1993; the classes survive as shorthand.

Split into

Address space: 10.22.0.0/22 → 1 Subnets

SubnetUsable host rangeUsable hostsActions
10.22.0.0/2210.22.0.1 – 10.22.3.2541,022

CtrlEnter to run

Wrong result, broken layout or an idea? Tell us about this tool.

/22 Subnet Mask: 255.255.252.0 IPv4 CIDR Subnet Mask Bitmask & Security Architecture Banner

This subnet calculator takes any IPv4 address in CIDR notation, such as 10.0.0.0/16 or 192.168.1.77/24, and returns the network address, broadcast address, usable host range, subnet mask, wildcard mask and host count. It also splits a block into equal subnets and merges sibling subnets back together. Every value is computed with 32-bit bitwise math in your browser.

How many IP addresses are in a /22 subnet?

A /22 subnet contains 2^(32 − 22) = 2^10 = 1,024 IP addresses. Two are reserved (network 10.22.0.0 and broadcast 10.22.3.255 in the example block), leaving 1,022 usable host addresses; in AWS or Azure, which reserve 5, you can assign 1,019.

IP addresses for neighbouring prefixes
PrefixIP addressesUsable hosts
/212,0482,046
/221,0241,022
/23512510

Each step of one bit in the prefix halves or doubles the count: a /22 is half a /21 and two /23 subnets.

/22 subnet mask at a glance

  • Subnet mask: 255.255.252.0 (binary 11111111.11111111.11111100.00000000)
  • Wildcard mask: 0.0.3.255
  • Addresses / usable hosts: 1,024 / 1,022
  • A /22 equals 4 contiguous /24 networks.

Typical use: Wi-Fi guest networks and mid-size VPC subnets with ~1,000 hosts. Example block: 10.22.0.0/22 runs from 10.22.0.0 to 10.22.3.255.

What CIDR notation means

Classless Inter-Domain Routing (CIDR) writes a network as an address followed by a prefix length: /24 means the first 24 of the 32 bits identify the network and the remaining 8 bits identify hosts inside it. The prefix length replaces the old class A/B/C system, which only allowed /8, /16 and /24 boundaries.

The bit visualizer above shows this split directly: network bits in indigo, host bits in emerald. Moving the prefix one bit to the right halves the block; moving it one bit left doubles it. Every subnetting question reduces to that one rule.

How it works: CIDR Subnet Splitter

/22 Subnet Mask: 255.255.252.0 IPv4 CIDR Subnet Mask Bitmask & Security Architecture Diagram. Diagram of 192.168.10.0/24: 32 bit cells with 24 indigo network bits and 8 emerald host bits, the derived mask, wildcard, network, broadcast and host range, and a split tree from /24 to two /25 and four /26 subnets.
Diagram of 192.168.10.0/24: 32 bit cells with 24 indigo network bits and 8 emerald host bits, the derived mask, wildcard, network, broadcast and host range, and a split tree from /24 to two /25 and four /26 subnets.

Reading the results: network, broadcast and usable hosts

The network address is the first address in the block (all host bits 0) and the broadcast address is the last (all host bits 1). Neither can be assigned to a host on a normal LAN, so a block of 2^(32-prefix) addresses gives 2^(32-prefix) - 2 usable hosts.

Two prefixes break that rule. A /31 has two addresses and, per RFC 3021, both are usable on point-to-point links. A /32 is a single host and is used for loopbacks, host routes, firewall rules and cloud security-group entries.

The wildcard mask is the bitwise inverse of the subnet mask (0.0.0.255 for a /24). Cisco ACLs and OSPF network statements use wildcard masks instead of subnet masks.

Private IP ranges and local IP ranges

RFC 1918 reserves three private IP ranges that are never routed on the public internet: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. These private network IP ranges are what home routers, office LANs and cloud VPCs use internally, with NAT translating them to a public address at the edge.

Other local IP ranges you will meet in logs include 100.64.0.0/10 (carrier-grade NAT), 169.254.0.0/16 (link-local addresses a host assigns itself when DHCP fails) and 127.0.0.0/8 (loopback). The calculator labels each result with its scope so you can tell instantly whether an address in an alert is internal or internet-facing.

Splitting and merging subnets

Splitting a block means borrowing host bits for the network portion. A /24 split into /26 subnets borrows 2 bits, producing 4 subnets of 64 addresses (62 usable hosts) each. Use Split on any row to halve it, or choose a target prefix to carve the whole block at once.

Merging (summarization or supernetting) is the reverse: two adjacent, equally sized and correctly aligned blocks combine into one block with a prefix one shorter. 10.0.0.0/25 and 10.0.0.128/25 merge into 10.0.0.0/24, but 10.0.0.128/25 and 10.0.1.0/25 cannot, because they do not share a /24 boundary.

  • AWS reserves 5 addresses per subnet (network, VPC router, DNS, future use, broadcast), so a /28 gives 11 usable instances, not 14.
  • Azure also reserves 5 addresses per subnet; GCP reserves 4.
  • Plan VPCs with room to grow: a /16 VPC split into /20 subnets gives 16 subnets of 4,091 hosts.

Subnet mask to CIDR and CIDR to IP range

To convert a subnet mask to CIDR, count the 1 bits: 255.255.255.224 is 27 ones, so it is a /27. The converter bar under the bit map does this for subnet masks and for Cisco-style wildcard masks (0.0.0.31 is also a /27), then loads the result into the calculator with one click.

Going the other way, the calculator is a CIDR to IP range converter: every block shows its first and last address. For an arbitrary range that does not fall on a block boundary, the IP range to CIDR field returns the smallest set of CIDR blocks that covers it exactly. 192.168.1.10 – 192.168.1.20 becomes 192.168.1.10/31, 192.168.1.12/30, 192.168.1.16/30 and 192.168.1.20/32, ready for a firewall allow-list or a cloud security group.

Class A, B and C IP address ranges

Before CIDR (1993), the first bits of an address fixed its network size. The classes no longer control routing, but they still appear in exams, legacy equipment and conversation, so the converter includes a reference table.

  • Class A: 1.0.0.0 – 126.255.255.255, leading bit 0, default mask /8, private block 10.0.0.0/8.
  • Class B: 128.0.0.0 – 191.255.255.255, leading bits 10, default mask /16, private block 172.16.0.0/12.
  • Class C: 192.0.0.0 – 223.255.255.255, leading bits 110, default mask /24, private block 192.168.0.0/16.
  • Class D (224.0.0.0/4) is multicast and class E (240.0.0.0/4) is reserved; 127.0.0.0/8 is loopback.

CIDR cheat sheet: subnet mask and notation table

Prefix lengths from /16 to /32 with mask, wildcard and host counts.
PrefixSubnet maskWildcardAddressesUsable hosts
/16255.255.0.00.0.255.25565,53665,534
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122 (RFC 3021)
/32255.255.255.2550.0.0.011 (host route)

Prefix lengths from /16 to /32 with mask, wildcard and host counts.

Command-line examples

Show your interface address and prefix (Linux)

ip -4 addr show | grep inet

Show subnet mask on Windows

ipconfig | findstr /i "IPv4 Subnet"

Calculate on the command line

ipcalc 192.168.10.0/24

Available on most Linux distributions.

List AWS subnets with their CIDR blocks

aws ec2 describe-subnets --query "Subnets[].[SubnetId,CidrBlock,AvailableIpAddressCount]" --output table

Frequently asked questions

A /22 subnet contains 2^(32 − 22) = 2^10 = 1,024 IP addresses. Two are reserved (network 10.22.0.0 and broadcast 10.22.3.255 in the example block), leaving 1,022 usable host addresses; in AWS or Azure, which reserve 5, you can assign 1,019.

Related Engineering Guides