Decimal to Fraction Calculator
Convert a finite or repeating decimal to an exact fraction, with steps.
For 0.1666…, enter 0.1 and repeating digits 6. You can also paste 0.1(6) in the decimal field.
Exact result
Enter a decimal to see its simplified fraction.
On this page
The method
How to convert a decimal to a fraction
For a finite decimal, remove the decimal point and write the signed digits over a power of ten, using one zero for each decimal place. For a repeating decimal, multiply by two powers of ten to line up the repeating tails, then subtract the equations. Divide the numerator and denominator by their greatest common divisor. For a mixed number, divide the reduced numerator by the denominator and keep the remainder as a fraction.
Example 1
Convert 0.625 to a fraction
Three places give a denominator of 1,000. Divide 625 and 1,000 by 125 to get 5/8. The same division reduces 1,625/1,000 to 13/8, which is 1 5/8 as a mixed number.
- Decimal
- 0.625
- Before reducing
- 625/1000
- Exact fraction
- 5/8
Example 2
Convert 0.1(6) to a fraction
Let x be 0.1666…. The numbers 100x = 16.666… and 10x = 1.666… share the same repeating tail. Subtract to get 90x = 15. Dividing 15 and 90 by 15 gives 1/6.
- Repeating decimal
- 0.1(6)
- Before reducing
- 15/90
- Exact fraction
- 1/6
Before you convert
Assumptions & limits
- Use up to 30 digits in total, with a period for the decimal point. A leading plus or minus is optional. Grouping commas, fractions, scientific notation and dots to indicate repetition are unsupported.
- Use parentheses around a recurring block, as in 0.(3), or enter those digits in the optional field. The converter uses the exact value of the digits you enter without rounding.
- An exact whole number is shown on its own. In a negative mixed number such as -1 5/8, the sign applies to the whole value.
- The conversion runs in this tab. Values are kept out of storage, links and analytics.
Keep in mind
Common mix-ups
Where does the repeat begin?
0.333 ends after three places and equals 333/1000. 0.(3) repeats indefinitely and equals 1/3. In 0.1(6), only 6 repeats, which gives 1/6.
Why does 0.(9) equal 1?
The numerator and denominator before reducing are both 9, so the result is exactly 1. The conversion uses integers at every step.
Sources & method notes
Explains decimal place value and reducing decimals to fractions or mixed numbers.
Derives fractions for repeating decimals, including a recurring block after a finite prefix.
Method and input rules checked: . Engineering validation; no professional specialist review is claimed.