Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
page
Dedicated Subnet Calculator

Subnet Calculator

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

~ Calculators

Subnet Calculator: IP Addressing, Subnet Masks, and Network Class Made Simple

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.

What This Subnet Calculator Shows You

  • Network Class (A / B / C) — automatically identifies which class your IP address falls into, along with the First Octet Range that defines that class.
  • Hex IP Address — your IP address converted to hexadecimal notation, useful for low-level networking and firmware work.
  • Subnet Mask and Wildcard Mask — the mask that defines your subnet, plus its inverse (wildcard), which is commonly needed for access control lists (ACLs) and routing configurations.
  • Subnet Bits and Mask Bits — shows exactly how many bits are being borrowed for subnetting and the total mask length in CIDR notation.
  • Maximum Subnets and Hosts per Subnet — instantly calculates how many usable subnets and usable host addresses your configuration supports.
  • Host Address Range — the full range of usable IP addresses within your subnet, from the first to the last assignable host.
  • Subnet ID — the network address itself, identifying the subnet as a whole (the address that can’t be assigned to any individual device).
  • Broadcast Address — the reserved address at the top of the subnet range used to send data to every device on that subnet at once.
  • Subnet Bitmap — a visual bit-by-bit breakdown showing exactly which bits belong to the class, the network portion, and the host portion, making abstract subnetting math easy to actually see.

How to Use the Subnet Calculator

  1. Enter your IP address in standard dotted-decimal format (e.g. 192.168.0.1).
  2. Check the detected Network Class. The calculator identifies whether your address falls in Class A, B, or C based on its first octet, and shows that class’s valid range.
  3. Adjust your subnet bits to define how the address space is divided between network and host portions.
  4. Review the full results panel — subnet mask, wildcard mask, maximum subnets, hosts per subnet, host address range, subnet ID, and broadcast address all update together.
  5. Use the Subnet Bitmap to visually confirm exactly which bits are class bits, network bits, and host bits for your configuration.

A Short History of IP Addressing and Subnetting

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.

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

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.

Frequently Asked Questions

What’s the difference between a subnet mask and a wildcard mask?

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.

Why does the calculator show a Network Class if CIDR made classes obsolete?

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.

What is a broadcast address used for?

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.

How many hosts can I fit in my subnet?

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.

What is the Subnet Bitmap showing me?

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.