How do you convert a decimal to a fraction?
Write the decimal over a power of ten (or use continued fractions) and simplify.
Turn a decimal into a simplified fraction using a continued-fraction approximation capped at denominator 10,000.
Type the decimal value you want to express as a fraction.
How to use Decimal to Fraction Calculator, plus the formulas and logic behind the results.
This calculator finds a rational fraction that closely matches your decimal, limited to denominators of 10,000 or less, then reduces it to lowest terms.
Continued-fraction convergents approximate the decimalDenominator limit = 10,000Final fraction is reduced by gcdExamples
A continued-fraction search builds convergents until the denominator would exceed 10,000 or the error is negligible. The best valid convergent is simplified.
Irrational or long repeating values are approximated within the denominator limit; exact terminating decimals usually convert exactly.
Common questions about this calculator and how to use the results.
Write the decimal over a power of ten (or use continued fractions) and simplify.
Limiting the denominator keeps results practical and avoids huge fractions for tiny errors.
Yes. Terminating decimals that fit within the limit convert to exact simplified fractions.
Repeating values are approximated by the closest fraction within the denominator cap.
Yes. Improper fractions are returned when the absolute value is greater than 1.
Yes. It also displays the decimal of the resulting fraction so you can verify the fit.