Developer & Web ToolsPopular Tool

IP Subnet Calculator (CIDR)

Calculate subnet masks, CIDR network ranges, broadcast addresses, and usable host counts for IPv4.

Usable Host Capacity
254 Hosts

Usable IP Range: 192.168.1.1 to 192.168.1.254

Subnet Architecture Details

Subnet Mask:255.255.255.0
Network Address (ID):192.168.1.0
Broadcast Address:192.168.1.255
Wildcard Mask:0.0.0.255
IP Type:Class C (Private RFC 1918)
fxIPv4 Subnet Calculations
▼
Total Hosts = 2^(32 – CIDR) Usable Hosts = 2^(32 – CIDR) – 2 (reserving Network and Broadcast addresses) Network Address = IP & Subnet Mask
Classless Inter-Domain Routing (CIDR) allocates IP addresses and routes Internet Protocol packets by dividing the 32-bit IPv4 address into network prefix bits and host identifier bits.
Example:
For 192.168.1.50/24: Subnet mask = 255.255.255.0, Network address = 192.168.1.0, Usable range = 192.168.1.1 to 192.168.1.254, Usable hosts = 254.

Frequently Asked Questions

What is CIDR notation and how does it determine subnet size?▼
Classless Inter-Domain Routing (CIDR) notation denotes an IP address followed by a slash and the prefix length (e.g. 192.168.1.0/24). The number represents the count of leading 1-bits in the subnet mask, indicating which portion of the 32-bit address designates the network and which portion designates host devices.
Why do we subtract 2 from total IP addresses to find usable hosts?▼
In any standard IPv4 subnet, two IP addresses are reserved by networking protocol standards: the first address (all host bits 0) represents the Network Address, and the last address (all host bits 1) serves as the Broadcast Address. Therefore, usable hosts equal 2^(32 - prefix) - 2.
What are RFC 1918 private IPv4 address allocations?▼
RFC 1918 reserves three private address blocks for internal local area networks: Class A (10.0.0.0 to 10.255.255.255 /8), Class B (172.16.0.0 to 172.31.255.255 /12), and Class C (192.168.0.0 to 192.255.255.255 /16). These addresses are non-routable on the public internet.
What is the difference between a network address and a broadcast address?▼
A network address identifies the specific subnet itself and is used by routers to direct traffic. A broadcast address allows a host to transmit a packet simultaneously to every connected device on that specific local subnet.

Related Developer Tools Tools

Explore more calculators in this category

View all in Developer Tools
Popular

Secure Password Generator

Generate cryptographically strong passwords, passphrases, and pins with customized character sets.

Launch calculatorFree

Binary Calculator

Perform addition, subtraction, AND, OR, XOR, and conversions on binary numbers.

Launch calculatorFree

Hex Calculator

Convert between hexadecimal, decimal, and binary with hex arithmetic operations.

Launch calculatorFree