Free tool · Math and study
Decimal to fraction calculator
Type a decimal, even one that repeats, and see it as a fraction in simplest form, as a mixed number, and with each step of the working written out.
- Free
- No sign-up
- Runs in your browser
1/6The brackets mark the digits that repeat.
- Repeating: 1 digit repeat
- Divided by 15
- Read as
- 0.1(6)
- Top over bottom
- 15/90
- Common factor
- 15
- Simplest form
- 1/6
- Back to a decimal
- 0.1666666666…
| Step | What happens |
|---|---|
| 1 | Call the number x = 0.1(6). The repeating part is 6, which has 1 digit; 1 digit come before it. |
| 2 | Move the point past the digits before the repeat (multiply by 10): 10x = 1.666… |
| 3 | Move it past one whole repeat as well (multiply by 100): 100x = 16.666… |
| 4 | Subtract the first line from the second. The endless tails are the same, so they cancel: 90x = 16 − 1 = 15. |
| 5 | Divide both sides by 90: x = 15/90. |
| 6 | The greatest common factor of 15 and 90 is 15. Divide top and bottom by it: 1/6. |
How to use the Decimal to Fraction Calculator
- Type your number in the Decimal number box. Use a point, not a comma.
- If some digits repeat for ever, put them in brackets, like 0.1(6). You can also type three dots after them, like 0.333...
- Read the big fraction, then the Mixed number and Common factor cards.
- Follow The steps table line by line, and use Copy the answer to keep the result.
How do I change a decimal into a fraction?
Count the digits after the point, write those digits as a whole number on top, and put a 1 followed by that many zeros underneath. Take 0.375. It has 3 digits after the point, so the top is 375 and the bottom is 1000. That gives 375/1000, which is correct but clumsy.
Next, shrink it. Find the biggest number that divides both the top and the bottom. For 375 and 1000 that number is 125. Divide both by it and you get 3/8. This is the simplest form, because the top and bottom now share no factor except 1.
The reason this works is place value. In 0.375, the last digit sits in the thousandths place, so the whole decimal is 375 thousandths, which is the same as 375/1000. One digit after the point means tenths, two digits means hundredths, and so on.
To check an answer, divide the top by the bottom on a calculator or by hand. 3/8 gives 0.375, the decimal you started with. The result panel does this for you in the card called Back to a decimal, and for a repeating number it shows the first digits so you can see the pattern come back.
How do I turn a repeating decimal into a fraction?
A repeating decimal never ends, so you cannot count its digits. The trick is to make two copies of the number with the same endless tail, and subtract them so the tail disappears. Here is 0.1(6), which means 0.1666… with only the 6 repeating.
Call it x. Multiply by 10 to move the point past the digits that do not repeat: 10x = 1.666… Multiply by 100 to move the point past one full repeat: 100x = 16.666… Subtract the first line from the second. Both tails are the same, so 90x = 15, and x = 15/90, which is 1/6.
Longer blocks follow the same plan. For 1.2(45), the block 45 has two digits and one digit comes before it, so the subtraction is 990x = 1233, and the answer is 137/110 after dividing by 9. A shortcut for a pure repeat such as 0.(3): put the repeating digits over as many 9s as there are digits. One repeating digit gives 3/9, which is 1/3.
Three dots after a decimal mean the same thing. The calculator reads the last digit as the repeating one, unless a longer block shows up twice at the end, as in 0.142857142857... In that case it finds the block for you and tells you how it read your number.
How do I write the answer as a mixed number?
When the top is bigger than the bottom, the fraction is more than 1 and can be written as a whole number plus a smaller fraction. Take 2.75. As a fraction it is 11/4. Dividing 11 by 4 gives 2 with 3 left over, so the mixed number is 2 3/4. The calculator shows both forms, and shows the mixed number only when there is a whole part and a remainder.
Negative decimals keep their sign on the fraction: the sign is set aside while the working runs, then put back on the front of the answer.
| Decimal | Fraction | Kind |
|---|---|---|
| 0.125 | 1/8 | ends |
| 0.2 | 1/5 | ends |
| 0.25 | 1/4 | ends |
| 0.(3) | 1/3 | repeats |
| 0.375 | 3/8 | ends |
| 0.4 | 2/5 | ends |
| 0.(6) | 2/3 | repeats |
| 0.75 | 3/4 | ends |
| 0.8(3) | 5/6 | repeats |
| 0.(142857) | 1/7 | repeats |
| 1.5 | 3/2 | ends |
| 2.2 | 11/5 | ends |
What if the decimal does not end and never repeats?
Numbers such as pi have digits that never end and never repeat, so no fraction equals them exactly. If you type the first few digits, this calculator treats them as the whole number. For 3.14159, the exact fraction is 314159/100000, with a bottom of 100000. That is hard to use, so the page also gives the closest fraction whose bottom number is at most 100: 311/99. It is near, not equal.
A decimal ends or repeats only when it comes from a fraction of whole numbers. An ending decimal is a fraction whose bottom, once simplified, has only the prime factors 2 and 5. Every other bottom number gives a repeating decimal. This is why one third repeats while one eighth stops.
To add, subtract, multiply or divide the fractions you get here, open the fraction calculator. To check the common factor yourself, the LCM and GCF calculator finds it. To see how a division turns into digits, try the long division calculator.
Use it with
- Fraction Calculator: add, subtract, multiply, divide fractions with steps.
- Long Division Calculator: division with written steps.
- Number to Words: write numbers as words (cheques, invoices).
Questions
How do I convert 0.375 to a fraction?
Write 375 over 1000, then divide both by 125. The answer is 3/8.
How do I convert 0.333... to a fraction?
Call it x. Then 10x − x = 3, so 9x = 3 and x = 1/3.
How do I write 0.1(6) as a fraction?
Multiply by 100 and by 10, subtract, and you get 90x = 15, so the answer is 1/6.
Is 0.999... equal to 1?
Yes. With x = 0.(9), subtracting x from 10x gives 9x = 9, so x = 1. The calculator shows this as 1/1.
How do I turn a decimal bigger than 1 into a fraction?
Keep the whole part with the digits. 2.75 becomes 11/4, or 2 3/4 as a mixed number.
Can every decimal be a fraction?
Only decimals that end or repeat. Numbers such as pi go on without a pattern, so a fraction can only come close.
The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.