Subnet Calculator
Enter an IPv4 address with a CIDR prefix or a subnet mask to see the network address, broadcast address, usable host range, wildcard mask, IP class and binary form — all calculated instantly in your browser.
Calculate a subnet
Results
How to use
- Type an IPv4 address, for example
192.168.1.10. - Pick a CIDR prefix (for example
/24) or type a subnet mask — the two stay in sync. - Press Calculate or just type; the results table updates instantly.
- Use Copy results to get a plain-text summary for your notes.
What CIDR notation means
An IPv4 address has 32 bits. CIDR notation adds a slash and a number after the address, such as 192.168.1.0/24. The number — the prefix length — says how many of the 32 bits are the network portion. The remaining bits are the host portion. A /24 leaves 8 host bits, giving 256 total addresses; a /16 leaves 16 host bits, giving 65,536 addresses; a /30 leaves 2 host bits, giving 4 addresses, commonly used for point-to-point links.
Why subnetting matters
Subnetting splits a large network into smaller, separate groups. This limits broadcast traffic to each segment, improves security by isolating groups of devices, and lets routers handle smaller routing tables. It also prevents address waste: instead of giving a small office a full /24 (256 addresses), you can assign a /28 (16 addresses) and use the rest elsewhere.
Frequently Asked Questions (FAQ)
What does the Subnet Calculator do?
It takes an IPv4 address and a CIDR prefix or subnet mask and computes the network address, broadcast address, usable host range, total addresses, wildcard mask and binary representations.
What is CIDR notation?
CIDR notation writes a network as an IP address followed by a slash and a number of bits, such as 192.168.1.0/24. The number tells how many of the 32 address bits are the network portion.
How are usable hosts counted?
In a normal subnet the network address and the broadcast address cannot be used by devices, so usable hosts equal total addresses minus 2. The /31 and /32 cases are special: /31 gives 2 usable addresses for point-to-point links, and /32 is a single host route.
Does it tell me if an address is private?
Yes. The tool reports whether the address is private (10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16) or public, and shows the IP class A through E.
Is my data sent anywhere?
No. All calculations run in your browser and nothing leaves your device.