Subnet Mask Calculator

Network Address-
Usable Host Range-
Broadcast Address-
Total Hosts-
Usable Hosts-
Subnet Mask-
Wildcard Mask-
Binary Mask-

What is a Subnet Mask?

A subnet mask is a 32-bit number used in IPv4 networking to distinguish between the network portion and the host portion of an IP address. By applying a bitwise AND operation, routers and computers can determine whether a specific destination IP address is within the local subnet or needs to be routed to an external network. This process is fundamental to efficient IP address management and network security.

How to Use This Subnet Mask Calculator

Using our tool is straightforward. First, enter the IPv4 address you wish to analyze (for example, 192.168.1.1). Next, select the prefix length (CIDR notation) or the dotted-decimal subnet mask from the dropdown menu. Once you click "Calculate Results," the tool instantly provides the network ID, the range of usable host addresses, the broadcast address, and the total count of devices that can reside on that specific network segment.

Understanding CIDR Notation

Classless Inter-Domain Routing (CIDR) replaced the older "Classful" (Class A, B, C) system. It uses a slash followed by a number (like /24) to represent the number of bits set to 1 in the subnet mask. For example, /24 means the first 24 bits are the network prefix, which translates to a subnet mask of 255.255.255.0. This flexibility allows network administrators to create subnets of varying sizes to avoid wasting IP addresses.

Frequently Asked Questions

Q: What is a wildcard mask?
A: A wildcard mask is essentially the inverse of a subnet mask. It is primarily used in Access Control Lists (ACLs) and routing protocols like OSPF to specify which parts of an IP address should be matched.

Q: Why are there two fewer usable hosts than total hosts?
A: In every subnet, the first address is reserved for the Network Address, and the last address is reserved for the Broadcast Address. These cannot be assigned to individual devices like computers or printers.