About this tool
Free CIDR calculator: subnets, mask, broadcast and host range from an IP and prefix — instant in the browser.
It is an indispensable tool for network administrators who need to plan and divide IPv4 networks quickly and accurately.
Results include the network address, broadcast, host count and the mask in different formats — all clearly and instantly.
Quick CIDR reference
Usable hosts = 2^(host bits) − 2 (network and broadcast reserved). Use /30 for point-to-point links.
| Term | Meaning |
|---|---|
| /24 | 255.255.255.0 — 254 hosts. |
| /25 | 255.255.255.128 — 126 hosts. |
| /26 | 255.255.255.192 — 62 hosts. |
| /30 | 255.255.255.252 — 2 hosts (WAN). |
How to use
- Enter the base IP address (e.g. 192.168.1.0).
- Choose the subnet mask or CIDR notation (e.g. /24).
- Click to calculate the network details.
- Review the network address, broadcast, host range and total available IPs.
Use cases
- Plan the IP addressing scheme of a corporate network.
- Split a network into smaller subnets (subnetting).
- Find the usable IP range and the broadcast address.
- Convert between decimal mask and CIDR notation.
Frequently asked questions
What is CIDR notation?
CIDR (Classless Inter-Domain Routing) is the notation that indicates network size by the number of mask bits, such as /24, equivalent to the mask 255.255.255.0.
What is the difference between network and broadcast address?
The network address is the first in the range and identifies the subnet; the broadcast is the last and is used to send data to all hosts in the subnet. Neither can be assigned to a device.
How do I calculate how many hosts fit in a subnet?
The number of usable hosts is 2 raised to the number of free bits, minus 2 (network and broadcast). A /24, for example, has 254 usable hosts.
What is subnetting?
Subnetting is the process of dividing a larger network into several smaller subnets, improving organization, security and efficient IP address usage.
Does the calculator work with IPv6?
The calculator is optimized for IPv4. For IPv6 needs we recommend dedicated tools, though CIDR concepts are similar.
How do I calculate a subnet mask?
Enter the base IP and CIDR prefix (e.g. /24). The calculator returns the decimal mask, network address, broadcast and host count — ideal as a subnet mask calculator for projects and documentation.