AZCalculate logo

IT & Digital

CIDR Calculator

Use this cidr calculator to calculate convert cidr prefix to address count, usable hosts, and block size.

cidrsubnetnetwork

Calculator

Calculate instantly

Calculator Inputs

Choose what you want to calculate, enter realistic values, adjust units where shown, and use the scenario section for repeated-use planning.

Input and Formula Breakdown

This calculator applies the formula Block size = 2^(32 - prefix). Enter each value with the matching unit, and AZCalculate updates the result instantly.

CIDR prefix
24
Reserved addresses
2
Block size
256
Usable hosts
254

Scenario and Comparison

Current

256

Projected

3,072

Adjusted

281.6

Visual Comparison

Current result256
Projected usage3,072
Comparison scenario281.6

Sign in to save this calculation and access it later.

Formula Explanation

Block size = 2^(32 - prefix)

This calculator applies the formula Block size = 2^(32 - prefix). Enter each value with the matching unit, and AZCalculate updates the result instantly.

Use Cases

  • Plan subnets
  • Compare CIDR blocks
  • Estimate hosts

Step-by-Step Explanation

  1. Step 1Enter the known values in the calculator fields.
  2. Step 2Keep the units consistent with the labels shown beside each input.
  3. Step 3Apply the formula: Block size = 2^(32 - prefix).
  4. Step 4Review the primary result and supporting values.

Example calculation

Example cidr calculator

Given

  • CIDR prefix: 24
  • Reserved addresses: 2

Steps

  • Use the values shown above.
  • Apply Block size = 2^(32 - prefix).

Result

The calculator above shows the computed answer instantly from these example values.

Calculator guide

About this CIDR Calculator

Convert CIDR prefix to address count, usable hosts, and block size. This page includes an interactive calculator, concise formula notes, worked examples, FAQs, related calculators, and practical guidance you can revisit whenever needed.

Found something that does not look right?

We work hard to keep every calculator accurate and useful. If you notice a calculation error, missing option, or unclear explanation, please let us know so we can review and correct it promptly.

Report an Issue

Calculator usage

See how many people are using this calculator.

Total visits today

0

Live users now

0

Total saved calculations

0

Most active date

2026-06-05

FAQ

CIDR Calculator FAQs

How does the cidr calculator work?+

It uses Block size = 2^(32 - prefix) and calculates the result from the values you enter.

Can I copy or print the result?+

Yes. AZCalculate calculator pages include copy, share, and print actions.

Related tools

Related Calculators

Calculate subnet addresses and usable hosts from a CIDR prefix.

Estimate file size from bitrate and duration.

Estimate Base64 encoded size from original file size.

Estimate upload time from file size and upload speed.

Estimate total cost, cost per unit, markup-ready price, and comparison scenarios for website hosting cost.

Calculate required bandwidth from users, data per user, and time window.