How to Convert Decimals to Fractions
Convert any decimal to a fraction: terminating, mixed and repeating decimals, long values with a denominator limit, and sixteenths for a tape measure.
Terminating decimals
A terminating decimal stops after a fixed number of digits, like 0.375 or 0.04. These convert exactly.
- Write the digits after the decimal point as the numerator.
- Use 10, 100, 1000 and so on as the denominator: one zero for each digit after the point.
- Find the greatest common divisor (GCD) of the top and bottom.
- Divide both by the GCD to reduce the fraction.
Worked example: 0.375 has three digits after the point, so it is 375/1000. To find the GCD, divide the larger number by the smaller and keep the remainder: 1000 ÷ 375 leaves 250, 375 ÷ 250 leaves 125, and 250 ÷ 125 leaves 0, so the GCD is 125. Then 375 ÷ 125 = 3 and 1000 ÷ 125 = 8, giving 3/8.
Two quick ones: 0.6 = 6/10 = 3/5, and 0.04 = 4/100 = 1/25. The decimal to fraction converter does the reduction for you, and the ratio simplifier uses the same GCD step for ratios like 375:1000.
Decimals greater than 1
Split the number into its whole part and its decimal part, convert the decimal part, then put them back together.
Take 2.375. The whole part is 2 and 0.375 is 3/8, so the mixed number is 2 3/8. To write it as an improper fraction, multiply the whole number by the denominator and add the numerator: 2 × 8 + 3 = 19, giving 19/8. Check it: 19 ÷ 8 = 2.375.
Negative numbers work the same way with the sign kept outside: -1.25 is -1 1/4, or -5/4. If you need to add, subtract or multiply mixed numbers afterward, the fraction calculator accepts them directly.
Repeating decimals and the algebra method
A repeating decimal has a block of digits that goes on forever. Here the repeating block is shown in brackets: 0.(3) means 0.333..., and 0.1(6) means 0.1666.... Repeating decimals convert exactly too, using a little algebra.
For 0.(3): let x = 0.333.... Multiply by 10 to shift one full block: 10x = 3.333.... Subtract the first line from the second and the repeating tails cancel: 9x = 3, so x = 3/9 = 1/3.
For 0.1(6), one digit does not repeat. Shift past it and past one block: 100x = 16.666... and 10x = 1.666.... Subtracting gives 90x = 15, so x = 15/90 = 1/6. A shortcut gives the same result: take all the digits up to the end of the first block (16), subtract the digits that do not repeat (1), and divide by one 9 per repeating digit followed by one 0 per non-repeating digit (90). That is (16 - 1)/90 = 15/90 = 1/6.
Longer blocks follow the same pattern. For 0.(142857), the block has six digits, so 1,000,000x - x = 142857, giving 142857/999999. Since 999999 = 7 × 142857, that reduces to 1/7. Likewise 0.(27) = 27/99 = 3/11.
The rounding trap
A decimal on a screen may already be rounded. 0.33 is exactly 33/100, not 1/3. The true value of 1/3 is 0.333... forever, and the gap between them is 1/300, about 0.0033. That sounds small until you multiply: three shares of 0.33 add up to 0.99, not 1.
Before converting, ask where the decimal came from. A price like 0.25 or a ruler reading of 0.375 is exact. A calculator display of 0.1666667 or a spreadsheet cell showing 0.67 is probably a rounded repeating value, and the fraction you want is 1/6 or 2/3. This comes up often with time: 10 minutes is 1/6 of an hour, as explained in how to convert minutes to decimal hours.
Approximating long decimals
Some decimals are long, measured or never-ending without repeating. For those, you want a simple fraction that is close enough, and the way to control that is a maximum denominator.
Take 3.14159. Written exactly it is 314159/100000, which is not useful. Limit the denominator to 10 and the closest fraction is 22/7, about 3.142857, which is off by roughly 0.0013. Allow denominators up to 1000 and the closest is 355/113, about 3.1415929, which is off by less than 0.000003. A larger limit gives a closer fit but a less convenient fraction, so pick a limit that matches how precise you need to be.
Tape measures, percentages and going back
Imperial tape measures in Canada and the US are usually marked in sixteenths of an inch. To read a decimal inch on the tape, multiply the decimal part by 16, round to the nearest whole number and reduce.
- 0.3 in: 0.3 × 16 = 4.8, which rounds to 5, so about 5/16 in (0.3125 in).
- 5.75 in: 0.75 × 16 = 12, and 12/16 = 3/4, so 5 3/4 in.
If you would rather work in millimetres, the length converter handles that switch.
To go from a fraction back to a decimal, divide the top by the bottom: 3/8 = 3 ÷ 8 = 0.375. Multiply by 100 for a percentage: 37.5%. The same works for 5/16, which is 0.3125 or 31.25%. The percentage calculator is useful when you then need a percentage of some other amount.
Common questions
Is 0.999... equal to 1?
Yes. Using the algebra method, let x = 0.999.... Then 10x = 9.999..., and subtracting gives 9x = 9, so x = 1 exactly.
What is 0.125 as a fraction?
0.125 is 125/1000. The GCD of 125 and 1000 is 125, so it reduces to 1/8.
Why does my calculator give a different fraction than I expected?
The decimal you entered was probably rounded, or the tool is using a denominator limit. Enter more digits, or mark the repeating part, to get the exact fraction.
Last updated: