Solved.tools: Free Online Calculators & Tools

We use cookies for analytics and advertising. Learn more about our cookie policy

IP Subnet Calculator

Last updated: 21 August 2026

Reviewed by Gavin Meiring, Lead research and primary author ยท Doctoral Candidate (Corporate Governance) ยท Research and drafting assisted by AI

IPv4 Subnet Calculator

Compute the network, broadcast, host range, subnet mask and wildcard for any IPv4 CIDR block (RFC 4632 / RFC 950). Enter either 192.168.1.0/24 or an IP plus a netmask (255.255.255.0).

Common prefix lengths
Network & broadcast
192.168.1.0 โ†’ 192.168.1.255
Hosts: 192.168.1.1 โ€” 192.168.1.254ย ยทย  usable 254 of 256
IP / Prefix
192.168.1.0/24
Network address
192.168.1.0
Broadcast address
192.168.1.255
Subnet mask
255.255.255.0 (0xffffff00)
Wildcard mask
0.0.0.255 (0x000000ff)
Binary mask
11111111.11111111.11111111.00000000
First usable host
192.168.1.1
Last usable host
192.168.1.254
Total addresses
256
Usable hosts
254
IP class
C
Address type
Private (RFC 1918: 192.168.0.0/16)
Domain presets
Reference: CIDR subnetting per RFC 4632 (2006) and RFC 950 (1985). Host-counting follows RFC 1812 ยง4.2.3.1; /31 point-to-point links follow RFC 3021 (both addresses usable, no broadcast reservation). Test cases 1โ€“10 in this component were verified against hand-computed reference values (see comment header) with a Node script.
Was this helpful?


IP Subnet Calculator

An IP subnet calculator takes an IP address and subnet mask (or CIDR notation) and returns the network address, broadcast address, usable host range, and total number of hosts. It is used by network engineers, system administrators, and infrastructure teams who need to plan, design, or troubleshoot IP address allocations.

How to Use the IP Subnet Calculator

  1. Enter the IP address you want to calculate for (e.g., 192.168.1.0).
  2. Enter the subnet mask in dotted decimal notation (e.g., 255.255.255.0) or CIDR prefix length (e.g., /24).
  3. Click the calculate button.
  4. The tool returns the network address, broadcast address, first usable host, last usable host, and the total number of usable hosts.
  5. Use the results to configure your routers, firewalls, or cloud network settings.

The Formula

Subnetting divides an IP address into a network portion and a host portion using a subnet mask. The subnet mask is a 32-bit number with consecutive 1 bits for the network portion and 0 bits for the host portion.

Key calculations:

  • Network address: IP address AND subnet mask (bitwise AND)
  • Broadcast address: Network address OR (bitwise NOT of subnet mask)
  • First usable host: Network address + 1
  • Last usable host: Broadcast address - 1
  • Number of usable hosts: 2^(host bits) - 2 (subtracting network and broadcast addresses)

For CIDR /24 (subnet mask 255.255.255.0):

  • Host bits = 32 - 24 = 8
  • Total addresses = 2^8 = 256
  • Usable hosts = 256 - 2 = 254

IP address 192.168.1.50 with /24:

  • Network address: 192.168.1.0
  • Broadcast: 192.168.1.255
  • Usable range: 192.168.1.1 to 192.168.1.254

Real-World Example

A network engineer is setting up a new office with 60 workstations. They need to assign a subnet that accommodates at least 60 hosts. They consider their options:

  • /26 provides 2^6 - 2 = 62 usable hosts. This fits, with 2 addresses to spare.
  • /25 provides 2^7 - 2 = 126 usable hosts. More than enough but wastes addresses.

They choose 192.168.10.0/26, which gives the range 192.168.10.1 to 192.168.10.62 for workstations, with 192.168.10.0 as the network address and 192.168.10.63 as the broadcast address.

CIDR and Private Address Ranges

CIDR (Classless Inter-Domain Routing) replaced the older Class A/B/C system in 1993 and allows more flexible subnet sizes. The three private address ranges defined in RFC 1918 are:

  • 10.0.0.0/8: 10.0.0.0 to 10.255.255.255 (16,777,214 hosts)
  • 172.16.0.0/12: 172.16.0.0 to 172.31.255.255 (1,048,574 hosts)
  • 192.168.0.0/16: 192.168.0.0 to 192.168.255.255 (65,534 hosts)

These ranges are not routable on the public internet and are used for private networks behind NAT.

Frequently Asked Questions

What is the difference between a subnet mask and a CIDR prefix? They express the same information in different formats. A subnet mask of 255.255.255.0 is equivalent to the CIDR prefix /24, because 255.255.255.0 in binary is 24 consecutive 1 bits followed by 8 zeros. CIDR notation is more compact and widely used in modern networking.

Why are two addresses reserved in every subnet? The first address in a subnet is the network address, used to identify the subnet itself. The last address is the broadcast address, used to send packets to all hosts in the subnet. Neither can be assigned to a device, reducing the usable host count by two.

What is a /32 subnet? A /32 subnet mask (255.255.255.255) has no host bits, meaning it represents exactly one IP address. It is used for loopback interfaces, static routes to a single host, and in some firewall rules. A /32 has zero usable hosts in the traditional sense; it is the address itself.

