Technology & IT

CIDR Calculator

Calculate IPv4 host capacity and subnet mask from a CIDR prefix.

Free toolGlobal unitsInstant calculation

Calculator

Result

—
Formula: Total IPv4 addresses = 2^(32 − prefix); traditional usable hosts exclude network and broadcast for prefixes /0 through /30.

About this calculator

Calculate IPv4 host capacity and subnet mask from a CIDR prefix.

Enter valid values, then select Calculate. The calculation runs in your browser and does not require an account.

How to use this calculator

What to enter

Enter or select the following as requested: CIDR prefix length. Follow the units, valid ranges, examples, and options displayed beside each field.

What the result means

The output is the transformed value, generated snippet, lookup result, or technical measurement produced from the supplied input and selected options. Review the output before using it, and verify compatibility with the target system or format.

When to use it

Use this as a developer or technical utility for encoding, conversion, validation, calculation, or reference. Do not treat a successful transformation as proof that a system is secure or that generated code is production-ready.