Math

Decimal to Fraction Calculator

Convert a terminating decimal to an exact reduced fraction without floating-point rounding.

Exact method explained belowEditable inputs
Calculation notebook
Calculation notebook

The formula and worked example below explain the calculation.

See the method

Enter your values

Runs on your device

Your answer

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter terminating decimal.
  2. Select Calculate to view the result.
  3. Check the method and assumptions below before using the result.

The method, explained

Write the decimal digits as an integer over 10 raised to the number of decimal places, then divide numerator and denominator by their greatest common divisor.

A WORKED EXAMPLE

Using terminating decimal = 0.125, the result is 1/8. Change these example inputs to match your task; use the method above to check each step.

Understanding your result

Yes. The entered decimal is processed as digits using integer arithmetic. An entered approximation such as 0.333 is exactly 333/1000, not 1/3.

What to keep in mind

Terminating decimals only; repeating notation and scientific notation are not accepted. Finite-precision arithmetic is used. Check the domain and the stated convention before using an approximation.

Common questions

Is the fraction exact?

Yes. The entered decimal is processed as digits using integer arithmetic. An entered approximation such as 0.333 is exactly 333/1000, not 1/3.

How can I check the result?

Write the decimal digits as an integer over 10 raised to the number of decimal places, then divide numerator and denominator by their greatest common divisor. The worked example uses editable inputs. Calculations run on your device; no external API or account is required.

Methodology maintained by ClarityKit. How these tools are built and checked.