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.
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
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
| Decimal value | Fraction numerator |
|---|---|
| 0.3125 | 5 |
| 0.5 | 1 |
| 0.625 | 5 |
| 0.7813 | 7,813 |
| 0.9375 | 15 |
| 1.25 | 5 |
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.