Decimal to Fraction Calculator
Convert a decimal into a simplified fraction with a configurable maximum denominator.
Repeating or irrational decimals require an approximation. Increase the maximum denominator for a closer but potentially more complex fraction.
How to use this calculator
Enter the decimal and a maximum denominator. The calculator uses a continued-fraction approximation and reports the difference between the fraction and the entered decimal.
Formula
The decimal is expanded as a continued fraction until the value is matched closely or the next denominator would exceed the selected maximum.
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewIfrahMSc Mathematics
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
Why is my fraction an approximation?
Some decimals repeat indefinitely or represent irrational values, so no finite fraction exactly matches the displayed input.
What does maximum denominator do?
It limits fraction complexity; a larger limit can produce a closer approximation.
Can I convert a negative decimal?
Yes. The negative sign is applied to the numerator.
How do I convert a repeating decimal to a fraction?
Use algebra: for x = 0.333…, 10x = 3.333…, so 9x = 3 and x = 1/3. This calculator finds the closest simple fraction within the maximum denominator.
What is 0.125 as a fraction?
0.125 is 125/1000. Dividing the numerator and denominator by their greatest common factor, 125, simplifies it to 1/8. Other common eighths are 0.375 = 3/8, 0.625 = 5/8 and 0.875 = 7/8.
What is 0.75 as a fraction?
0.75 is 75/100, which simplifies to 3/4 by dividing the numerator and denominator by 25.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Marecek, L., Anthony-Smith, M., & Honeycutt Mathis, A. (2020). Prealgebra 2e. OpenStax. View source
- Marecek, L., Anthony-Smith, M., & Honeycutt Mathis, A. (2020). Intermediate algebra 2e. OpenStax. View source
- International Organization for Standardization. (2019). ISO 80000-2: Quantities and units—Part 2: Mathematics. View source
- Kirk, D. (2023). Contemporary mathematics. OpenStax. View source
- Abramson, J. (2021). College algebra 2e. OpenStax. View source