DeveloperFormula-based · Runs in your browser

IP Subnet Calculator

Professional tool to calculate network range, broadcast address, and usable host capacity.

Loading calculator…

Saved locally, explained clearly

Drafts, calculations, scenarios, and workflow progress stay in this browser unless you export them.

Opening local database…

Calculation steps

Follow what happened from the selected formula to the displayed answer.

Show substituted values and intermediate working
Calculate current inputs to see the working.
  1. 1

    Formula selected

    The calculator uses the following formula or method.

    Subnet mask and network ranges are derived by bitwise AND/OR operations on the IPv4 address and CIDR prefix.

  2. 2

    Values entered

    Your values are placed into the calculation.

    Enter values to see what is used in this step.

  3. 3

    Result calculated

    The formula or method produces the following result values.

    Results will appear after a successful calculation.

  4. 4

    Answer formatted

    Displayed values are rounded and formatted using each output’s configured precision.

Scenario comparison

Save working scenarios, then select two or three to compare. Formula versions and inputs remain visible.

No scenarios saved for this calculator yet.

Recent calculations

Successful calculations are retained locally according to your privacy settings.

No local history for this calculator yet.

Data and privacy

How it works

Professional tool to calculate network range, broadcast address, and usable host capacity.

Input query strings and outputs

Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.

Input query strings

2
  • ?ip= IP Address

    Text · Optional · Default: 192.168.1.1

  • ?mask= Prefix (/)

    Number · Optional · Default: 24

Outputs

1
  • result Result

    Text · Primary output

result contains the calculator’s complete rendered result area, including its visible result cards, tables, charts, and messages.

Calculate network ranges, broadcast addresses, and usable hosts

Description

The IP Subnet Calculator is a technical utility for network administrators, IT students, and engineers. Subnetting is the process of dividing a network into smaller, manageable segments. By entering an IP Address and a CIDR mask (prefix length), this tool instantly identifies the boundaries of the network, including the network address, the broadcast address, and the specific range of IP addresses available for devices (hosts).

Inputs

  • IP Address: The base address (e.g., 192.168.1.1).
  • CIDR (/): The subnet mask bit-count (e.g., 24 for a standard Class C mask).

Outputs

  • Network Address: The first address in the subnet (identifies the network).
  • Broadcast Address: The last address in the subnet (used for mass communication).
  • Host Range: The specific IPs that can be assigned to computers and devices.
  • Usable Hosts: The total number of unique devices the subnet can support.

Chart

  • N/A: This tool provides direct numeric network results.

“Good to Know”

  • Binary Logic: Networking is based on binary math (0s and 1s). The CIDR mask (like /24) tells the computer how many bits are reserved for the “Network” portion versus the “Host” portion.
  • The “minus 2” Rule: In any subnet, you lose two addresses: one for the Network ID and one for the Broadcast Address. This is why the usable host count is always $2^{(32-CIDR)} - 2$.
  • Private Ranges: Common home networks usually occupy the 192.168.x.x (Class C) or 10.x.x.x (Class A) private IP spaces.

Examples

Example 1: Home Network

  • Input: 192.168.1.1 / 24
  • Output:
    • Network: 192.168.1.0
    • Broadcast: 192.168.1.255
    • Usable Hosts: 254

Example 2: Small Office Subnet

  • Input: 10.0.0.50 / 28
  • Output:
    • Network: 10.0.0.48
    • Usable Hosts: 14
  • Input: 172.16.0.1 / 30
  • Output:
    • Network: 172.16.0.0
    • Usable Hosts: 2
Sources
  • No external reference is listed for this calculator. Its formula and variable definitions are shown above.
Limitations
  • Output is generated locally. Check the required format, character encoding, and compatibility with the system that will use it.