Home Conversion Number Decimal to Octal

Decimal to Octal Converter

To use decimal to octal converter, type a decimal value e.g. "17" and click on the Convert button and you will get the octal value "21" on the right hand side.

Decimal to Octal Conversion:

Octal = 21

Decimal Numeral System

The decimal system (base-10) uses ten symbols ranging from 0 to 9. In this notation, the value of a digit depends on its position. Digits to the left of the decimal point represent increasing powers of 10 i.e. (…, 102, 101, 100), while digits to the right of the point represent decreasing powers of 10 i.e (10-1, 10-2, 10-3, …). Through this positional method, numbers both very large and very small can be expressed clearly and efficiently.

Example:

Decimal value "2675.97" can be written as:

Digit Position Power of 10 Value
2 103 (Thousands place) 103 = 1000 2 × 1000 = 2000
6 102 (Hundreds place) 102 = 100 6 × 100 = 600
7 101 (Tens place) 101 = 10 7 × 10 = 70
5 100 (Ones place) 100 = 1 5 × 1 = 5
9 10-1 (Tenths place) 10-1 = 0.1 9 × 0.1 = 0.9
7 10-2 (Hundredths place) 10-2 = 0.01 7 × 0.01 = 0.07

Total = (2 × 103) + (6 × 102) + (7 × 101) + (5 × 100) + (9 × 10-1) + (7 × 10-2) = 2000 + 600 + 70 + 5 + 0.9 + 0.07 = 2675.97

Octal Numeral System

An octal number is a value represented in the base-8 numeral system. This system uses eight unique symbols: 0, 1, 2, 3, 4, 5, 6, and 7. Each position in an octal number corresponds to a power of 8, similar to how the decimal system is based on powers of 10. For example, before octal point the rightmost digit represents 80, the next digit to the left represents 81, then 82, and so on. After the octal point the digits represents the position in decreasing power of 8 i.e. 8-1, 8-2, 8-3 and so on.

Example:

Octal value "175.65" can be written as:

Digit Position Power of 8 Value
1 82 place 82 = 64 1 × 64 = 64
7 81 place 81 = 8 7 × 8 = 56
5 80 place 80 = 1 5 × 1 = 5
6 8-1 place 8-1 = 0.125 6 × 0.125 = 0.75
5 8-2 place 8-2 = 0.015625 5 × 0.015625 = 0.078125

(175.65)8 = (1 × 82) + (7 × 81) + (5 × 80) + (6 × 8-1) + (5 × 8-2) = 64 + 56 + 5 + 0.75 + 0.078125 = (125.828125)10

How to Convert Decimal to Octal

Consider the following steps to conver the decimal value to octal.

How to Convert Fractional Decimal Part to Octal

The fractional part of a decimal number can be converted into octal by following these steps:

Decimal to Octal Examples

Example 1: Convert (47)10 decimal value to octal value.

