Subnet Calculator (CIDR Calculator)

Calculate network ranges, subnet masks, and usable hosts from an IP and CIDR instantly.

/0/32

Calculation Results

Network Address
192.168.1.0
Broadcast Address
192.168.1.255
First Host Address
192.168.1.1
Last Host Address
192.168.1.254
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
Binary Mask
11111111.11111111.11111111.00000000
Total Hosts254
IP ClassClass C
Private IPYes

Common CIDR Reference

CIDRMaskHosts
/8255.0.0.016,777,214
/16255.255.0.065,534
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522
/31255.255.255.2542
/32255.255.255.2551
🔒 100% Local
Fast Processing
🆓 Free Tool

Subnet Calculator Use Cases

Small Office LAN Design — Allocate 254 hosts using a /24 subnet.
AWS VPC Subnetting — Divide ranges by Availability Zones using /26 to /28.
VLAN Planning — Segment network blocks by department (e.g., /27 for 30 hosts).
Point-to-Point Links — Configure serial links using /30 or /31 (RFC 3021).

Frequently Asked Questions

Q. What does /24 mean?

It means the first 24 bits are the network portion, leaving 8 bits for hosts—providing 256 total addresses, with 254 usable.

Q. Why are there 2 fewer usable hosts?

The first address is the network ID and the last is the broadcast address; both are reserved and cannot be assigned to devices.

Q. What is the /31 exception?

RFC 3021 allows using /31 for point-to-point links where no broadcast is needed, giving 2 usable addresses.

Q. Difference between subnet mask and wildcard?

Subnet mask uses 1s for network bits (255.255.255.0). Wildcard is the inverse (0.0.0.255), mainly used in firewall ACLs.

Q. Can I subnet a /24 into smaller networks?

Yes. You can split a /24 into two /25s (128 each), four /26s (64 each), eight /27s (32 each), and so on.

Key Features

  • Real-time CIDR Mask Calculation
  • Binary Mask Visualization
  • IP Class & Private IP Detection
  • RFC 3021 /31 Support & Host Counting

Subnet Mask Calculator

Precision network calculator and IP range tool. Free CIDR to subnet mask converter and subnetting designer.

CIDR Logic

Analyze subnetting details and wildcard masks for advanced network planning.

Network bits (0–32)

/8
8
/16
16
/24
24
/28
28
/30
30
/32
32

Common CIDR Use Cases

CIDRSubnet MaskHostsTypical Use
/8255.0.0.016,777,214Large ISP / Class A
/16255.255.0.065,534University / Enterprise campus
/24255.255.255.0254Home / Small office
/25255.255.255.128126Small department VLAN
/26255.255.255.19262Workgroup / Lab
/28255.255.255.24014DMZ / server cluster
/29255.255.255.2486Cloud VPC subnet
/30255.255.255.2522Point-to-point WAN link
/31255.255.255.2540*Router inter-link (RFC 3021)
/32255.255.255.2551Single host / loopback

* /31 = 2 addresses, host-usable per RFC 3021

Network