Just like the binary numeral system has two possible values for each place-value, the ternary numeral system has three possible values for each place-value. Ternary (also called base 3 or trinary) isn't as common as binary, octal or decimal or hexadecimal numeral systems, although ternary is sometimes used in computer science. We'll show you how to convert ternary numbers to decimals in a few simple steps.

This article deals with standard (unbalanced) system which uses the values 0, 1 & 2), not the balanced system (which uses the values -1, 0 & 1).

Steps

  1. 1
    Write down the ternary number you want to convert. Let's use the ternary number 202212 (commonly written as 2022123, to indicate the base in which the number is written) to follow along.
  2. 2
    Write down the powers of three from right to left. Start on the right with 30, then 31, then 32, until you have as many powers of three as there are digits in your ternary number. For our number, 2022123, you would go up to 35, since it has 6 digits, so you would have 243, 81, 27, 9, 3, 1.
    • If you have a ternary number with n digits, you have to go up to 3n-1, and not 3n, since you start with 30, and not 31.
    Advertisement
  3. 3
    Connect each digit from the ternary number with its corresponding power of three. The right-most digit belongs with the right-most power of three (30), the second digit on the right belongs to the second power of three of the right (31), and so on.
  4. 4
    Multiply each digit with its corresponding power of three. In our example (2022123), this goes as follows;
    • 110 (or 30) corresponds with 2, so 2*1=1
    • 310 (or 31) corresponds with 1, so 1*3=3
    • 910 (or 32) corresponds with 2, so 2*9=18
    • 2710 (or 33) corresponds with 2, so 2*27=54
    • 8110 (or 34) corresponds with 0, so 0*81=0
    • 24310 (or 35) corresponds with 2, so 2*243=486
  5. 5
    Add up all of the numbers you got from the previous step. In our case that would be 1+3+18+54+0+486=563. So 563 is the decimal form of 2022123.
  6. 6
    Write the answer with the correct base subscripts. This is to prevent confusion as to what number is written in which base. In our example, it would look like this: 2022123=56310.
  7. 7
    Use the same logic to convert a ternary number with a decimal point to decimal form. You can use this method even when you want to covert a ternary number such as 1.1 to decimal. The "1" to the left of the decimal point is equal to 30, or 1. The 1 to the right of the decimal is equal to 3-1, or .333... (1/3). Add up 1 and .333 (1/3) and you get 1.333.. (4/3).
  8. Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time. This article has been viewed 30,498 times.
34 votes - 87%
Co-authors: 3
Updated: December 3, 2021
Views: 30,498
Categories: Conversion Aids
Advertisement