IP / CIDR Calculator

Calculate subnets, network ranges, and CIDR notation. Supports IPv4 and basic IPv6.

Accepts: IP/CIDR, IP/subnet-mask, or bare IP address

Calculated Results

IP Address
192.168.1.0
Subnet Mask
255.255.255.0
CIDR Notation
/24
Wildcard Mask
0.0.0.255
Network Address
192.168.1.0
Broadcast Address
192.168.1.255
First Usable Host
192.168.1.1
Last Usable Host
192.168.1.254
Total Hosts
256
Usable Hosts
254
IP Class
Class C
IP Type
Private (RFC 1918)

Binary Representation

IP Address11000000.10101000.00000001.00000000
Subnet Mask11111111.11111111.11111111.00000000
Network Address11000000.10101000.00000001.00000000
Broadcast Address11000000.10101000.00000001.11111111

Subnet Bit Breakdown

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Network (24 bits)Host (8 bits)

What is an IP Subnet Calculator?

An IP subnet calculator divides a network into smaller subnetworks by computing network addresses, broadcast addresses, usable host ranges, and subnet masks from CIDR notation (e.g., 192.168.1.0/24). Subnetting is essential for network design, security segmentation, and efficient IP address allocation in both on-premises and cloud environments.

Common Use Cases

  • Planning VPC subnets in AWS, GCP, or Azure
  • Calculating usable host ranges for network segments
  • Determining if two IP addresses are on the same subnet
  • Dividing a network into smaller subnets for security zones
  • Troubleshooting network connectivity issues

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation represents a network as an IP address followed by a slash and the number of network bits, like 192.168.1.0/24. The /24 means the first 24 bits are the network portion, leaving 8 bits (256 addresses, 254 usable) for hosts.

How many usable hosts does a /24 network have?

A /24 network has 256 total addresses (2^8), but 2 are reserved: the network address (.0) and broadcast address (.255). So 254 usable host addresses. In general, usable hosts = 2^(32-prefix) - 2.