Fraction to Decimal Calculator

Fraction to Decimal Calculator converts fractions into exact or repeating decimals, simplifies fractions, shows long-division steps, and displays rounding options.

Top of the fraction. Negative values allowed.
Bottom of the fraction. Must not be 0.
Use n for numerator and d for denominator. Parsed with Math.js and shown exactly (no LaTeX).
Examples
Click an example to autofill the fields and expression, then press Calculate.

Results

Equation (exact Math.js expression)
n / d
Decimal
0.5
Simplified Fraction
1/2
As Percentage
50%
Mixed Number
0 1/2

Helping notes

  • Leave “Expression” empty to compute just n / d.
  • Use n and d inside the expression to reference Numerator and Denominator.
  • Uses Math.js BigNumber with 64‑digit precision for reliable results.

What is Fraction to Decimal Calculator

A Fraction to Decimal Calculator is a simple but powerful tool that converts a rational number given as a fraction into its decimal representation. It accepts proper fractions, improper fractions, and mixed numbers, and returns the decimal either exactly (when terminating or repeating) or numerically to a specified precision. The calculator also explains the conversion steps, shows long-division work, identifies repeating cycles, and can express repeating decimals with overline notation for clarity.

\[ \text{Decimal} = \frac{\text{numerator}}{\text{denominator}}. \]

About the Fraction to Decimal Calculator

The tool relies on basic division: numerator ÷ denominator. For mixed numbers it first converts to an improper fraction:

\[ a \; \frac{b}{c} \;=\; \frac{a\cdot c + b}{c}. \]

Not all fractions produce terminating decimals. A fraction \(\dfrac{p}{q}\) (in lowest terms) has a terminating decimal expansion exactly when the denominator \(q\) has no prime factors other than 2 and 5. Otherwise the decimal repeats. The calculator detects this and either writes the repeating block with an overline, for example:

\[ \frac{1}{3}=0.\overline{3},\qquad \frac{7}{12}=0.58\overline{3}. \]

It can also present a rounded decimal to a user-specified number of decimal places, show the long-division table of remainders (so you can see how the repeat cycle appears), and simplify input fractions via gcd before conversion:

\[ \text{Simplify: }\frac{p}{q}\rightarrow\frac{p/\gcd(p,q)}{q/\gcd(p,q)}. \]

How to Use this Fraction to Decimal Calculator

  1. Enter the fraction as a/b, or as a mixed number (e.g., 3 1/4). The calculator will accept integers, negative values, and zero where appropriate.
  2. Optionally select whether you want the exact decimal (with repeating notation), a rounded decimal to N places, or the long-division steps shown.
  3. Click Convert — the calculator simplifies the fraction, performs division, and outputs the decimal result plus an explanation.
  4. If the decimal repeats, the tool highlights the repeating sequence and displays it with an overline; if it terminates, it confirms the denominator's prime factorization contains only 2 and/or 5.
  5. Use the long-division view to study remainders and repeat cycles: each remainder maps to the next digit, and a repeated remainder signals the start of a repeating block.

Examples

\[ \frac{1}{4}=0.25 \quad(\text{terminating, }4=2^2),\qquad \frac{1}{6}=0.1\overline{6}\quad(\text{since }6=2\cdot3\ \text{contains }3). \]

This Fraction to Decimal Calculator is ideal for students learning about decimals and rational numbers, teachers preparing examples, and anyone needing accurate conversions or clear long-division demonstrations. It’s a practical educational tool and a handy utility for arithmetic, finance, and programming tasks.

More Math & Algebra Calculators