| CIDR | Subnet mask | Addresses | Usable hosts |
|---|---|---|---|
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /29 | 255.255.255.248 | 8 | 6 |
| /30 | 255.255.255.252 | 4 | 2 |
What is an IP subnet calculator?
An IP subnet calculator takes an IPv4 address and a CIDR prefix, such as 192.168.1.10/24, and works out every property of the network that address belongs to. It returns the network address, the broadcast address, the first and last usable host, the subnet mask in dotted-decimal form, the wildcard mask, and the number of total and usable addresses. Instead of doing binary arithmetic by hand, you paste one value and read the answer. The tool also accepts a dotted subnet mask in place of the prefix, so 192.168.1.10 255.255.255.0 gives the same result as /24.
Subnetting is the practice of splitting one IP address block into smaller networks. The CIDR prefix, the number after the slash, says how many bits of the address identify the network rather than the host. A /24 fixes the first 24 bits, leaving 8 bits for hosts, which is 256 addresses and 254 usable ones once the network and broadcast addresses are set aside. A smaller prefix such as /16 covers far more addresses; a larger one such as /30 leaves room for only two hosts, which is why point-to-point links use it. Getting the prefix wrong is a common source of connectivity bugs, and seeing the ranges spelled out makes the mistake obvious.
A worked example shows what this online IP subnet calculator returns. Type 192.168.10.77/26 and Subnet details fill in as you type: CIDR notation 192.168.10.64/26, network address 192.168.10.64, broadcast address 192.168.10.127, usable host range 192.168.10.65 - 192.168.10.126, subnet mask 255.255.255.192, wildcard mask 0.0.0.63, 64 total addresses and 62 usable hosts. Enter a bare address such as 10.20.30.40 with no prefix and the calculator assumes /24, so check the CIDR notation row before you copy anything.
Network engineers, system administrators, and developers reach for this constantly: planning an address scheme, writing a firewall or routing rule, sizing a cloud VPC subnet, or checking whether two hosts share a network. The calculator handles the edge cases correctly, treating a /31 as a two-host point-to-point link per RFC 3021 and a /32 as a single host. Everything runs client-side, so no address you enter is uploaded or logged, and the tool keeps working offline once the page has loaded. It is free, no signup.
How to use the IP subnet calculator?
Enter an address and prefix
Type an IPv4 address with a CIDR prefix, such as 10.0.0.0/8, in the IP address and prefix field, or click one of the sample subnets. An address with no prefix is treated as /24.
Or use a subnet mask
A dotted mask works too: enter 192.168.1.10 255.255.255.0 and the tool converts it to the matching prefix.
Read the results
Subnet details update as you type: the network and broadcast addresses, the usable host range, the mask, wildcard mask, and address counts, with a binary view of the address and mask below.
Copy what you need
Copy the CIDR notation, the host range, or the mask to drop into router configs, firewall rules, or documentation.
Key Features
Full network breakdown
Network address, broadcast address, first and last usable host, and the total and usable address counts in one view.
CIDR and dotted mask input
Accepts /24 style prefixes or dotted subnet masks like 255.255.255.0, and converts between the two.
Wildcard mask
Shows the inverse mask used in access control lists and OSPF area statements, not just the subnet mask.
Correct edge cases
Handles /31 as a two-host point-to-point link per RFC 3021 and /32 as a single host, where naive tools miscount.
Frequently Asked Questions
Related Tools
Basic Auth Generator
Turn a username and password into an HTTP Basic Authentication header, base64 token, curl commands and URL form, and decode existing Basic auth tokens back.
HTTP Status Codes Reference
Searchable list of every HTTP status code with its meaning, category, and defining RFC. Look up 200, 301, 404, 500, and more.
User Agent Parser
Paste a User-Agent string and read the browser, rendering engine, operating system, device type and CPU it describes, all in your browser.
Credit Card Validator
Check a credit card number against the Luhn checksum and detect its card network. Validates the format only, never contacts a bank.
Comments
0 comments
No comments yet. Be the first to share your thoughts!