CIDR & IPv4 Subnet Mask Calculator
Calculate CIDR subnet masks, wildcard masks, usable host IP ranges, and broadcast addresses client-side.
Quick Answer
A CIDR subnet calculator works out the network address, broadcast address, subnet mask and usable host range for any IP range written in CIDR notation, such as 192.168.1.0/24. Enter an IP address and prefix length and this free subnet calculator shows the full breakdown instantly, including private RFC 1918 ranges.
- Network address
- Broadcast address
- Subnet mask
- Usable host range
IP & CIDR Prefix
Subnet Mask & Host Specifications
Private IP Address Ranges (RFC 1918)
Three IP ranges are reserved for private networks — they are not routable on the public internet. Tap any range to copy it.
What Are Private IP Addresses?
A private IP address is an IP address reserved for use inside private networks — your home Wi-Fi, office LAN, or corporate intranet. Defined by RFC 1918, these three private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are not routable on the public internet, which means millions of networks can reuse the same addresses without conflict. Your router uses NAT (Network Address Translation) to map these private IPs to your single public IP when accessing the internet.
Private vs Public IP: What's the Difference?
A public IP address is globally unique and assigned by your ISP — it's how the internet sees you. A private IP address only works within your local network. This is why your laptop might be 192.168.1.5 at home and also 192.168.1.5 at a café — the addresses are reused safely because NAT keeps them separated. Use the subnet calculator above to break any of these ranges into smaller subnets for VLANs or department networks.
How to Use CIDR & IPv4 Subnet Mask Calculator
Follow these 3 simple steps to process your files securely in seconds.
Enter IP Address
Input starting IPv4 address.
Adjust CIDR Slider
Select prefix length from /1 to /32.
View Network Specs
See usable host range, broadcast address, and netmask.
Why Choose Toolenix Client-Side Tools?
Engineered for US & UK professionals who value maximum data privacy, speed, and zero cloud footprints.
Bitwise Precision
Pure client-side bitwise calculation engine.
Usable Host Count
Displays exact allocatable host IP count.
Private Network Safe
Safe for internal RFC1918 private subnets.
In-Depth Guide to CIDR & IPv4 Subnet Mask Calculator
CIDR notation is how networks describe a block of addresses in one short string: 192.168.1.0/24 means "the first 24 bits are the network, the rest are hosts". This calculator turns that notation into the full picture — network address, broadcast address, subnet mask, wildcard mask and the usable host range — so you can plan subnets, write firewall rules and check whether two addresses sit on the same network without doing binary maths by hand.
How the numbers work
An IPv4 address is 32 bits. The prefix length says how many of those bits belong to the network; the rest belong to hosts. A /24 leaves 8 host bits, so 2⁸ = 256 addresses in total. Two of those are reserved — the network address itself and the broadcast address — leaving 254 usable hosts. In general, usable hosts = 2^(32 − n) − 2, where n is the prefix length. The subnet mask is the same idea written as an address: /24 is 255.255.255.0, /16 is 255.255.0.0.
The two exceptions to the minus-two rule
- /31 point-to-point links (RFC 3021): a /31 has only 2 addresses and no broadcast address — both are usable, one per end of the link. Subtracting 2 would wrongly give zero hosts.
- /32 single-host routes: a /32 is one address, used for a single host or loopback. It represents 1 usable host, with no network or broadcast address to reserve.
Private ranges and practical use
The three RFC 1918 private ranges — 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 — are reserved for internal networks and are not routable on the public internet, which is why your home router can hand out 192.168.x.x addresses freely and translate them to one public address with NAT. When you split a network, pick the smallest prefix that fits the hosts you need plus room to grow: a /25 (126 hosts) for a department of 100 leaves almost no headroom, while a /24 for five printers wastes addresses you may need later. Everything here is computed in your browser, so internal subnet plans never leave your machine.
Frequently Asked Questions
Everything you need to know about using this free online tool.