Fraction to Decimal Converter (and
Back).
Turn a fraction into its exact decimal, or a decimal back into a fraction.
The digits, one by one
The bar marks the digit that repeats. Under each digit is what is left over after that step. When a left-over number comes back, the digits repeat from there.
In lowest terms the bottom number is 6, which has a prime factor other than 2 or 5, so the decimal never stops. 1 digit comes first, then a block of 1 digit that repeats forever. A rounded value is only ever close.
The digits, one by one
The bar marks the digit that repeats. Under each digit is what is left over after that step. When a left-over number comes back, the digits repeat from there.
On an inch ruler
The nearest sixteenth mark is1316,which is off by148.
Working
- 1Factor the denominator6 = 2 × 3
- 2Another factor remains, so the decimal repeats1 digit before the cycle (from the 2s and 5s), then a cycle of 1 digit: the smallest k with 10k − 1 divisible by 3.
- 3Long division: top number ÷ bottom number5 ÷ 6 =0.83 (3 repeating)
- 4Check: turn the decimal back into a fraction0.83 (3 repeating)=56
- 5Answer56=0.83 (3 repeating)
Pick a bottom number
Every fraction over 16
| Fraction | Lowest terms | Decimal | Percent |
|---|---|---|---|
| 116 | 116 | 0.0625 | 6.25% |
| 216 | 18 | 0.125 | 12.5% |
| 316 | 316 | 0.1875 | 18.75% |
| 416 | 14 | 0.25 | 25% |
| 516 | 516 | 0.3125 | 31.25% |
| 616 | 38 | 0.375 | 37.5% |
| 716 | 716 | 0.4375 | 43.75% |
| 816 | 12 | 0.5 | 50% |
Long division
| Remainder | Times 10 | Digit | Left over |
|---|---|---|---|
| 5 | 50 | 8 | 2 |
| 2 | 20 | 3 | 2 |
The first 2 steps of the division. Each one multiplies what is left by 10, then writes how many times the bottom number fits.
How it’s worked out
From a fraction to a decimal
A fraction is a division waiting to happen: means 7 ÷ 8. Long division writes it out one digit at a time. At each step you multiply what is left by 10, write how many times the bottom number fits, and keep the rest. For this gives . The digit strip on the tool shows what is left over under every digit.
Why some decimals stop and others repeat
What is left over is always smaller than the bottom number, so it can only take so many values. Sooner or later it hits 0 and the decimal stops, or it comes back to a value it had before, and from then on the digits repeat. There is no third option. The Common Core standard 7.NS.A.2.d asks students to know exactly this.
You can tell which one you have before dividing. A decimal that stops is a fraction over 10, 100 or 1,000, and those numbers are built only from 2s and 5s. So write the fraction in lowest terms and factor the bottom number:
- Only 2s and 5s: it stops. has , so it ends at , after the larger power, 3 places.
- Any other prime: it repeats. has . The 3 forces a cycle and the two 2s add two digits before it: .
How long the cycle is
Strip the 2s and 5s from the bottom number and call what remains . The cycle length is the smallest whole number for which divides evenly by . For , that is 6, since 999,999 divides by 7. The tool works this out from the factors, so it knows the exact length of a long block too. has a cycle of 96 digits.
From a decimal back to a fraction
A decimal that stops is its digits over a power of 10. Then reduce. One that repeats takes one more idea: shift it so the repeating tails line up, and subtract so they cancel. That gives this rule:
Read all the digits as one whole number. The bottom has one 9 per repeating digit, then one 0 per other decimal digit.
All of this uses exact whole numbers, not rounded decimals, so a repeating digit is never lost to a calculator's last place.
Worked examples
Leo reads a caliper
Leo measures a bolt at 0.6875 inches and wants the tape measure mark.
The answer is inch. It lands exactly on a sixteenth mark, so a tape measure can show it.
Maya checks her homework
Maya divides 5 by 6 and keeps writing 3s. Is that right? In lowest terms the bottom is . The 2 gives one digit before the cycle, and the 3 gives a cycle of one digit.
So she is right, and the first digit, 8, does not repeat. The left-over numbers go 2, 2, 2, which is why the 3 never stops.
Sam reads an answer key
An answer key prints 0.1666… and asks for a fraction. Sam types it with the repeating digit in brackets. All the digits make 16 and the digit before the cycle is 1. One repeating digit and one other decimal digit give a bottom of 90.
Reading your result
The bar. A bar over digits means they repeat forever: is 0.333… with no end. Some books write this with dots, and many web pages use brackets, as in 0.(3). All three mean the same thing. Type brackets in the decimal box, because a keyboard has no bar.
Rounded to your places. A repeating decimal rounded to any length is close but not equal. rounds to 0.33 at 2 places and 0.3333 at 4. Keep the fraction while you work, and round only the final answer. The tool rounds half up from the exact value.
The ruler mark. Tape measures usually show sixteenths, while machine work may use 32nds or 64ths. Any fraction with one of those bottoms sits right on a mark. Other fractions do not, so the tool names the closest mark and how far off it is. Pick the ruler marks you have, and check that the distance is small enough for the job.
The closest simple fraction. When you start from a decimal, the exact fraction may look odd. 0.33 is exactly , not a third. If 0.33 was rounded from something on a label or scale, the likely source is , the closest fraction with a bottom up to 16. This is a good guess, not a fact about your number.
Common mistakes
- Dividing the wrong way round. is 7 ÷ 8, not 8 ÷ 7. A proper fraction, with the smaller number on top, always gives a decimal below 1.
- Factoring before reducing. has a 3 in its bottom number, but it stops, because it reduces to first. Only the lowest-terms bottom counts.
- Putting the bar on too many digits. In , the 8 does not repeat, so is a different number. In the decimal box, that is the gap between 0.8(3) and 0.(83).
- Trusting a rounded value as a fraction. Typing 0.33 and expecting gets you a fraction over 100. To get a third back, type 0.(3).
- Rounding in a spreadsheet and expecting a tie to behave. 1.005 at 2 places is 1.01 rounded half up on paper, but many programs store 1.005 as slightly less and return 1.00. Exact fractions do not have this problem. The rounding calculator covers it in more depth.
Questions people ask
Sources
- Hardy and Wright, An Introduction to the Theory of Numbers, 6th ed., Oxford University Press, 2008, chapter 9: decimal representation, terminating and recurring decimals
- OEIS A001913, primes p for which 1/p has period p − 1 (full reptend primes)
- Common Core State Standards, Grade 7 Number System, 7.NS.A.2.d