Network Address Calculator: Find Your Network Number


Network Address Calculator

Calculate Network Number


Enter a valid IPv4 address (e.g., 192.168.1.100)
Please enter a valid IPv4 address.


Enter the corresponding subnet mask (e.g., 255.255.255.0 or /24)
Please enter a valid subnet mask.



What is a Network Number?

A network number, more formally known as a network address or Network ID, is the unique identifier for a specific network. In the context of IP networking, it’s the first address in a range of IP addresses that defines a particular subnet. This address is crucial for routing; it allows routers to efficiently direct data packets to the correct destination network without needing to know the address of every single device on that network. You can’t assign the network number to a specific device; it’s reserved to represent the network itself.

Think of it like a zip code for a neighborhood. The zip code gets the mail to the right general area (the network), and the street address (the host part of the IP address) gets it to the specific house (the device). To calculate the network number using an IP and subnet mask is a fundamental skill for anyone in IT or networking.

Network Number Formula and Explanation

The method to find the network number is straightforward. It involves a mathematical operation called a bitwise AND. You perform this operation between the device’s IP address and its subnet mask. The result is the network address.

Network Address = IP Address AND Subnet Mask

A subnet mask is a 32-bit number that “masks” the IP address, separating it into two parts: the network portion and the host portion. The ‘1’s in the subnet mask represent the network bits, and the ‘0’s represent the host bits. The bitwise AND operation works like this for each bit:

  • 1 AND 1 = 1
  • 1 AND 0 = 0
  • 0 AND 1 = 0
  • 0 AND 0 = 0

This effectively zeroes out the host portion of the IP address, leaving only the network identifier. For more information on subnetting, see this guide to understanding subnetting.

Variables in Network Number Calculation
Variable Meaning Unit / Format Typical Range
IP Address The unique address of a device on the network. Dotted-Decimal Notation e.g., 1.0.0.0 to 223.255.255.255
Subnet Mask Defines the network and host portions of an IP address. Dotted-Decimal or CIDR e.g., 255.0.0.0 (/8) to 255.255.255.252 (/30)
Network Address The calculated identifier for the entire subnet. Dotted-Decimal Notation Derived from IP and Mask

Practical Examples

Example 1: Common Class C Network

  • Input IP Address: 192.168.10.150
  • Input Subnet Mask: 255.255.255.0
  • Calculation:
    • IP (binary): 11000000.10101000.00001010.10010110
    • Mask (binary): 11111111.11111111.11111111.00000000
    • Result (binary): 11000000.10101000.00001010.00000000
  • Resulting Network Address: 192.168.10.0

Example 2: A Subnetted Class B Network

  • Input IP Address: 172.16.84.25
  • Input Subnet Mask: 255.255.240.0 (/20)
  • Calculation:
    • IP (binary): 10101100.00010000.01010100.00011001
    • Mask (binary): 11111111.11111111.11110000.00000000
    • Result (binary): 10101100.00010000.01010000.00000000
  • Resulting Network Address: 172.16.80.0

For more examples, you might be interested in our CIDR calculator tool.

How to Use This Network Number Calculator

This calculator is designed for ease of use. To calculate the network number using an IP and subnet mask, follow these simple steps:

  1. Enter the IP Address: Type the full IPv4 address of the device into the “IP Address” field.
  2. Enter the Subnet Mask: Type the subnet mask into the “Subnet Mask” field. You can use standard dotted-decimal notation (e.g., 255.255.255.0) or CIDR notation (e.g., /24). The calculator will automatically convert CIDR to the correct mask.
  3. Click Calculate: Press the “Calculate” button.
  4. Review the Results: The tool will instantly display the primary result (the Network Address) and several intermediate values like the binary representations, the broadcast address, the usable host range, and the total number of hosts on that subnet.

Key Factors That Affect the Network Number

The network number is directly determined by two inputs, but several underlying factors influence what those inputs are and what the result means. Curious about your own IP? Check out our article on what is an IP address?

  • The IP Address Itself: This is the starting point. The network number is always a derivative of a specific device’s IP.
  • The Subnet Mask: This is the most critical factor. Changing the subnet mask, even for the same IP address, will change the network address by redefining the boundary between the network and host portions.
  • CIDR Prefix Length: A shorter prefix (like /16) means a smaller subnet mask, more host bits, and a larger network. A longer prefix (like /29) means a larger mask, fewer host bits, and a smaller, more specific network.
  • Classful vs. Classless Addressing: While largely historical, the original IP “class” (A, B, C) determined the default subnet mask. Modern networking uses Classless Inter-Domain Routing (CIDR), allowing for flexible mask lengths.
  • Number of Required Hosts: Network architects often work backward. They determine how many devices a subnet needs, which dictates how many host bits are required, which in turn defines the subnet mask.
  • Number of Required Subnets: Similarly, if an organization needs a certain number of separate networks, they will “borrow” bits from the host portion to create subnet bits, which changes the subnet mask.

A more advanced tool can help you calculate the broadcast address for your network.

Frequently Asked Questions (FAQ)

1. What is the difference between a network number and an IP address?

An IP address identifies a single device on a network. A network number (or network address) identifies the entire network (or subnet) itself. The network number is the first address in a subnet and cannot be assigned to a device.

2. Can two devices on different networks have the same host ID?

Yes. For example, 192.168.1.10 and 192.168.2.10 have the same host ID (.10), but they are on different networks (192.168.1.0 and 192.168.2.0, respectively). The combination of network number + host ID is what makes the full IP address unique.

3. What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation is a shorthand for writing subnet masks. It’s a forward slash followed by a number (e.g., /24). The number indicates how many consecutive ‘1’ bits are at the beginning of the mask. Our calculator accepts both CIDR and dotted-decimal formats.

4. What is the broadcast address?

The broadcast address is the last address in a subnet. It’s used to send a message to all devices on that specific subnet simultaneously. You can find it by taking the network address and turning all the host bits to ‘1’s.

5. Why do I get “NaN” or an error?

This usually means the IP address or subnet mask was entered in an invalid format. An IPv4 address must have four numbers (octets), each between 0 and 255, separated by dots. Our calculator validates your input to prevent this.

6. What are “usable” hosts?

For any given subnet, two addresses are reserved: the network address (first one) and the broadcast address (last one). The “usable” hosts are all the IP addresses in between that can be assigned to actual devices.

7. Does this calculator work for IPv6?

No, this calculator is specifically designed to calculate a network number using an IPv4 IP and subnet mask. IPv6 uses a different addressing scheme and prefix lengths.

8. What does a subnet mask of 255.255.255.255 or /32 mean?

A /32 mask means there are no host bits. The “network” contains only a single IP address. This is often used for loopback interfaces or for routing to a specific single host.

© 2026 Your Website Name. All rights reserved.


Leave a Reply

Your email address will not be published. Required fields are marked *