About this CIDR Calculator
CIDR notation expresses an IPv4 subnet mask as the number of leading network bits. This calculator converts the prefix into the common values engineers need when planning networks.
Who this calculator is for
- Network engineers and sysadmins planning IPv4 ranges.
- Students learning CIDR and subnet masks.
- Cloud and firewall administrators checking host capacity.
When to use it
- Convert /24, /20, or /30 prefixes into subnet masks.
- Estimate host capacity before assigning a network block.
- Get wildcard masks for firewall or ACL planning.
How to use this calculator
- Enter a CIDR prefix length from 0 to 32.
- Review the subnet mask, wildcard mask, total addresses, and usable host count.
- Use the IP Subnet Calculator if you also need network and broadcast addresses for a specific IP.
Key assumptions
- This calculator covers IPv4 prefix math only.
- Usable hosts use the traditional network/broadcast subtraction model.
- Results are calculated locally in your browser.
Accuracy and testing
Review formula sources, default test cases, assumptions, unit handling, rounding rules, and changelog for this calculator.
How this calculator works
Inputs explained
CIDR prefix
The number after the slash in CIDR notation, such as 24 in 192.168.1.0/24.
Understanding your results
Example scenarios
/24 network
/24 converts to 255.255.255.0 with 256 total addresses and 254 traditional usable hosts.
Key Features
- Instant Calculation
- Private & Secure
- Mobile Optimized
Tips & Best Practices
- Use /30 for traditional point-to-point links with 2 usable hosts.
- Modern /31 point-to-point behavior may differ from traditional host-count math.
- Use the IP Subnet Calculator to calculate a specific network range from an address.