Decimal to Fraction

Mathematics

Convert terminating and repeating decimals into exact simplified fractions and mixed numbers using continuous fraction expansion. Perfect for woodworking, machining, cooking measurements, and algebra problems.

Calculated Result
1/3

Mixed number 1/3

Decimal check
0.333333333333
Formula: Continued-fraction lowest terms

About this calculator

Working across engineering blueprints, culinary recipes, and academic mathematics frequently requires switching between decimal measurements and fractional proportions. Decimal values like 0.375 or 0.8333 can be difficult to interpret on imperial tape measures or in algebraic proofs without converting them into exact numerator and denominator representations.

The algorithm uses continued-fraction expansion to find the exact rational fraction in lowest terms, along with the corresponding mixed number. A helpful caveat is that floating-point rounding may introduce slight deviations for repeating decimals unless sufficient decimal places are provided.

How It Works & Formula

FormulaContinued-fraction approximation of x = n / d in lowest terms

The converter analyzes the input decimal, determines its place value or continued fraction expansion, computes the greatest common divisor (GCD) of the numerator and denominator, and divides both by the GCD to present the lowest irreducible fraction.