Octal (Base 8) — Definition, Formula & Examples
Octal (base 8) is a number system that uses only the digits 0 through 7, where each place value represents a power of 8 instead of a power of 10.
The octal numeral system is a positional notation system with radix 8. A number written as in base 8 represents the value , where each digit .
Key Formula
Where:
- = The digit in position i (must be 0–7)
- = The place value of position i
How It Works
In our everyday base-10 system, place values go 1, 10, 100, 1000, and so on. In octal, place values go 1, 8, 64, 512, and so on — each one is 8 times the previous. You never use the digits 8 or 9 in octal, since reaching 8 units causes a carry to the next place. For example, counting in octal goes 5, 6, 7, 10, 11, 12 — the octal number 10 equals the decimal number 8. To convert from octal to decimal, multiply each digit by its place value and add the results together.
Worked Example
Problem: Convert the octal number 253₈ to decimal.
Step 1: Identify each digit and its place value.
Step 2: Compute each term.
Step 3: Add the results.
Answer: 253₈ = 171 in decimal.
Why It Matters
Octal is widely used in computing because each octal digit corresponds exactly to three binary digits, making it a shorthand for binary. Unix and Linux file permissions are expressed in octal notation, so understanding base 8 is practical for anyone learning computer science.
Common Mistakes
Mistake: Using the digits 8 or 9 in an octal number.
Correction: Octal only allows digits 0 through 7. If you see an 8 or 9, the number is not valid in base 8.
