Free technology and media calculator

CIDR Calculator

Calculate the number of usable IPv4 host addresses for a CIDR prefix length.

Open the interactive cidr calculator

Free tools and planners

Formula

For prefixes /0 through /30, usable hosts = 2^(32−prefix)−2; /31 has 2 addresses and /32 has 1.

Worked example

A /24 network has 254 traditionally usable host addresses.

Assumptions and limitations

This reports address counts only; it does not validate an IP address or determine a network range.

Keep moving with a practical next step

Browse free calculators, planners, and templates, or explore the blog and business directory. No subscription is required.