What Does "Octal to Decimal" Even Mean?
You already know how to count in decimal — the system with digits 0 through 9. When you see the number 342, you instinctively read it as "three hundred and forty-two." But why? Because each position in a decimal number stands for a power of 10:
342=3×102+4×101+2×100
Now imagine a world where you only have eight fingers. You'd count 0, 1, 2, 3, 4, 5, 6, 7 — and then what? You'd run out of digits. So the next number would be 10 (which means one eight and zero ones, not ten). That's octal: base 8.
Octal uses only the digits 0 through 7. The number 342 in octal does not mean three hundred and forty-two. It means something completely different — and to find out what, you convert it to decimal.
The Core Idea: Positional Value in Base 8
Every number system works the same way: the rightmost digit is the "units" place, the next digit to the left is the "base" place, then "base squared," and so on.
For octal (base 8):
- Rightmost digit: 80=1 place
- Next left: 81=8 place
- Next: 82=64 place
- Next: 83=512 place
- ... and so on
So to convert an octal number to decimal, you multiply each digit by its corresponding power of 8 and add everything up.
(dndn−1…d1d0)8=dn×8n+dn−1×8n−1+⋯+d1×81+d0×80
Worked Example: Convert (342)8 to Decimal
Write the digits with their place values:
| Digit | Place value (power of 8) | Contribution |
|---|
| 3 | 82=64 | 3×64=192 |
| 4 | 81=8 | 4×8=32 |
| 2 | 80=1 | 2×1=2 |
Now add: 192+32+2=226
So (342)8=226 in decimal.
Never read an octal number like a decimal number. (342)8 is not 342 — it's 226. The subscript 8 is your reminder.
Another Example: (107)8
Here the digit 7 is fine (it's less than 8), but notice the digit 0. Zero still contributes nothing, but it holds the place.
| Digit | Place value | Contribution |
|---|
| 1 | 82=64 | 1×64=64 |
| 0 | 81=8 | 0×8=0 |
| 7 | 80=1 | 7×1=7 |
Sum: 64+0+7=71 …