CIDR Calculator
Calculate subnet details from CIDR notation: network address, broadcast, host range, subnet mask, wildcard mask, and more.
Enter an IPv4 address, or include a prefix like 10.0.0.0/8
Enter an IP address and click "Calculate" to see subnet details
About CIDR Calculator
CIDR (Classless Inter-Domain Routing) is a compact notation for representing an IP address together with its network prefix length, such as 192.168.1.0/24. The number after the slash tells you how many leading bits form the network portion of the address; the remaining bits identify individual hosts within that subnet. CIDR replaced the older class-based system and is now the universal language of IP address allocation — used everywhere from home routers to massive cloud VPCs.
This CIDR Calculator takes any IPv4 address and prefix length and instantly returns the full set of values that network engineers and cloud architects need: network address, broadcast address, first and last usable host IPs, subnet mask, wildcard mask, total and usable host counts, IP class, and the binary representation of the subnet mask. An interactive range visualization shows the full address span at a glance. Preset buttons for the most common prefixes (/8, /16, /24, /28, /30, /32) let you jump straight to standard configurations without typing.
Every calculation runs entirely inside your browser. No IP address, subnet plan, or infrastructure detail is ever sent to a server or logged anywhere. Whether you are designing a production VPC, writing firewall rules, or studying for a networking certification, your data stays completely private on your own device. The tool is free with no account required and no rate limits.
Key Features
12 subnet values in one click
A single calculation returns the network address, broadcast address, first and last usable hosts, subnet mask, wildcard mask, total hosts, usable hosts, IP class, binary mask, prefix length, and CIDR notation — everything you normally have to compute separately.
Interactive prefix slider
Drag the range slider or choose from the dropdown to set any prefix from /0 to /32. Preset buttons for /8, /16, /24, /28, /30, and /32 cover the most common subnet sizes without any typing.
IP range visualization
A visual timeline maps the network address, first usable host, last usable host, and broadcast address in sequence, making it easy to confirm a range covers what you need before committing it to a config.
Accepts CIDR and bare IP input
Type an address with the prefix (10.0.0.0/8) or without (defaults to /24). The prefix dropdown and slider stay in sync whichever input style you use.
One-click copy for every field
Hover any result card to reveal a copy button. Grab the subnet mask for a firewall rule, the wildcard mask for an ACL, or the host range for documentation without retyping.
Fully client-side, no data sent
All IP math runs locally in JavaScript with no external libraries. Your network topology and address plan never leave your browser session.
How to Use
Enter IP Address
Type an IPv4 address in the input field, either standalone (e.g., 10.0.0.0) or in CIDR notation (e.g., 10.0.0.0/8). You can also use the slider or dropdown to set the prefix length.
Calculate
Click "Calculate" or press Enter to compute the full subnet details. Use the preset buttons (/8, /16, /24, /28, /30, /32) for quick common configurations.
Review Results
View the results grid showing network address, broadcast address, host range, masks, host counts, IP class, and binary mask. Click any value to copy it to your clipboard.
Example
Entering 192.168.1.0/24 returns all twelve subnet values instantly, including the usable host range and masks needed for firewall rules.
192.168.1.0/24 CIDR Notation: 192.168.1.0/24
Network Address: 192.168.1.0
Broadcast Address: 192.168.1.255
First Usable Host: 192.168.1.1
Last Usable Host: 192.168.1.254
Subnet Mask: 255.255.255.0
Wildcard Mask: 0.0.0.255
Total Hosts: 256
Usable Hosts: 254
IP Class: Class C
Binary Mask: 11111111.11111111.11111111.00000000
Prefix Length: /24 Common Use Cases
- arrow_circle_right
Planning cloud VPC address spaces
When creating a VPC in AWS, GCP, or Azure you must supply a CIDR block for the network and smaller blocks for each subnet. Use this tool to confirm that your chosen ranges do not overlap and that each subnet holds enough host addresses for the instances you plan to deploy.
- arrow_circle_right
Writing firewall rules and ACLs
Cisco IOS access control lists and many firewall platforms require a wildcard mask rather than a subnet mask to match a range. Calculate the wildcard for any prefix here and copy it directly into your rule without manually inverting the bits.
- arrow_circle_right
Diagnosing connectivity issues
When two hosts cannot reach each other, checking whether both IPs fall within the same subnet is one of the first diagnostic steps. Enter one address and its prefix to see the full host range and confirm whether a remote IP is on the same network.
- arrow_circle_right
Studying for networking certifications
CCNA, Network+, and similar exams include subnet calculation questions under time pressure. Use the tool to check your manual calculations and build intuition for how prefix length affects host count and address boundaries.
- arrow_circle_right
Designing small-link point-to-point subnets
A /30 subnet provides exactly two usable host addresses, ideal for router-to-router links where no extra addresses should be allocated. Use the preset button to jump straight to /30 or /31 configurations and verify the host range before provisioning.