IP & Subnet Calculator
Enter an IPv4 address with CIDR notation (or a dotted subnet mask) to instantly see the network range, broadcast address, usable host range and address classification.
Network address
192.168.10.0
Broadcast address
192.168.10.63
First usable host
192.168.10.1
Last usable host
192.168.10.62
Subnet mask
255.255.255.192
Wildcard mask
0.0.0.63
Total addresses
64
Usable hosts
62
Address type
Private (RFC 1918)
All calculations happen locally in your browser using plain arithmetic. No address you enter is transmitted or logged anywhere.
What this tool does
This calculator takes any IPv4 address and a CIDR prefix (or subnet mask) and derives every value you need to describe that network: the network address, broadcast address, the first and last usable host, the total number of addresses in the block, and how many of those are actually assignable to hosts.
Why security professionals use it
Subnetting decisions show up constantly in security work: scoping a vulnerability scan to a specific range, writing firewall rules that match an exact network, sizing a segment for micro-segmentation, or quickly checking whether an IP seen in a log falls inside a trusted internal range. Doing this math by hand is slow and error-prone, especially under time pressure during an incident.
How it works
The tool converts the IPv4 address and mask into 32-bit integers, applies bitwise AND/OR/NOT operations to derive the network, broadcast and wildcard values, then converts the results back into dotted-decimal form. It also checks the address against well-known private, loopback, link-local and multicast ranges to classify it.
Step by step
- 1Enter an IPv4 address, optionally with /CIDR appended (e.g. 10.0.5.10/24).
- 2If you didn't include a CIDR suffix, enter the prefix length or a dotted subnet mask in the second field.
- 3Review the network, broadcast, usable range and host counts generated instantly.
- 4Copy the summary to paste into documentation, tickets or firewall rule notes.
Practical examples
192.168.10.42/26 -- a /26 splits a /24 into four blocks of 64 addresses each. This host falls in network 192.168.10.0, with usable hosts 192.168.10.1 through 192.168.10.62 and broadcast 192.168.10.63.
10.0.0.0/8 -- a huge private range (RFC 1918) commonly used as an internal corporate address space, with over 16 million total addresses.
203.0.113.5/31 -- a point-to-point link. /31 has no network or broadcast address; both addresses in the pair are usable, per RFC 3021.
Common mistakes
- Forgetting that /31 and /32 don't follow the usual 'subtract 2 for network and broadcast' rule.
- Confusing the subnet mask with the wildcard mask when writing ACLs (many firewall syntaxes want the wildcard, i.e. the mask's bitwise complement).
- Assuming a private IP is automatically 'safe' -- private ranges can still be misconfigured, exposed via NAT, or the source of internal lateral movement.
- Mixing up prefix length with the actual number of usable hosts, especially for very small subnets like /30.
Security considerations
Subnet calculations are informational and don't validate whether a range is actually reachable, allocated, or in active use. When scoping scans or firewall changes, always cross-check calculated ranges against your organization's IPAM records before acting on them, and be cautious about scanning ranges you don't own or have authorization to test.
Frequently asked questions
What's the difference between a subnet mask and a wildcard mask?
A subnet mask marks network bits with 1s and host bits with 0s (e.g. 255.255.255.192). A wildcard mask is its bitwise inverse, used in ACLs and some routing protocols to specify which bits must match (e.g. 0.0.0.63).
Why do /31 and /32 not have a broadcast address?
A /32 identifies a single host, so there's no room for a separate network or broadcast address. A /31, per RFC 3021, is reserved for point-to-point links and treats both addresses in the pair as usable rather than reserving one for broadcast.
How do I know if an address is private or public?
Private ranges are defined by RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Anything outside those (and outside loopback, link-local and multicast ranges) is treated as publicly routable, though actual routability also depends on ISP and registry allocation.
Can I enter a subnet mask instead of a CIDR prefix?
Yes. The second field accepts either a plain prefix length like 24 or a dotted mask like 255.255.255.0 -- both produce identical results.
Does this tool check if the network is actually in use?
No. It only performs the arithmetic. It has no visibility into DNS, routing tables, or your network's real inventory.
Related tools
DNS Record Lookup
Query A, AAAA, MX, TXT, NS, CNAME and SPF/DMARC records over DNS-over-HTTPS.
Common Ports Reference
Searchable list of common TCP/UDP ports with the service behind each and its risk.
MAC Address Analyzer
Normalise MAC formats and read the OUI, multicast bit and randomised-address flag.