Fraction to Decimal Converter
Convert fractions to decimals, and see which ones terminate, which repeat, and why.
Last reviewed by the Radiatus Cloud team
Need this done properly for your business?
Radiatus delivers secure cloud, DevOps & compliance engineering.
Division is all it is
A fraction is a division waiting to happen: 3/8 is 3 divided by 8, which is 0.375. Every fraction converts by dividing the numerator by the denominator, and the only interesting question is what kind of decimal comes out.
Terminating or repeating is decided by the denominator
A fraction in lowest terms produces a terminating decimal if and only if its denominator's prime factors are just 2s and 5s — the factors of 10. So 1/8 terminates because 8 is 2³, and 1/20 terminates because 20 is 2²×5. Anything else repeats: 1/3 is 0.333…, 1/7 is 0.142857 repeating, 1/6 is 0.1666… . This is not a quirk of the decimal system so much as a consequence of it, and in base 12 the fractions that terminate would be a different set.
Repeating patterns have a predictable length
The repeating block of 1/7 is six digits long, and no repeating block for a denominator n can exceed n − 1 digits. Denominators achieving that maximum, such as 7, 17 and 19, are called full reptend primes. The notation for a repeat is a bar over the repeating digits, or parentheses around them in plain text: 0.1(6) for one sixth.
Rounding a repeating decimal loses exactness
0.333 is not one third, and three of them sum to 0.999 rather than 1. Wherever repeated arithmetic follows, keep the fraction as long as possible and convert at the end — this is the same reason financial and engineering systems hold rational values rather than decimals through intermediate steps.
Recurring decimals convert back exactly
Any repeating decimal is a fraction. The standard technique multiplies by a power of ten to shift one full period, subtracts the original, and solves. It also produces the result that 0.999… equals exactly 1 — not approximately, but identically, since 9x = 9 when x = 0.999… . This is a true statement that reliably provokes disagreement.
Binary makes different fractions exact
Computers store decimals in binary, where the terminating fractions are those with denominators that are powers of 2. One tenth is not one of them, so 0.1 has no exact binary representation and 0.1 + 0.2 gives 0.30000000000000004. A fraction that looks clean in decimal can be inexact in floating point, which is why money is stored as integer minor units or in a decimal type.
Related tools
- Percentage Calculator — Calculate percentages, percentage change, increase and decrease, and reverse percentages, with the working shown for each result.
- Statistical Calculator — Calculate mean, median, mode, standard deviation, and more.
- Probability Calculator — Calculate probabilities for single and combined events, including conditional probability and Bayes' theorem.
- Scientific Calculator — Perform advanced mathematical operations including trig, log, and exponents.
Frequently Asked Questions
Which fractions give terminating decimals?
Those whose denominator, in lowest terms, has only 2s and 5s as prime factors. 1/8 and 1/20 terminate; 1/3, 1/6 and 1/7 repeat.
How long can a repeating pattern be?
At most one less than the denominator. 1/7 repeats every six digits, and denominators achieving that maximum are called full reptend primes.
Is 0.333 the same as one third?
No. It is a rounded approximation, and three of them sum to 0.999 rather than 1. Keep the fraction through intermediate calculations and convert at the end.
Does 0.999… equal 1?
Yes, exactly rather than approximately. Converting it back to a fraction by the standard method gives 9x = 9, so x = 1.
Why does 0.1 + 0.2 not equal 0.3 in code?
Because binary floating point can only represent fractions with power-of-two denominators exactly, and one tenth is not one of them.
Privacy & Security
All processing happens locally in your browser — nothing is uploaded.
How to Use
Enter the numerator and denominator (and whole number for mixed fractions).
Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.
Related Tools
Percentage Calculator
MathCalculate percentages, percentage change, increase and decrease, and reverse percentages, with the working shown for each result.
Statistical Calculator
MathCalculate mean, median, mode, standard deviation, and more.
Probability Calculator
MathCalculate probabilities for single and combined events, including conditional probability and Bayes' theorem.