Skip to main content

What is the size of an IPv4 address?

The size of an IPv4 address is 32 bits.


In short, for an interview

An IPv4 address has a length of 32 bits (4 bytes).


A little more detail, simply

What this looks like in practice

32 bits = 4 bytes, so an IPv4 address is written as:

192.168.1.10
  • 4 numbers
  • each number is 1 byte (8 bits)
  • the range of each number: 0-255

What is important to remember

  • IPv4:
    • a logical address
    • used at the network layer
  • Total possible IPv4 addresses:
    • 2³² ≈ 4.3 billion

For comparison

AddressSize
IPv432 bits
IPv6128 bits

Short Answer

Interview ready
Premium

A concise answer to help you respond confidently on this topic during an interview.