How do I subnet a /24 into smaller networks? To divide a /24 into four equal subnets, use /26 (two additional bits borrowed from the host portion, giving 2^2 = 4 subnets, each with 62 usable hosts). To divide it into two, use /25. Each additional bit borrowed from the host portion doubles the number of subnets and halves the number of hosts per subnet.


Understanding the Ip Subnet Calculator

The Ip Subnet Calculator is one of the most-requested tools in the ip subnet category because it condenses a calculation that would otherwise require manual work, a spreadsheet, or a specialist program into a single input-and-output step. whether you are a student, a professional, or a curious learner, the Ip Subnet Calculator is designed to deliver a quick and trustworthy answer without forcing you to install anything or sign up for an account. Behind the scenes, the Ip Subnet Calculator applies well-established mathematical or scientific formulas to the values you provide. the aim of Ip Subnet Calculator is to remove the friction of hand calculation while still showing you the underlying method, so you can confidently interpret the result. Every calculation is performed locally in your browser, which means your inputs never leave your device.

When Should You Use the IP Subnet Calculator?

Use the IP Subnet Calculator whenever you need a quick, reliable answer that fits the tool's scope. Common situations for the IP Subnet Calculator include homework problems, workplace tasks, financial planning, fitness or health tracking, and everyday curiosity. If the IP Subnet Calculator answer will be used for a decision that has legal, medical, or financial consequences, treat the result as a starting point and verify it with a qualified professional. The IP Subnet Calculator is free to use, requires no sign-up, and works on any device with a modern browser. You can run the IP Subnet Calculator as many times as you like, change the inputs, and compare results side by side.

Common Inputs and How to Choose Them

Most IP Subnet Calculator problems revolve around a small set of inputs.

  • the IP address you want to calculate for (e.g., 192.168.1.0) is usually the first value to pin down for the IP Subnet Calculator.
  • the subnet mask in dotted decimal notation (e.g., 255.255.255.0) or CIDR prefix length (e.g., /24) sets the context the IP Subnet Calculator needs for a sensible result.
  • the calculate button refines the IP Subnet Calculator output where the data is available. Identifying the right values is the most important step for the IP Subnet Calculator, because the answer is only as accurate as the data you put in. If a value is unknown, prefer a conservative estimate over a guess when using the IP Subnet Calculator.

How to Interpret the Result

The numerical answer from the IP Subnet Calculator alone is rarely the whole story. Read the units, the precision, and any warnings shown alongside the IP Subnet Calculator result. Understanding the path from inputs to output in the IP Subnet Calculator makes it easier to spot errors, communicate the result to others, and reuse the method for related problems in the future.

Worked Examples

A typical IP Subnet Calculator run takes reasonable inputs, produces a sensible answer, and returns it in a single click. Example: A network engineer is setting up a new office with 60 workstations. They need to assign a subnet that accommodates at least 60 hosts. They consider their options: - /26 provides 2^6 - 2 = 62 usable hosts. This fits, with 2 addresses to spare. - /25 provides 2^7 - 2 = 126 usable hosts. More than enough but wastes addresses. They choose 192.168.10.0/26, which gives the range 192.168.10.1 to 192.168.

Common Mistakes to Avoid

Common mistakes with the IP Subnet Calculator:

  • Mixing up units (for example, entering one unit when the IP Subnet Calculator expects another).
  • Forgetting to convert percentages to decimals or vice versa where the IP Subnet Calculator formula requires it.
  • Using a snapshot value that no longer reflects reality for the IP Subnet Calculator, especially for time-sensitive inputs like prices, rates, or counts.
  • Rounding intermediate steps too early and then carrying the rounded value forward in the IP Subnet Calculator.
  • Treating the IP Subnet Calculator as a substitute for professional advice when the decision is high-stakes.

Limitations and Assumptions

No calculator is a perfect model of reality, and the IP Subnet Calculator is no exception. The IP Subnet Calculator makes simplifying assumptions to keep the math tractable: it ignores rare cases, applies default values where inputs are missing, and uses formulas that suit the typical situation rather than the exotic one. When your situation falls outside the typical case, the IP Subnet Calculator result may drift further from the truth. If you need a more precise answer than the IP Subnet Calculator provides, the next step is usually a specialist, a more detailed reference, or a domain-specific tool.

For more depth on the IP Subnet Calculator topic, consult textbooks, academic papers, or reputable online resources. Reputable sources for the IP Subnet Calculator include government statistics agencies, university extension services, and peer-reviewed journals. Wikipedia is a useful starting point for definitions and formulas behind the IP Subnet Calculator, but always follow the citations to the original source before relying on a number. If you find that you need the same IP Subnet Calculator calculation repeatedly, consider writing down the inputs and the result in a note so you can build a personal record over time.

Quick Reference

  • Free to use: yes, no sign-up required.
  • Privacy: all calculations run locally in your browser.
  • Units: metric and imperial supported where applicable; check the input labels.
  • Speed: instant, no page reload.
  • Mobile friendly: yes, works on phones and tablets.
  • Offline: once the page has loaded, the calculation continues to work without a network connection.

References - General-purpose math references such as Wolfram MathWorld and Khan Academy for foundational formulas.

  • Wikipedia articles on the relevant topic, with citations to primary sources, cover the IP Subnet Calculator background.
  • Peer-reviewed journals and textbooks give the most rigorous treatments of the IP Subnet Calculator method.Tools/tools/calculator) - Percentage Calculator - Unit Converter

Also try these free tools: