Subnet Mask Calculator Online

Convert addresses into useful subnet facts quickly. Review host ranges, masks, and binary values clearly. Download results for planning, audits, and learning tasks today.

Calculator Inputs

Example Data Table

IP Address Prefix Subnet Mask Network Broadcast Usable Hosts
192.168.1.100 /24 255.255.255.0 192.168.1.0 192.168.1.255 254
10.10.5.18 /26 255.255.255.192 10.10.5.0 10.10.5.63 62
172.16.8.200 /20 255.255.240.0 172.16.0.0 172.16.15.255 4094
8.8.8.8 /30 255.255.255.252 8.8.8.8 8.8.8.11 2

Formula Used

Subnet mask: A prefix creates a 32 bit mask. The left side contains one bits. The right side contains host bits.

Network address: Network = IP address AND subnet mask.

Wildcard mask: Wildcard = NOT subnet mask.

Broadcast address: Broadcast = network address OR wildcard mask.

Total addresses: Total = 2 raised to the power of host bits. Host bits = 32 minus prefix.

Usable hosts: For common subnets, usable hosts = total addresses minus 2. A /31 and /32 use special handling.

How to Use This Calculator

  1. Enter a valid IPv4 address.
  2. Select the calculation mode.
  3. Enter the matching value for that mode.
  4. Add planned hosts when you want utilization output.
  5. Press Calculate to show results below the header.
  6. Use CSV or PDF buttons to download the same result.

Subnet Mask Calculator Guide

Why subnet planning matters

Subnetting turns one address block into smaller useful networks. It helps teams control traffic, assign addresses, and document growth. A clear plan also lowers waste. This calculator gives quick values from an address and prefix. It shows the network address, broadcast address, wildcard mask, and usable host range. It also explains the class and scope.

What the calculator checks

The tool accepts an IPv4 address. You can enter a CIDR prefix, a dotted mask, required hosts, desired subnets, or borrowed bits. Each mode supports a common planning question. Prefix mode audits an existing network. Mask mode converts legacy notation. Host mode finds the smallest safe prefix. Subnet mode estimates bits needed for many smaller networks. Borrowed bit mode supports study and design work.

How results help

The network address identifies the start of the subnet. The broadcast address marks the end. First and last host values show the normal assignable range. The wildcard mask helps with access lists and routing rules. Binary output makes each bit boundary easier to inspect. The total address count helps compare capacity. The usable host count helps avoid undersized designs.

Planning tips

Always reserve room for growth. Small office networks often need extra space for printers, cameras, phones, and guest devices. Larger networks may need separate ranges for departments or sites. Avoid making one huge flat network. Smaller subnets can reduce broadcast noise. They can also make troubleshooting easier.

Accuracy notes

IPv4 subnet math is exact when the address and prefix are valid. A /31 network is commonly used for point to point links. A /32 network identifies one host route. Older rules subtracted network and broadcast addresses from every subnet. Modern routing supports more precise use cases. This calculator displays practical values and notes these edge cases.

Best use

Use the tool before creating address plans, firewall rules, router settings, or documentation. Copy the output into tickets or change records. Download exports when you need quick records. Recheck values after any prefix change. One bit can double or halve a network. When training new staff, compare several examples. Ask them to predict each range first. Then confirm each answer with exported evidence and notes during review.

FAQs

1. What is a subnet mask?

A subnet mask separates the network part from the host part of an IPv4 address. It helps devices decide whether traffic stays local or goes through a router.

2. What does CIDR prefix mean?

A CIDR prefix shows how many leading bits belong to the network. For example, /24 means the first 24 bits are network bits.

3. Why are two addresses often removed?

Most IPv4 subnets reserve one address for the network and one for broadcast. That is why common usable host counts subtract two addresses.

4. What is a wildcard mask?

A wildcard mask is the reverse of the subnet mask. It is often used in routing rules, access lists, and network matching statements.

5. Can I calculate a subnet from required hosts?

Yes. Select required hosts mode. Enter the needed host count. The calculator finds the smallest common prefix that can support that need.

6. What is a /31 subnet?

A /31 subnet has two addresses. It is commonly used on point to point links where a normal network and broadcast address are not needed.

7. What is a /32 subnet?

A /32 subnet identifies one exact IPv4 address. It is often used for host routes, loopback interfaces, and precise firewall rules.

8. Why should I download the result?

Downloads help keep records for tickets, audits, lessons, and network change notes. CSV is useful for sheets. PDF is useful for sharing.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.