Decimal to Fraction Converter
Two species of decimal
Decimals come in two kinds, and they convert by two different methods. A terminating decimal ends: 0.375, 1.25, 0.0625. These convert exactly by writing the digits over a power of ten and cancelling by the greatest common divisor — the converter's first mode, which is exact by construction. A repeating decimal never ends: 0.333…, 0.142857142857…. No finite string of digits is that number, so the second mode takes the repeating block separately and uses the classical subtraction trick to recover the exact fraction — 1/3, 1/7 — that generated it. Choosing the right mode is the whole skill; the arithmetic is mechanical from there.
The conversion table worth memorising
| Decimal | Fraction | Decimal | Fraction |
|---|---|---|---|
| 0.0625 | 1/16 | 0.5 | 1/2 |
| 0.125 | 1/8 | 0.625 | 5/8 |
| 0.2 | 1/5 | 0.666… | 2/3 |
| 0.25 | 1/4 | 0.75 | 3/4 |
| 0.333… | 1/3 | 0.875 | 7/8 |
| 0.375 | 3/8 | 0.142857… | 1/7 |
The pattern in the table is the theorem in disguise: a fraction terminates exactly when its denominator (in lowest terms) has no prime factors except 2 and 5 — the factors of ten. Eighths and sixteenths terminate; thirds and sevenths must repeat. Every decimal you will ever meet obeys that rule.
Worked examples
Terminating: 0.375 = 375/1000 → divide by GCD 125 → 3/8. And 1.25 = 125/100 → 5/4, shown as the mixed number 1 1/4.
Repeating, simple: 0.333… — enter 0.3 with repeat block '3' → 1/3.
Repeating, with a lead-in: 0.1666… — enter 0.1 with repeat block '6' → 1/6 (the non-repeating digit is subtracted before the nines denominator is applied).
The sevenths cycle: 0.142857 repeating → 142857/999999 → 1/7.
Why convert at all? Where fractions still rule
Decimals won the general war — money, science and screens all speak them — but fractions hold three territories where they remain the native language. Imperial measurement: rulers, drill bits, wrench sizes and lumber are graduated in halves, quarters, eighths and sixteenths, so a digital caliper reading of 0.4375 inches is useless until it becomes 7/16. Cooking: recipes scale in fractions (a third of 3/4 cup is exactly 1/4 cup; in decimals it is 0.25 of 0.75 and a small prayer). Exact arithmetic: any calculation that must be right rather than close — interest apportionment, dosage, gear ratios — keeps values as fractions until the final step, because a fraction carries infinite precision in two small integers. The converter serves all three: it reads the decimal your instrument reports and hands back the fraction your hands need.
Frequently asked questions
How do you convert a decimal to a fraction?
For a terminating decimal, write it over the matching power of ten and cancel down: 0.375 is 375/1000, and dividing top and bottom by their greatest common divisor (125) gives 3/8. The place value of the last digit chooses the denominator — tenths, hundredths, thousandths — and the GCD does the simplifying. This converter performs exactly that, so its answers are exact, not rounded: 0.333 typed as three digits is 333/1000, a genuinely different number from 1/3. If your decimal goes on forever, that is a different species — use the repeating mode described in the next answer, which recovers the exact fraction the decimal came from.
How do you convert a repeating decimal like 0.333… to a fraction?
With a small piece of algebra. Call the number x. For 0.333…, 10x = 3.333…, and subtracting x from 10x cancels the infinite tail: 9x = 3, so x = 3/9 = 1/3. The general recipe multiplies by 10 for each repeating digit and subtracts the non-repeating part — for 0.142857142857… (the famous 1/7 expansion), the six-digit repeat gives 999999x = 142857, and 142857/999999 reduces to exactly 1/7. This converter's repeating mode automates it: type the part before the repeat and the repeating block separately (for 0.1666…, that is 0.1 and '6'), and it returns the exact fraction — 1/6 — instead of the approximation a plain decimal entry would give.
What is 0.625 as a fraction, and other common ones?
0.625 is 5/8 — and the eighths are worth learning as a family, because they run through cooking, carpentry and American measurements: 0.125 = 1/8, 0.25 = 1/4, 0.375 = 3/8, 0.5 = 1/2, 0.625 = 5/8, 0.75 = 3/4, 0.875 = 7/8. The sixteenths refine them for ruler work (0.0625 = 1/16). Thirds and sixths are the repeating ones — 0.333… and 0.666… — and sevenths cycle the six digits 142857. A decimal that ends in a clean power-of-two fraction will always terminate; a denominator with any prime factor other than 2 and 5 (3, 7, 11…) forces the decimal to repeat. That single fact explains every row of every conversion table.
What is a mixed number, and when should I use one?
A mixed number writes a fraction larger than one as a whole part plus a proper fraction: 5/4 becomes 1 1/4. Both forms are the same number; they serve different readers. Mixed numbers are the language of kitchens, workshops and tape measures — '1 1/4 cups' is instantly graspable, and no carpenter marks 5/4 on a board. Improper fractions (top-heavy ones like 5/4) are the language of algebra, where they multiply, divide and cancel without the whole part getting in the way. This converter shows both for any result above one, so you can take the form your context speaks. Negative decimals convert the same way, with the sign carried outside the fraction.
Why does my calculator say 0.1 + 0.2 is not exactly 0.3?
Because computers store decimals in binary, and 0.1 has no exact binary representation — just as 1/3 has no exact decimal one. The stored value is the nearest binary fraction, off by a hair (about 5 × 10^-18), and the errors occasionally poke through the rounding: 0.1 + 0.2 comes out as 0.30000000000000004. Fractions are immune to this — 1/10 + 2/10 is exactly 3/10 in rational arithmetic, forever — which is one reason exact fraction conversion still matters in a decimal world: money, measurements and mathematics all contain numbers that must be right, not merely close. This converter works with the digits you type as exact decimal text, so 0.1 converts to exactly 1/10.
Related tools
Conversion method and worked examples last verified: 24 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.