Other
CIDR Calculator
Find host count and subnet mask from a CIDR prefix.
Did this calculator solve your problem today?
✓ Thank you for your feedback!
Report issue to loopingon.com
Sponsored
A CIDR prefix defines how many addresses a subnet holds.
The math behind it
A /n prefix gives 2^(32-n) addresses; subtract 2 (network and broadcast) for usable hosts.
Worked Example
/24 gives 254 usable hosts and mask 255.255.255.0.
Frequently Asked Questions
Why subtract 2?
The first address is the network ID and the last is the broadcast address.
Advertisement