Home · Math · Fractions · Decimal to Fraction Calculator

Decimal to Fraction Calculator

The decimal is written over 10,000 — four decimal places of precision — and reduced by the greatest common divisor. Repeating decimals cannot be represented exactly this way and are rounded at the fourth decimal place.

Your figures

Example result — edit the figures to make it yours

5

Fraction numerator

Fraction denominator8
Check: numerator ÷ denominator0.6250

What this calculator does

The decimal is written over 10,000 — four decimal places of precision — and reduced by the greatest common divisor. Repeating decimals cannot be represented exactly this way and are rounded at the fourth decimal place. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

Fraction = (value × 10,000 ÷ gcd) ÷ (10,000 ÷ gcd)

The decimal is written over 10,000 — four decimal places of precision — and reduced by the greatest common divisor. Repeating decimals cannot be represented exactly this way and are rounded at the fourth decimal place.

Inputs use the units shown in the field labels and every denominator or total must be non-zero. The result is an arithmetic value from the stated formula only; it is not a quote, a rating or professional advice.

Worked example

With the example inputs this page opens with (decimal value 0.625), the result is 5 — fraction numerator. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying decimal value
Decimal valueFraction numerator
0.31255
0.51
0.6255
0.78137,813
0.937515
1.255

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Decimal to Fraction Calculator work?

The decimal is written over 10,000 — four decimal places of precision — and reduced by the greatest common divisor. Repeating decimals cannot be represented exactly this way and are rounded at the fourth decimal place. Decimal value → Fraction numerator. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Decimal to Fraction Calculator need?

Decimal value → Fraction numerator. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Decimal to Fraction Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.