CIDR Calculator
Enter an IP address and prefix length or subnet mask to instantly calculate subnet details.
Last updated: May 29, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is CIDR Calculator?
CIDR Calculator computes all subnet information from a CIDR (Classless Inter-Domain Routing) notation. Given an IPv4 address and either a prefix length (/24) or dotted subnet mask (255.255.255.0), it calculates the network address, broadcast address, first and last usable host, number of usable hosts, wildcard mask, and binary representations. Supports all prefix lengths from /0 to /32.
How to Use CIDR Calculator
Enter an IPv4 address.
Enter a prefix length (e.g. 24) or subnet mask (e.g. 255.255.255.0).
Results appear instantly.
Common Use Cases
- Planning IP address allocation for a network segment.
- Verifying subnet boundaries when configuring firewalls or routers.
- Learning subnetting and CIDR notation for networking certifications.
- Checking how many hosts fit in a given subnet before provisioning.
Example Input and Output
CIDR /24 calculation for 192.168.1.0.
IP: 192.168.1.0
Prefix: /24Network: 192.168.1.0
Broadcast: 192.168.1.255
Hosts: 192.168.1.1 – 192.168.1.254
Usable: 254Privacy
All calculations run locally in the browser.

