Loading...
3+
3
Login

Octal Number System (Base 8)

The octal number system (base 8) uses eight digits: 0, 1, 2, 3, 4, 5, 6, 7. Place values are powers of 8. Octal was historically used in computing because it groups binary digits into sets of three, making binary much easier to read.

Octal Place Values

Place (from right)Power of 8Decimal Value
1st8⁰1
2nd8
3rd64
4th512
5th8⁴4,096

Converting Octal to Decimal

Multiply each digit by its place value and add the results.

372 (octal) = (3×64) + (7×8) + (2×1) = 192 + 56 + 2 = 250 (decimal)

More Examples

OctalWorkingDecimal
17(1×8) + (7×1)15
40(4×8) + 032
100(1×64)64
777(7×64)+(7×8)+(7×1)511

Converting Decimal to Octal

Divide repeatedly by 8; read remainders from bottom to top.

100 ÷ 8 = 12 R 4  |  12 ÷ 8 = 1 R 4  |  1 ÷ 8 = 0 R 1  →  100 (decimal) = 144 (octal)

Octal and Binary

Each octal digit maps exactly to a 3-bit binary group:

OctalBinary (3-bit)
0000
3011
5101
7111
Key Points
  • Octal uses digits 0–7; there is no digit 8 or 9 in octal.
  • Place values are powers of 8: 1, 8, 64, 512, …
  • Octal is often used in Unix file permissions.
  • Converting octal ↔ binary: group binary digits in threes from the right.

Quick Practice

  1. Convert octal 25 to decimal.
  2. Convert octal 107 to decimal.
  3. Convert decimal 56 to octal.
  4. Convert binary 110101 to octal (group into 3-bit sets).
  5. What is the highest value a 2-digit octal number can hold?

Summary

The octal number system extends place value thinking to a base-8 framework. Because one octal digit equals exactly three binary digits, octal provides a compact shorthand for binary. Although hexadecimal has largely replaced octal in modern computing, octal remains important in Unix/Linux file permission notation and certain programming contexts.

Home About Resources Dashboard