Fraction to Decimal Calculator
Convert fractions to decimals, percentages, and repeating notation.
Fractions
Mixed Numbers
Simplify
Decimal → Fraction
Fraction → Decimal
Fractions
How Does Fraction to Decimal Conversion Work?
Every fraction converts to a decimal by long division — divide the numerator by the denominator and read off the digits. The result is either a terminating decimal (like 1/8 = 0.125) or a repeating decimal (like 1/3 = 0.333… or 2/7 = 0.285714285714… with a 6-digit cycle). A fraction in lowest terms terminates if and only if its denominator's prime factors are exclusively 2s and 5s.
This calculator runs the long division using BigInt arithmetic so cycle detection is exact for any input, and it renders the repeating digits with the standard overline notation. It also reports the cycle length and the equivalent percentage. Reverse direction: decimal to fraction.
How the Fraction to Decimal Calculator Works
Long-divide the numerator by the denominator
Standard long division, exactly like grade-school math but tracked digit-by-digit with BigInt remainders so no precision is lost on long expansions.
Track remainders to detect a cycle
Every long-division remainder is recorded. When a remainder repeats, the digits between are the repeating cycle. This is a mathematically rigorous detection, not pattern guessing.
Identify terminating vs repeating
If a remainder of 0 appears before any repeat, the decimal terminates. Otherwise the cycle starts at the first repeated remainder and continues forever.
Render with overline notation
Repeating digits are shown with an overline above them — the universal mathematical convention for indicating an infinite repeat.
6 Ways to Use Fraction to Decimal Conversion
Read fractions on a calculator
Most physical calculators only display decimals. Converting 7/8 to 0.875 lets you enter it for further work.
Spreadsheet conversion
Spreadsheets typically need decimal cells. Convert 11/16 to 0.6875 for direct entry without rounding.
Probability check
Convert 1/6 to 0.1667 (or 16.67%) to compare against decimal-form probabilities in textbooks or papers.
Discover repeating cycles
Find the surprising cycle in 1/7 (six digits), 1/17 (sixteen digits), or 1/97 (96 digits). The calculator shows the full cycle.
Engineering tolerances
Convert spec fractions to decimals to check against measurement tools that report in thousandths or microns.
Education
Demonstrate why some fractions terminate and others don't — explore patterns by varying the denominator's prime factorisation.
Best Practices for Fraction-to-Decimal Conversion
Reduce the fraction first. 22/44 simplifies to 1/2 = 0.5, which is faster than long-dividing 22 by 44. Reduction also reveals whether the decimal will terminate (denominator factors of 2 and 5 only).
Use the cycle, don't round it. Writing 1/7 as 0.143 instead of 0.142857… repeating loses precision in any chain of further arithmetic. Carry the cycle through your work and round only at the very end.
Watch for very long cycles. 1/19 has an 18-digit cycle. 1/97 has a 96-digit cycle. The cycle length always divides Euler's totient φ(d) of the denominator.
Why Fraction-to-Decimal Conversion Matters
Interop with decimal tools
Modern measurement, finance, and science instruments report in decimals. Converting from the exact fractional source is the bridge to those systems.
Detect rational patterns
Long division reveals the internal structure of a fraction — terminating vs repeating, cycle length, and the digits themselves often have number-theoretic significance.
Percentage conversion
Decimal form is just one ×100 away from percentage form. 3/8 = 0.375 = 37.5% — the same exact value in three notations.
Teaching number systems
The terminating-vs-repeating distinction is the cleanest way to introduce the structure of rational numbers and the boundary with irrational numbers.
Tricky Cases for Fraction-to-Decimal
Very long cycles
1/97 has a 96-digit repeating cycle. The calculator caps cycle detection at 256 digits to keep runtime bounded, but every cycle within that limit is found exactly.
Pure integers
21/7 = 3, with no decimal portion. The calculator simplifies first then displays just the integer.
Zero numerator
0/anything = 0. No division necessary, no cycle to detect.
Negative fractions
−2/7 = −0.285714 repeating. The sign sits on the decimal; the overline still marks the repeating digits.
Core Fraction-to-Decimal Formulas
Let n/d be the input fraction in lowest terms and m the count of factors of 2 and k the count of factors of 5 in d.
Long division
n/d = (n div d) . (decimal digits from repeated 10× remainders)
Terminating
d = 2ᵐ × 5ᵏ ⇔ terminates after max(m, k) digits
Repeating
Any other prime in d ⇒ decimal repeats
Cycle length
L divides φ(d / 2ᵐ / 5ᵏ)
Percent form
decimal × 100%
From mixed
w n/d = w + n ÷ d
Common Fraction-to-Decimal Mistakes
Rounding too early
Writing 1/3 as 0.33 and chaining further multiplication compounds error. Keep the fraction or full cycle through long calculations.
Confusing 0.333 with 0.333…
The trailing dots (or overline) matter. 0.333 ≠ 1/3; only the repeating form equals 1/3 exactly.
Skipping the simplification
Long-dividing 14/21 by hand is slower than simplifying first to 2/3 = 0.666 repeating. Always reduce before dividing.
Misplacing the decimal point
Long division by hand often mislocates the decimal. The calculator handles this automatically by tracking the integer-part separately.
Assuming all repeat in the same cycle length
1/7 has cycle 6, 1/11 has cycle 2, 1/13 has cycle 6, 1/17 has cycle 16. There's no shortcut — each denominator has its own pattern.
Reporting the wrong percentage
3/8 = 0.375 = 37.5%, NOT 3.75%. Multiply by 100 and don't lose the decimal point.
Exact long division using BigInt arithmetic, so repeating cycles are detected algorithmically — not estimated.
Cycle detection runs in time linear in cycle length, capped at 256 digits to keep the page responsive on the trickiest inputs.
Fraction to Decimal — Frequently Asked Questions
Related Calculators
Pair the fraction calculator with other math tools for ratios, percentages, factorisation, and step-by-step number work.
- Percentage CalculatorCalculate % of a number, percentage change, and reverse percentages.
- Ratio CalculatorSimplify, scale, and compare ratios; solve equivalent ratios and proportions.
- Common Factor CalculatorGreatest common factor (GCF, HCF, GCD) with step-by-step prime factorization.
- Scientific CalculatorAdvanced trig, log, exponent, root, factorial, and memory functions.
- Prime Factorization CalculatorPrime factors with a visual factor tree and step-by-step working.
- Scientific Notation CalculatorConvert to and from scientific, engineering, and E-notation with arithmetic support.