Decimal to Fraction Calculator: Exact & Mixed
Every terminating decimal is a fraction in disguise: 0.75 is 75/100, which simplifies to 3/4, and 1.6 is 16/10, which simplifies to 8/5 or 1 3/5 as a mixed number. The conversion is exact — no rounding, no guessing — because the decimal's digits tell you exactly which fraction it is.
Type any decimal and this calculator gives you the exact simplified fraction, the mixed number, and the best approximation with a denominator of 1000 or less — handy when the exact fraction, like 3333/10000 for 0.3333, is clumsier than the neat 1/3 you actually want. To add, subtract, multiply or divide fractions, use the fraction calculator.
Solution
How It Works
Every terminating decimal is a fraction in disguise. The digits after the decimal point tell you the denominator: one decimal place means tenths, two means hundredths, three means thousandths, and so on. So 0.75 is 75/100, 0.125 is 125/1000 and 1.6 is 16/10. The conversion is exact — no rounding, no guessing — because the digits you typed are the fraction.
The next step is simplifying: divide the top and bottom by their greatest common divisor (GCD). The GCD of 75 and 100 is 25, so 75/100 simplifies to 3/4. The GCD of 125 and 1000 is also 125, so 0.125 becomes 1/8. This calculator finds the GCD by the Euclidean algorithm, the same method Euclid described over two thousand years ago, so the simplified fraction is always in its lowest terms. Dividing by hand, digit by digit, is long division.
When the fraction is bigger than 1 it can also be written as a mixed number — a whole number plus a proper fraction. 1.6 is 16/10, which simplifies to 8/5; dividing 8 by 5 gives 1 remainder 3, so the mixed number is 1 3/5. Negative numbers keep the minus sign on the whole part: −1.6 is −1 3/5.
Sometimes the exact fraction is clumsier than you want. 0.3333 is exactly 3333/10000, but 1/3 is far more useful and is equal to 0.3333 to four decimal places. So the calculator also gives the best approximation with a denominator of 1000 or less, found by continued fractions — writing the decimal as a ladder of fractions and stopping at the last step whose denominator fits the limit. When the exact fraction already has a small denominator, the approximation is the same as the exact fraction.
Worked Example
0.75 is 75/100; the GCD of 75 and 100 is 25, so the exact simplified fraction is 3/4. As a mixed number it is still 3/4, and the best approximation is 3/4 as well.
1.6 is 16/10, which simplifies to 8/5; as a mixed number that is 1 3/5. 0.125 is 125/1000, which simplifies to 1/8. 2.5 is 25/10 = 5/2, or 2 1/2 as a mixed number.
0.3333 is exactly 3333/10000 — the digits you typed, and it cannot be simplified further. Its best approximation with a denominator up to 1000 is 1/3, which is 0.3333… and matches the input to four decimal places. The exact fraction and the approximation answer different questions, and the calculator shows both.
Whole numbers work too: 5 is 5/1, and 0 is 0/1.
Assumptions
- Exact conversion of the digits you typed. 0.3333 means 3333/10000, not 1/3 — the calculator never assumes you meant a repeating decimal.
- Terminating decimals only. A decimal with a fixed number of places has an exact fraction. A repeating decimal like 0.333… needs a different method; type as many 3s as you like and the best approximation will show 1/3.
- At most 10 decimal places. More places would make the numerator too large to handle exactly. Ten places is far more precision than everyday conversions need.
- At most 15 digits in total, and a size within 1,000,000,000,000. These caps keep the arithmetic exact — every digit of the result is correct, not an approximation.
- Best approximation by continued fractions. The approximation is the closest fraction reachable by continued fractions with a denominator of 1000 or less — the standard method for this, and the one that gives 1/3 for 0.3333 and 22/7 for 3.142857.
Sources: No external data is used on this page — every figure is calculated from the decimal you enter, using the GCD method for the exact fraction and continued fractions for the approximation. Last reviewed: 15 November 2026.
Built and tested by SumKitTool — see how we check our numbers.
How to Use This Calculator
Type any decimal into the box — 0.75, 1.6, −2.25, or a whole number like 5 — and the headline result shows the fraction (as a mixed number when it is bigger than 1). The table shows the exact simplified fraction, the mixed number, the best approximation with a denominator up to 1000, and the working: the unsimplified fraction and the GCD it was divided by. Results update as you type, and the Reset button restores 0.75.
To see the difference between the exact fraction and the approximation, try 0.3333: the exact answer is 3333/10000, while the best approximation is 1/3. Try 3.142857 and the approximation is 22/7 — the classic rough value of π.
Tips and Practical Advice
Recognise the common ones and you will rarely need a calculator: 0.5 is 1/2, 0.25 is 1/4, 0.75 is 3/4, 0.125 is 1/8, 0.2 is 1/5, and 0.333… is 1/3. The eighths are the most useful set in everyday measuring: 0.375 is 3/8, 0.625 is 5/8 and 0.875 is 7/8.
If you are converting a measurement, the approximation is usually what you want — a carpenter would rather hear 1/3 than 3333/10000. But if you are doing exact arithmetic, use the exact fraction: 1/3 of 0.3333 is not quite the same as 1/3 of 1/3.
Watch out for decimals that look neat but aren't: 0.1 is 1/10 exactly, but 0.1 in a computer is stored as a tiny bit more than 1/10, which is why this calculator works from the digits you type rather than the computer's stored value.
Frequently Asked Questions
How do you convert a decimal to a fraction?
Write the decimal over a power of 10, then simplify. 0.75 has two decimal places, so it is 75/100; dividing the top and bottom by their greatest common divisor, 25, gives 3/4. This calculator does the same thing exactly, using the digits you typed.
What is 0.3333 as a fraction?
Exactly, 0.3333 is 3333/10000 — that is the fraction of the digits you typed, and it cannot be simplified further. Its best approximation with a denominator up to 1000 is 1/3, which equals 0.3333… to four decimal places. The exact fraction and the approximation are different answers to different questions.
How do you turn an improper fraction into a mixed number?
Divide the numerator by the denominator: the whole-number part is the quotient and the remainder goes over the denominator. 1.6 is 8/5, and 8 ÷ 5 = 1 remainder 3, so it is 1 3/5. Negative numbers keep the minus sign on the whole part: −1.6 is −1 3/5.
Why does this calculator limit decimals to 10 places?
The exact fraction is built from the digits you type, and more than 10 decimal places makes the numbers too large to handle exactly. Ten places is far more precision than everyday conversions need — 0.3333333333 already gives 1/3 as its best approximation.
Last updated: