CIDR Calculator - Calculate Subnet, Range & IP Details

Instantly calculate IP address range, subnet mask, wildcard mask, network address, and broadcast address from any IP/CIDR notation. A complete CIDR tool.

CIDR Input

Enter an IPv4 address along with its CIDR mask.

How to Use This Calculator

Type a complete IPv4 address in standard dotted decimal format followed by its CIDR mask (e.g., 192.168.1.1/24). Click Calculate to decode the network details: subnet mask, wildcard mask, network/broadcast addresses, host range, and totals. Results populate instantly and can be refreshed as soon as you change the input.

  1. Enter the IP address and CIDR mask (the form matches RFC 4632 formatting).
  2. Validate the IPv4 segments (each octet must stay between 0 and 255) and ensure the mask is between 0 and 32.
  3. Press Calculate or rely on the debounced input listener for fast updates.
  4. Review the highlighted network address and detailed results below.

Methodology

The calculator converts the supplied IP address into a 32-bit integer, applies the mask to derive the network and broadcast addresses using bitwise operations, and computes host totals as 2^(32 - mask). The wildcard mask is the inverse of the subnet mask, and usable host space subtracts the reserved network and broadcast addresses (except for /31 and /32 networks per RFC 3021 recommendations).

Decimal values display with consistent US number formatting to avoid NaN/Infinity artifacts, and any invalid input triggers a friendly error message instead.

  • Binary breakdown reveals how each octet contributes to the subnet, network, and broadcast representations.
  • The CSV download mirror the main results so you can archive or share the decoded ranges.
  • All logic runs in vanilla JavaScript without third-party math libraries, preserving deterministic rounding.
Note: Figures reflect standard IPv4 math; consult RFC 4632 or a network engineer for production planning or IPv6 conversions.

Full original guide (expanded)

The legacy CIDR page bundled navigation lists, related tools, and support links that remain valuable. The sections below preserve that full context for reference.

Categories

  • Construction
  • Construction & DIY
  • Engineering
  • Finance
  • General
  • Health & Fitness
  • Lifestyle & Everyday
  • Math
  • Math & Conversions
  • Science

Popular Tools

  • Mortgage Calculator
  • Percentage Calculator
  • BMI Calculator
  • Auto Loan Calculator
  • House Affordability

Support

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service
  • Site Map
Formulas
Network Address
Network = IP Address (long) AND Subnet Mask (long)
Wildcard Mask
Wildcard = NOT Subnet Mask
Broadcast Address
Broadcast = Network Address OR Wildcard Mask
Total Hosts
Total Hosts = 2^(32 - CIDR Mask)
Usable Hosts
Usable Hosts = Total Hosts - 2 (zero when mask ≥ 31)
Citations

Home — calcdomain.com · Accessed 2026-01-19
https://calcdomain.com/

Lifestyle Everyday — calcdomain.com · Accessed 2026-01-19
https://calcdomain.com/lifestyle-everyday

Miscellaneous — calcdomain.com · Accessed 2026-01-19
https://calcdomain.com/subcategories/miscellaneous

RFC 4632 — datatracker.ietf.org · Accessed 2026-01-19
https://datatracker.ietf.org/doc/html/rfc4632

Subnet Calculator (Advanced) — calcdomain.com · Accessed 2026-01-19
https://calcdomain.com/subnet-calculator

Changelog

Version: 0.1.0-draft

Last code update: 2026-01-19

  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0