Subnet Calculator
192 - 223
C0.A8.00.01
0.0.0.255
192.168.0.1 - 192.168.0.254
192.168.0.0
192.168.0.255
Class bits
Network bits
Host bits
Subnetting trips up even experienced network admins when it’s done by hand. This free Subnet Calculator takes any IPv4 address and instantly works out its network class, subnet mask, wildcard mask, host range, broadcast address, and more — all shown together with a visual breakdown of exactly which bits do what. The IPv4 addressing scheme still used across most of the internet today was formally defined in 1981 under RFC 791, as part of the early architecture of the ARPANET’s successor — the network that would eventually become the modern internet. The original design split addresses into classes (A, B, and C, plus D and E for special uses), each reserving a fixed number of bits for the network portion and the rest for hosts. It was simple and easy to reason about, but rigid: a Class B network, for example, always provided room for over 65,000 hosts, whether an organization needed 500 or 50,000. As the internet grew explosively through the late 1980s and early 1990s, that rigidity became a real problem — address space was being handed out in huge, wasteful blocks, and the internet was on track to run out of available addresses far sooner than expected. The fix came in 1993 with CIDR (Classless Inter-Domain Routing), defined in RFC 1518 and RFC 1519, which let network administrators define subnet boundaries at any bit length rather than being locked into fixed class sizes. CIDR is why modern network masks are usually written in the flexible “/24” style rather than assumed purely from an address’s class — though understanding the original classful system, which this calculator shows clearly, is still the foundation nearly every networking course and certification builds on. A common point of confusion: a /24 subnet contains 256 total addresses (2&sup8;), but only 254 are usable. Every subnet reserves exactly two addresses that can’t be assigned to a device — the Subnet ID (the lowest address, identifying the network itself) and the Broadcast Address (the highest address, used to reach every host on that subnet at once). This calculator handles that subtraction automatically in its Hosts per Subnet and Host Address Range results, so you always see the real, usable count rather than the raw address total. A subnet mask marks the network portion of an address with 1s and the host portion with 0s. A wildcard mask is its exact inverse, commonly used in Cisco access control lists and routing configurations where the logic is reversed. Classful addressing (A, B, C) is still the foundational concept nearly all subnetting is taught from, and many real-world defaults and conventions still trace back to it. Showing the class alongside modern CIDR notation makes the underlying logic easier to understand, not just the final numbers. The broadcast address is the highest address in a subnet, reserved for sending data to every device on that subnet simultaneously, rather than to one specific host. The calculator’s “Hosts per Subnet” result gives you the exact usable count automatically, based on your subnet bits — already accounting for the reserved Subnet ID and Broadcast Address. It’s a visual, bit-by-bit breakdown of your full address, color-coded to show which bits belong to the class definition, which bits define the network/subnet, and which bits are left for host addressing. Whether you’re studying for a networking certification, planning a real-world IP addressing scheme, or just need to double-check a subnet mask, this Subnet Calculator turns the math into an instant, visual result — class, mask, wildcard, host range, and broadcast address, all in one place.Subnet Calculator: IP Addressing, Subnet Masks, and Network Class Made Simple
What This Subnet Calculator Shows You
How to Use the Subnet Calculator
A Short History of IP Addressing and Subnetting
IPv4 Network Classes
Class
First octet range
Default mask
Typical use
A
1 – 126
255.0.0.0 (/8)
Very large networks (millions of hosts)
B
128 – 191
255.255.0.0 (/16)
Medium-to-large organizations
C
192 – 223
255.255.255.0 (/24)
Small networks, typical home/office LANs
D
224 – 239
—
Multicast addressing
E
240 – 255
—
Reserved / experimental
Common Subnet Masks and Host Counts
CIDR
Subnet mask
Wildcard mask
Usable hosts
/24
255.255.255.0
0.0.0.255
254
/25
255.255.255.128
0.0.0.127
126
/26
255.255.255.192
0.0.0.63
62
/27
255.255.255.224
0.0.0.31
30
/28
255.255.255.240
0.0.0.15
14
/29
255.255.255.248
0.0.0.7
6
/30
255.255.255.252
0.0.0.3
2 (point-to-point links)
Why “Usable Hosts” Is Always Two Less Than Total Addresses
Frequently Asked Questions
What’s the difference between a subnet mask and a wildcard mask?
Why does the calculator show a Network Class if CIDR made classes obsolete?
What is a broadcast address used for?
How many hosts can I fit in my subnet?
What is the Subnet Bitmap showing me?