How to use the decimal to fraction converter
- Type the number in Decimal, for example 0.75 or 2.125.
- If the decimal repeats, either write the repeating block in brackets, such as 0.1(6), or type the repeating digits in Repeating digits at the end (optional).
- If the decimal does not repeat, leave the second box empty, as it starts.
- Read the Fraction and Mixed number, and follow the Steps.
- For long decimals, check the Simpler approximations table for a short fraction that is close enough.
What it does and when to use it
Converting decimals to fractions comes up in maths homework, in measuring (0.375 inch is 3/8 inch), in recipes and in exam questions on recurring decimals. Terminating decimals are easy once you know the trick; recurring ones need a little algebra, which this tool shows step by step.
To go the other way or to add and divide fractions, use the fraction calculator. For converting fractions into binary or hex, see the number base converter. The ratio simplifier reduces ratios with the same GCD method.
How it works
Terminating decimals. Write the digits over a power of ten, then divide top and bottom by their greatest common divisor (GCD). 0.75 = 75/100, GCD(75, 100) = 25, so 0.75 = 3/4.
Repeating decimals. If x has k digits after the point before the repeat starts and a repeating block of L digits, then 10^(k+L)·x − 10^k·x is a whole number. Dividing by 10^(k+L) − 10^k gives the fraction, which is then simplified.
Approximations. For denominators above 1,000, the tool expands the value as a continued fraction and lists each convergent with a denominator up to 100,000.
Step by step for 0.1666… (0.1 with repeating 6):
- Let x = 0.1666…
- Here k = 1 and L = 1, so multiply by 10² and by 10¹: 100x = 16.666… and 10x = 1.666…
- Subtract: 100x − 10x = 16.666… − 1.666…, so 90x = 15.
- Divide: x = 15/90.
- Simplify by 15: x = 1/6.
The tool’s steps show the same: (10^2 − 10^1)·x = 15 and x = 15/90 = 1/6.
Worked examples
A terminating decimal. 0.75 gives 3/4, with the step GCD(75, 100) = 25.
One repeating digit. 0.1 with repeating digit 6 gives Fraction: 1/6.
A long repeating block. 0.(142857) gives 142857/999999, which simplifies to Fraction: 1/7.
An approximation of π. 3.14159 is exactly 314159/100000. The approximations table lists 22/7 (error 0.00127) and 355/113 (error 0.00000292).
A mixed number. 2.125 = 2125/1000 = 17/8, shown as Mixed number: 2 1/8.
Limits and tips
- A decimal typed without a repeat is treated as exact; 0.33 is 33/100.
- A decimal typed with dots, such as 0.333…, is read as repeating, and the steps show the bracket form the tool used (0.(3)). For a negative number the steps work on the size and add the minus sign at the end.
- The converter runs entirely in your browser.
Frequently asked questions
Why did 0.75 turn into 227/300?
How do I enter a repeating decimal?
Why is 0.333 not exactly 1/3?
What are the "simpler approximations"?
Does it work for negative numbers and whole parts?
How do we know nothing is uploaded? Test it yourself on the privacy proof page.