Division by 8 Quotient Remainder (Decimal) Remainder (Octal) Digit Position
47/8 5 7 7 80
5/8 0 5 5 81
  • Combine together all the remainder values in octal starting from last to the first one. Final octal value is:
  • (47)10 = (57)8
  • Example 2: Convert (571)10 decimal value to octal value.

    Division by 8 Quotient Remainder (Decimal) Remainder (Octal) Digit Position
    571/8 71 3 3 0
    71/8 8 7 7 1
    8/8 1 0 0 2
    1/8 0 1 1 3
  • Octal value is:
  • (571)10 = (1073)8
  • Example 3: Convert (79856)10 to octal value.

    Division by 8 Quotient Remainder (Decimal) Remainder (Octal) Digit Position
    79856/8 9982 0 0 0
    9982/8 1247 6 6 1
    1247/8 155 7 7 2
    155/8 19 3 3 3
    19/8 2 3 3 4
    2/8 0 2 2 5
  • Octal value is:
  • (79856)10 = (233760)8
  • Example 4: Convert (7657.75)10 to octal value.

  • Integer Part (7657):
  • Division by 8 Quotient Remainder (Decimal) Remainder (Octal) Digit Position
    7657/8 957 1 1 80
    957/8 119 5 5 81
    119/8 14 7 7 82
    14/8 1 6 6 83
    1/8 0 1 1 84
  • Fractional Part (0.75):
  • Multiplication by 8 Product Integer Part (Decimal) Integer Part (Octal) Fractional Remainder Digit Position
    0.75 × 8 6.0 6 6 0.0 8–1
  • Octal value is:
  • (7657.75)10 = (16751.6)8
  • Example 5: Convert (87526.140625)10 to octal value.

  • Integer Part (87526):
  • Division by 8 Quotient Remainder (Decimal) Remainder (Octal) Digit Position
    87526/8 10940 6 6 80
    10940/8 1367 4 4 81
    1367/8 170 7 7 82
    170/8 21 2 2 83
    21/8 2 5 5 84
    2/8 0 2 2 85
  • Fractional Part (0.140625):
  • Multiplication by 8 Product Integer Part (Decimal) Integer Part (Octal) Fractional Remainder Digit Position
    0.140625 × 8 1.125 1 1 0.125 8–1
    0.125 × 8 1.0 1 1 0 8–2
  • Octal value is:
  • (87526.140625)10 = (257246.11)8
  • Frequently Ask Questions: Decimal to Octal Conversion

    Q1: How to convert decimal (0.1)10 to octal?

    It will result in a repeated fractions and never terminated:

    (0.1)10 = (0.06314....)8

    Q2: What is the maximum decimal value that can be converted to octal if there is a limitation of 4 digits?

    If the number of octal digits is limited, large decimal numbers may exceed storage capacity and overflow can occur and results are truncated. If there is a limitation of 4 octal digits then the maximum value of octal is (7777)8 = (4095)10. 4095 is the maximum Decimal value that can be correctly converted to octal in 4 digits without overflow or truncation. Overflow must be prevented to avoid erroneous computations.

    Q3: What is the maximum value of octal digit?

    Octal numbers are represented with 8 digits or symbols: 0, 1, 2, 3, 4, 5, 6 and 7. The maximum value of octal digit is 7. The value 8 in decimal is equal to 10 in octal. The values "8" and "9" are invalid in octal numeral system.

    Q4: How to convert decimal (-75)10 to signed 8-bit octal value?

    8-bit signed numbers can represent −128 to 127, -75 is within the range, Therefore,

    (75)10 = (01001011)2 (8-bit)

    Take two's complement (Invert all bits + Add 1):

    Inverted Bits: (10110100)2

    Add 1: (10110101)2, As Octal digits are 3 bit values and to make a group of 3 bits the first is zero padded on the left side. Therefore, 010 = 2, 110 = 6 and 101 = 5

    (-75)10 = (265)8 (Signed 8-bit octal value)

    Q5: Which values of decimal and octal are exactly the same?

    Only the values from 0 to 7 are exactly the same as decimal values.

    Decimal to Octal Table

    DecimalOctal
    11
    22
    33
    44
    55
    66
    77
    810
    911
    1012
    1113
    1214
    1315
    1416
    1517
    1620
    1721
    1822
    1923
    2024
    2125
    2226
    2327
    2430
    2531
    2632
    2733
    2834
    2935
    3036
    3137
    3240
    3341
    3442
    3543
    3644
    3745
    3846
    3947
    4050
    4151
    4252
    4353
    4454
    4555
    4656
    4757
    4860
    4961
    5062
    5163
    5264
    5365
    5466
    5567
    5670
    5771
    5872
    5973
    6074
    6175
    6276
    6377
    64100
    DecimalOctal
    65101
    66102
    67103
    68104
    69105
    70106
    71107
    72110
    73111
    74112
    75113
    76114
    77115
    78116
    79117
    80120
    81121
    82122
    83123
    84124
    85125
    86126
    87127
    88130
    89131
    90132
    91133
    92134
    93135
    94136
    95137
    96140
    97141
    98142
    99143
    100144
    101145
    102146
    103147
    104150
    105151
    106152
    107153
    108154
    109155
    110156
    111157
    112160
    113161
    114162
    115163
    116164
    117165
    118166
    119167
    120170
    121171
    122172
    123173
    124174
    125175
    126176
    127177
    128200
    DecimalOctal
    129201
    130202
    131203
    132204
    133205
    134206
    135207
    136210
    137211
    138212
    139213
    140214
    141215
    142216
    143217
    144220
    145221
    146222
    147223
    148224
    149225
    150226
    151227
    152230
    153231
    154232
    155233
    156234
    157235
    158236
    159237
    160240
    161241
    162242
    163243
    164244
    165245
    166246
    167247
    168250
    169251
    170252
    171253
    172254
    173255
    174256
    175257
    176260
    177261
    178262
    179263
    180264
    181265
    182266
    183267
    184270
    185271
    186272
    187273
    188274
    189275
    190276
    191277
    192300
    DecimalOctal
    193301
    194302
    195303
    196304
    197305
    198306
    199307
    200310
    201311
    202312
    203313
    204314
    205315
    206316
    207317
    208320
    209321
    210322
    211323
    212324
    213325
    214326
    215327
    216330
    217331
    218332
    219333
    220334
    221335
    222336
    223337
    224340
    225341
    226342
    227343
    228344
    229345
    230346
    231347
    232350
    233351
    234352
    235353
    236354
    237355
    238356
    239357
    240360
    241361
    242362
    243363
    244364
    245365
    246366
    247367
    248370
    249371
    250372
    251373
    252374
    253375
    254376
    255377

    by Wasim Khan and it was last modified on

    Related Conversions

    Please find the related numeric conversions.