IPv4 Address Classes: A, B, C, D and E

An IPv4 address is made of four numbers from 0 to 255, for example 192.168.1.1. In the original “classful” system, the first number decides which of five classes – A, B, C, D or E – the address belongs to.

Classes A, B and C are used for normal devices such as routers, computers and phones. Class D is used for multicast, and Class E is reserved for experiments.

ClassIP rangeFirst numberDefault subnet maskPrivate rangeUsed for
Class A1.0.0.0 – 127.255.255.2551 – 127255.0.0.0 (/8)10.0.0.0/8Very large networks. The private 10.x.x.x part is widely used by companies, VPNs and some ISP routers.
Class B128.0.0.0 – 191.255.255.255128 – 191255.255.0.0 (/16)172.16.0.0/12Medium-sized networks. The private 172.16.x.x – 172.31.x.x part is used by offices, Docker and iPhone hotspots.
Class C192.0.0.0 – 223.255.255.255192 – 223255.255.255.0 (/24)192.168.0.0/16Small networks. The private 192.168.x.x part is used by most home routers.
Class D224.0.0.0 – 239.255.255.255224 – 239Not usedNoneMulticast: one sender delivers the same data to a group of devices (IPTV, streaming, routing protocols).
Class E240.0.0.0 – 255.255.255.255240 – 255Not usedNoneReserved for experiments and future use; not used on the public internet.

How to find the class of an IP address

Look only at the first number of the address:

Example: 192.168.1.1 starts with 192, so it is a Class C address. 10.0.0.1 starts with 10, so it is Class A.

Private IP ranges in each class

Classes A, B and C each contain one private range (RFC 1918). Private addresses are free for anyone to use inside a home or office network and are not reachable from the internet. Your router’s login address is almost always one of them.

ClassPrivate rangeCIDRIP
Class A10.0.0.0 – 10.255.255.25510.0.0.0/816,777,216
Class B172.16.0.0 – 172.31.255.255172.16.0.0/121,048,576
Class C192.168.0.0 – 192.168.255.255192.168.0.0/1665,536

Are IP classes still used?

Since 1993 the internet routes addresses without classes (CIDR), so a network can have any size, for example /22. The class names are still used to describe address ranges, default subnet masks and the three private ranges.