Decimal to Fraction Calculator
Convert any decimal to a fraction or mixed number in lowest terms — including repeating decimals like 0.333… — with full step-by-step working.
How to use this calculator
Type the decimal in the first box — whole numbers (5), plain decimals (1.625), leading-dot decimals (.5), and negatives (-0.75) all work. If the decimal repeats forever, enter how many of its last digits repeat in the second box: 1.83 with 1 repeating digit means , and 0.36 with 2 means . Leave it at 0 for an ordinary terminating decimal.
The answer shows the fraction in lowest terms (plus the mixed-number form when it's improper), with every step of the working underneath.
0.72 with 2 repeating digits — you don't need to type the block twice.Terminating decimals — the four-step method
- Write the decimal over 1.
1.625/1. - Multiply top and bottom by , where is the number of digits after the decimal point.
1.625has three, so multiply by 1000: . - Reduce by the GCD. , giving .
- Convert to a mixed number if the fraction is improper: .
This calculator does all of this with exact big-integer arithmetic — no floating-point rounding, no matter how many digits you enter.
Repeating decimals — the two-equation method
The trick: build two copies of the number whose repeating tails line up, then subtract so the tails cancel.
For (enter 1.83, repeating digits 1):
- Multiply by 10 so the repeat starts at the point: — equation 1.
- Multiply by 10 once more (one full block): — equation 2.
- Subtract: .
- Solve and reduce: .
Worked examples
Example 1 — terminating: 2.625
, → .
Example 2 — repeating from the point: 2.666…
Enter 2.666 with 3 repeating digits. , so and .
Example 3 — mixed repeat: 0.3636…
Enter 0.36 with 2 repeating digits. , so and .
Common decimals as fractions
| Decimal | Fraction |
|---|---|
| 0.125 | 1/8 |
| 0.2 | 1/5 |
| 0.25 | 1/4 |
| 0.333… (3 repeating) | 1/3 |
| 0.5 | 1/2 |
| 0.625 | 5/8 |
| 0.666… (6 repeating) | 2/3 |
| 0.75 | 3/4 |
Frequently asked questions
- How do you convert a decimal to a fraction?
- Four steps: write the decimal over 1, multiply top and bottom by 10 for every digit after the decimal point, reduce by the greatest common divisor, and convert to a mixed number if the fraction is improper. For 1.625: reduces by 125 to .
- What is 0.625 as a fraction?
- 0.625 = . Write , then divide both numbers by their GCD 125: and .
- How do you turn a repeating decimal like 0.333… into a fraction?
- Set and multiply by 10: . Subtract the first equation from the second — the repeating tails cancel: , so . Enter 0.3 with 1 repeating digit in this calculator to see it worked out.
- What is 0.1666… (6 repeating) as a fraction?
- It equals . With : and . Subtracting gives , so .
- Does 0.999… really equal 1?
- Yes — exactly, not approximately. With : , subtract to get , so . Try 0.9 with 1 repeating digit and the calculator returns the whole number 1.
- Why does typing 0.333 give 333/1000 instead of 1/3?
- Because 0.333 as written is a terminating decimal — exactly 333 thousandths. Only the infinite repeating decimal 0.333… equals . Set the repeating-digits field to 1 to tell the calculator the 3 repeats forever.
- Can I convert a negative decimal to a fraction?
- Yes. The sign passes straight through: convert the positive value, then attach the minus sign. .
- What is a terminating vs a repeating decimal?
- A terminating decimal ends after a finite number of digits (0.75). A repeating decimal has a block of digits that recurs forever (0.727272…). Both are rational, so both convert to exact fractions — but the methods differ, which is why this calculator asks how many trailing digits repeat.