What Is an IPv4 Class Calculator?
An IPv4 class calculator identifies whether an address belongs to historical Class A, B, C, D, or E by examining its first octet and leading bits. For Class A, B, and C addresses, it also shows the old default subnet mask, classful network boundary, broadcast address, host capacity, and binary form.
Address classes were used before Classless Inter-Domain Routing became standard. Modern networks use CIDR prefixes such as /20 or /27, so the class does not determine a current subnet by itself. The ipdnslookup result clearly separates historical class information from modern address properties.
How to Use the IPv4 Class Calculator
- Enter one IPv4 address, such as
172.16.10.5. - Select Identify IPv4 Class.
- Read the historical class shown as the primary result.
- Review the first octet and leading class bits.
- For Class A, B, or C, inspect the historical default mask and classful boundaries.
- Use the current address type field to identify private, public, loopback, multicast, or another special purpose.
This calculator accepts IPv4 only. Use the CIDR Notation Calculator for actual IPv4 or IPv6 prefix boundaries.
IPv4 Class Ranges
- Class A: First octet 0 through 127, leading bit
0, historical default/8. - Class B: First octet 128 through 191, leading bits
10, historical default/16. - Class C: First octet 192 through 223, leading bits
110, historical default/24. - Class D: First octet 224 through 239, leading bits
1110, used for multicast. - Class E: First octet 240 through 255, leading bits
1111, reserved or experimental.
These broad ranges include special-purpose blocks. For example, 127.0.0.0/8 falls numerically inside Class A but is reserved for loopback. A class label alone never proves that an address is publicly routable.
IPv4 Class Calculation Example
Enter 172.16.10.5. Its first octet is 172, which lies from 128 through 191, so the historical result is Class B. The first two binary bits are 10. Under classful rules, the default prefix was /16 with mask 255.255.0.0.
The historical classful network is 172.16.0.0/16, its broadcast address is 172.16.255.255, and it contains 65,536 total addresses. Traditional host calculation subtracts the network and broadcast boundaries, producing 65,534 usable host positions. The address is also private because it falls inside 172.16.0.0/12. Private status and Class B are separate facts.
How IPv4 Classes Are Identified
The first high-order bits set the historical class. A zero first bit identifies Class A. Binary prefix 10 identifies Class B, while 110 identifies Class C. Prefixes 1110 and 1111 identify Classes D and E.
The decimal first-octet ranges are simply another view of those binary patterns. This is why the calculator shows both the first octet and leading bits. It also prints the entire 32-bit address so the classification can be checked visually.
Why Use Our IPv4 Class Calculator?
- Clear primary answer: The historical class appears first.
- Complete ranges: Classes A through E are supported.
- Classful context: A, B, and C results include old masks, networks, and capacities.
- Modern warning: The page explains that CIDR controls present-day boundaries.
- Current classification: Private, public, loopback, multicast, and special types are identified separately.
- Binary proof: Leading bits and the complete address are visible.
- No signup: A result is available immediately.
Understanding the Results
- Historical Address Class: Class A, B, C, D, or E based on the first octet.
- First Octet: The decimal value used for the range comparison.
- Leading Class Bits: The fixed bit pattern that identified the class.
- Purpose: Historical unicast size, multicast, or reserved use.
- Current Address Type: A modern property determined from special address ranges.
- Historical Default Prefix:
/8,/16, or/24for Classes A, B, and C. - Historical Default Mask: The dotted mask associated with that old prefix.
- Classful Network: The containing network if the default class mask were applied.
- Total and Usable Addresses: Mathematical size and traditional host capacity.
- Binary Address: All four octets displayed as 32 bits.
Class A, B, and C Default Masks
Class A historically reserved 8 bits for the network and 24 for hosts, giving mask 255.0.0.0. Class B used 16 network bits and mask 255.255.0.0. Class C used 24 network bits and mask 255.255.255.0.
These fixed divisions wasted address space. A company that needed more than 254 hosts could receive a much larger Class B block, while a Class A block contained over 16 million addresses. CIDR replaced that rigid sizing with flexible prefix lengths.
Why CIDR Replaced Classful Networking
CIDR allows a prefix at almost any bit boundary. A network can use /22, /26, or another size instead of being forced into A, B, or C defaults. CIDR also supports route aggregation, helping control routing table growth.
For example, 10.20.30.40 is historically Class A, but a real network might assign it as 10.20.30.40/24. Its actual network would then be 10.20.30.0/24, not the classful 10.0.0.0/8. Always use the supplied CIDR prefix or subnet mask for operational work.
Classes D and E Are Different
Class D addresses are associated with IPv4 multicast rather than ordinary one-to-one host allocation. They do not have a Class A, B, or C style default subnet mask. Class E was historically reserved for experimental or future use and also has no ordinary classful host network.
The calculator therefore omits classful host capacity and default-mask fields for D and E. Showing invented boundaries for these classes would be misleading.
Private Ranges Do Not Match Class Boundaries
The private IPv4 blocks are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. The first is within historical Class A, the second occupies part of Class B space, and the third occupies part of Class C space.
Not every Class A, B, or C address is private, and not every value beginning with 172 is private. Only first-octet and class analysis cannot determine privacy accurately. That is why the result includes a separate address-type check.
Common Uses for an IPv4 Class Calculator
- Studying the history of IPv4 addressing.
- Checking answers in introductory networking courses.
- Recognizing default masks in legacy documentation.
- Understanding leading address bits and octet ranges.
- Comparing classful design with modern CIDR.
- Interpreting old device configurations or training material.
- Avoiding confusion between address class and private status.
Important Limitations
- The historical default network is not necessarily the configured network.
- A class label does not show whether an address is globally reachable.
- Special blocks can sit inside the numerical A, B, or C ranges.
- Classes do not apply to IPv6.
- Modern routers and registries use CIDR rather than classful allocation.
- The calculation does not perform an ownership, location, or live network lookup.
Classful network numbers were described in RFC 791. RFC 4632 explains CIDR addressing and aggregation used for modern IPv4 routing.
Frequently Asked Questions
Is 10.0.0.1 a Class A address?
Historically yes, because the first octet is 10. It is also inside the private 10.0.0.0/8 block.
Is 172.16.0.1 Class B?
Yes under historical ranges. It is also private because it falls inside 172.16.0.0/12.
Is 192.168.1.1 Class C?
Historically yes, and it is private because it belongs to 192.168.0.0/16.
Do IPv4 classes still define subnet masks?
No. Modern network boundaries use an explicit CIDR prefix or subnet mask.
What is Class D used for?
Class D space covers IPv4 multicast addresses rather than ordinary classful host networks.
Does IPv6 have classes?
No. IPv6 uses prefixes and defined address types, not the old A through E system.
Related IPv4 Calculators
Use the CIDR Notation Calculator for the real prefix, the Subnet Mask Calculator for mask conversion, and the IP to Binary Calculator to inspect every bit. Browse all ipdnslookup calculators for more IPv4 tasks.