Subnet Calculator
Network, broadcast, host range and mask details.
How to use
- 1 Enter an IPv4 address, optionally with a /prefix (CIDR).
- 2 If you did not include a prefix, type a mask or prefix in the second field.
- 3 Read the network, broadcast, host range and mask details.
- 4 Copy the summary into your notes or ticket.
About Subnet Calculator
The Subnet Calculator takes an IPv4 address and a subnet definition and works out everything you need to plan or document a network.
Give it CIDR notation such as 192.168.1.10/24, or type an address and supply the mask separately — either as a prefix length like 24 or a dotted-decimal mask like 255.255.255.0 — and it returns the network (base) address, the broadcast address, the first and last usable host, the count of usable hosts, the total address block size, the wildcard (inverse) mask and the mask in binary.
It also classifies the address: the legacy class (A through E), and whether it falls inside the RFC 1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16).
Edge cases are handled correctly, including /31 point-to-point links where both addresses are usable and /32 single-host routes, so the host counts stay accurate rather than silently subtracting two.
This is the everyday tool for sizing VLANs, carving a block into smaller subnets, sanity-checking a firewall rule or a router config, and answering "how many hosts fit in a /26?" without reaching for a whiteboard.
Because all of the arithmetic is plain bit manipulation, it runs entirely in your browser with nothing sent to a server, so it is fast, private and works offline — useful when you are deep in a data centre with no connection.
FAQ
Can I enter the mask as 255.255.255.0 instead of /24?
Yes. The second field accepts either a prefix length (like 24 or /24) or a dotted-decimal mask such as 255.255.255.0. Non-contiguous masks are rejected.
Why does a /31 show two usable hosts?
A /31 is a point-to-point link (RFC 3021) where both addresses are usable, and a /32 is a single host. The calculator accounts for these rather than always subtracting two.
Does it support IPv6?
Not currently — this tool focuses on IPv4 subnetting. Enter standard dotted-decimal IPv4 addresses.