Learn more
Type a decimal such as 0.375 or a repeating decimal such as 0.1(6) and get the fraction in lowest terms, the mixed number and the working. Switch modes to turn a fraction into its exact decimal.
How to use the decimal to fraction calculator
Choose Decimal → fraction and type your number, for example 0.375, 2.75 or -0.06. If the decimal repeats forever, you have two options: wrap the repeating block in brackets, as in 0.1(6) for 0.1666…, or type the start of the number in the first box and the repeating digits in the Repeating digits box. The answer appears as a fraction in lowest terms, a mixed number, the unsimplified fraction and a percentage, with every step written out.
Switch to Fraction → decimal to go the other way. Type a fraction such as 7/12 or a mixed number such as 1 3/4 (with a space between the whole number and the fraction). The calculator does exact long division and tells you whether the decimal stops or repeats, and which digits repeat.
The formula for terminating decimals
A decimal that ends is simply a fraction with a power of ten underneath:
Worked example: 0.375 has three decimal places, so it equals 375/1000. The greatest common factor (GCF) of 375 and 1000 is 125. Dividing both by 125 gives 3/8, which is the calculator's default answer. A number bigger than 1 works the same way: 2.75 = 275/100 = 11/4, which is the mixed number 2 3/4.
Converting repeating decimals
A repeating decimal is also an exact fraction, but you need a small algebra trick to find it. Call the number x, multiply it by powers of ten so that two copies line up with identical repeating tails, then subtract:
The shortcut behind this is: take all the digits up to the end of the first repeat (16), subtract the digits before the repeat starts (1), and divide by a number made of one 9 for each repeating digit followed by one 0 for each non-repeating decimal digit (90). For 0.(142857) that gives 142857/999999 = 1/7. For 0.(9) it gives 9/9 = 1 — a famous result showing that 0.999… really is equal to 1.
Fraction to decimal and why some decimals repeat
To turn a fraction into a decimal, divide the top by the bottom. With 7/12, long division gives 0.58333…, and the remainder 4 keeps returning, so the 3 repeats forever: 0.58(3). A simplified fraction gives a terminating decimal only when its denominator has no prime factors other than 2 and 5. That is why 3/8 (8 = 2×2×2) stops at 0.375, while 1/3, 1/6, 1/7 and 7/12 all repeat. The length of the repeating cycle can never be longer than the denominator minus one; 1/7 uses the maximum six digits.
How to read the result
- Simplest fraction — numerator and denominator share no common factor except 1. This is the form teachers usually expect.
- Mixed number — a whole number plus a proper fraction, handy for measurements such as 2 3/4 inches. Use our fraction calculator to add, subtract, multiply or divide fractions.
- Before simplifying — the raw fraction over a power of ten (or over 9s and 0s), useful for checking homework steps.
- Percent — the same value multiplied by 100; see the percentage calculator for more percent problems.
Common mistakes
- Treating a rounded decimal as repeating. 0.33 is exactly 33/100, not 1/3. Only mark digits as repeating if they truly go on forever.
- Forgetting to simplify. 50/100 is correct but 1/2 is the expected answer. Our GCF calculator shows how to find the common factor.
- Placing the repeat wrongly. 0.1(6) = 1/6 but 0.(16) = 16/99. The brackets must surround only the digits that repeat.
- Calculator display limits. A phone calculator shows 0.6666666667 for 2/3 because it rounds the last digit. This tool uses exact whole-number arithmetic, so it never introduces rounding errors.
Quick reference
| Decimal | Fraction | Decimal | Fraction |
|---|---|---|---|
| 0.125 | 1/8 | 0.(3) | 1/3 |
| 0.2 | 1/5 | 0.(6) | 2/3 |
| 0.25 | 1/4 | 0.1(6) | 1/6 |
| 0.375 | 3/8 | 0.8(3) | 5/6 |
| 0.5 | 1/2 | 0.(1) | 1/9 |
| 0.625 | 5/8 | 0.(09) | 1/11 |
| 0.75 | 3/4 | 0.(142857) | 1/7 |
Sources: the place-value and repeating-decimal methods are standard arithmetic covered in the U.S. Common Core State Standards (Grade 7 and Grade 8, The Number System) and in any pre-algebra textbook.
Cite or link to this page
Using this decimal to fraction calculator in an article, report or homework? Copy a citation or a ready-made link:
Calcivia. (2026). Decimal to Fraction Calculator. Retrieved November 11, 2026, from https://www.calcivia.com/decimal-to-fraction-calculator/"Decimal to Fraction Calculator." Calcivia, 2026, https://www.calcivia.com/decimal-to-fraction-calculator/. Accessed 11 Nov. 2026.<a href="https://www.calcivia.com/decimal-to-fraction-calculator/">Decimal to Fraction Calculator</a> by Calcivia