Home / IPv4 Subnet Calculator

IPv4 Subnet Calculator

Interpret an IPv4 address and CIDR prefix to derive network, broadcast, mask and address-range information.

How to use this calculator

  1. Enter a valid dotted-decimal IPv4 address and an integer CIDR prefix from 0 through 32.
  2. Check the labels and units before using a result outside this page.
  3. Change one input at a time if you want to compare scenarios.

Formula and method

Network = address AND subnet mask; broadcast = network OR inverse mask

  • Network = address AND subnet mask; broadcast = network OR inverse mask
  • /31 is commonly used for point-to-point links and /32 represents one address; routing and allocation policies are context-dependent.

Worked examples

Worked example

192.168.1.23/24 produces network 192.168.1.0 and broadcast 192.168.1.255.

A /24 contains 256 total IPv4 addresses and commonly 254 host addresses under traditional subnet conventions.

A /24 contains 256 total IPv4 addresses and commonly 254 host addresses under traditional subnet conventions.

Understanding the result

Interpret an IPv4 address and CIDR prefix to derive network, broadcast, mask and address-range information.

/31 is commonly used for point-to-point links and /32 represents one address; routing and allocation policies are context-dependent.

Important notes

/31 is commonly used for point-to-point links and /32 represents one address; routing and allocation policies are context-dependent.

Displayed outputs are rounded for readability; preserve full precision when continuing a calculation.

Frequently asked questions

What does this ipv4 subnet calculator calculator show?

Interpret an IPv4 address and CIDR prefix to derive network, broadcast, mask and address-range information.

Which inputs should I check first?

Enter a valid dotted-decimal IPv4 address and an integer CIDR prefix from 0 through 32.

Can the result be used as a final professional specification?

/31 is commonly used for point-to-point links and /32 represents one address; routing and allocation policies are context-dependent.

Related calculators

  • Image Pixel Density Calculator — Estimate pixels per inch from image dimensions and a physical diagonal measurement.
  • Electricity Cost Calculator — Estimate electricity use in kilowatt-hours and energy cost from appliance wattage, usage time, and tariff.
  • Speed Distance Time Calculator — Calculate speed from distance and elapsed time.
  • Data Compression Ratio Calculator — Compare original and compressed data sizes to calculate a compression ratio and percentage of space saved.
  • Download Time Calculator — Estimate ideal file download time from file size and connection speed using decimal megabytes and megabits per second.
  • Fuel Efficiency Calculator — Calculate fuel consumption in litres per 100 kilometres, kilometres per litre, and optional trip fuel cost.

Related explanations

Learn the method behind the number or compare the terminology before using the calculator.

  • How to Calculate a Z-Score — Learn how a z-score shows how far a value is from the mean in standard-deviation units.
  • How to Calculate Salary from an Hourly Rate — Convert hourly pay into weekly, monthly, and annual estimates and understand the assumptions behind the result.
  • Percent Difference — Understand percent difference, when it is appropriate, and how it differs from percentage change and percent error.

This page provides a calculation tool plus explanatory information so you can understand what the result means and when the underlying method may not fit your situation.

Explore more calculation resources

Keep exploring related tools, explanations, conversions, and topic pages in The Calc Studio. These links are selected around the subject of this page so you can move to the next useful calculation without returning to search.

Related calculators

  • Image Pixel Density Calculator — Estimate pixels per inch from image dimensions and a physical diagonal measurement.
  • Electricity Cost Calculator — Estimate electricity use in kilowatt-hours and energy cost from appliance wattage, usage time, and tariff.
  • Speed Distance Time Calculator — Calculate speed from distance and elapsed time.
  • Download Time Calculator — Estimate ideal file download time from file size and connection speed using decimal megabytes and megabits per second.
  • Data Compression Ratio Calculator — Compare original and compressed data sizes to calculate a compression ratio and percentage of space saved.
  • Reading Time Calculator — Estimate reading time from a word count and a chosen reading pace, useful for articles, study notes, and drafts.
Browse by categoryEveryday ToolsBusiness CalculatorsDate & Time CalculatorsFinancial CalculatorsHealth & Fitness CalculatorsMath Calculators

Task collections

  • Business & Work Calculators — Free calculators for business and work, including ROI, markup, break-even, sales commission, salary, overtime, VAT, depreciation, profit margin, and practical percentage calculations.
  • Calculators for Students — Free calculators for students, including grades, GPA, percentages, fractions, interquartile range, averages, probability, statistics, and scientific math.
  • Everyday Money Calculators — Free money calculators for salaries, overtime, discounts, VAT, sales tax, unit prices, rent splits, fuel costs, inflation, net worth, and other everyday calculations.
  • Home Project Calculators — Free home and construction calculators for square footage, roofing, stairs, tile, mulch, gravel, concrete, drywall, decking, and material estimates.

Related guides

  • How to Calculate a Z-Score — Learn how a z-score shows how far a value is from the mean in standard-deviation units.
  • How to Calculate Age from a Date of Birth — Learn how exact age is calculated using years, months, and days rather than a rough year difference.
  • How to Calculate Salary from an Hourly Rate — Convert hourly pay into weekly, monthly, and annual estimates and understand the assumptions behind the result.

Related terms

  • Markup — Learn what markup means, how markup is calculated from cost and selling price, and how it differs from margin.
  • Percent Difference — Understand percent difference, when it is appropriate, and how it differs from percentage change and percent error.
  • Budget — Learn what a budget is and how simple income-minus-expenses calculations can support planning.

Useful conversions

  • °C to °F — Convert Celsius to Fahrenheit with a free temperature converter, formula, examples, and common temperatures.
  • °F to °C — Convert Fahrenheit to Celsius with a free temperature converter, formula, examples, and common temperatures.
  • cm to feet — Convert centimeters to feet with a free cm to feet converter, formula, examples, and a quick reference table.

Browse all calculators · Read all guides · Open the glossary · See all converters · Browse collections

Want to keep learning? Move from a calculator to its formula guide, glossary definition, unit conversion, or task collection to compare related methods and tools.

Optional Premium: save calculation history across visits and remove promotional blocks. See Premium.