Octal Converter Formula
Understand the math behind the octal converter. Each variable explained with a worked example.
Formulas Used
Decimal Value
decimal = o5 * 32768 + o4 * 4096 + o3 * 512 + o2 * 64 + o1 * 8 + o0Variables
| Variable | Description | Default |
|---|---|---|
o5 | Octal Digit 5 (32768s) | 0 |
o4 | Octal Digit 4 (4096s) | 0 |
o3 | Octal Digit 3 (512s) | 0 |
o2 | Octal Digit 2 (64s) | 7 |
o1 | Octal Digit 1 (8s) | 5 |
o0 | Octal Digit 0 (1s) | 5 |
How It Works
Octal to Decimal Converter
How It Works
Octal (base-8) uses digits 0-7. Each position represents a power of 8:
Multiply each digit by its place value and sum all the results.
Worked Example
Convert octal 755 to decimal.
o5 = 0o4 = 0o3 = 0o2 = 7o1 = 5o0 = 5
- 017×64 + 5×8 + 5×1
- 02= 448 + 40 + 5
- 03= 493 in decimal
Ready to run the numbers?
Open Octal Converter