Decimal to Fraction Calculator
Convert any decimal number to a fraction in its simplest form. Supports terminating decimals (0.75) and repeating decimals (0.333..., 0.142857...).
Enter a decimal. For repeating decimals, append ... or use the repeating block field below.
Append "..." to indicate a repeating decimal (e.g. 0.333...)
Leave blank for terminating decimals.
What is a Decimal to Fraction Converter?
A decimal to fraction converter transforms a decimal number into its equivalent rational fraction in lowest terms — the form where the numerator and denominator share no common factors other than 1. For example, 0.75 becomes 3/4 and 0.333... becomes 1/3. This conversion is essential in mathematics, engineering, cooking, carpentry, and any field where fractional measurements are required or preferred over decimal notation.
The conversion method differs depending on whether the decimal terminates or repeats. Terminating decimals (those that end, like 0.125) are converted by multiplying by a power of 10 to eliminate the decimal point, then simplifying by the greatest common factor (GCF). Repeating decimals require an algebraic technique: assigning the decimal to a variable, multiplying by 10 raised to the power of the repeating block length, and subtracting to eliminate the repeating portion — a technique formalised in 17th-century number theory.
Every rational number — any number expressible as a ratio of two integers — is either a terminating or repeating decimal. Numbers like π (3.14159...) and √2 (1.41421...) are irrational: their decimal expansions neither terminate nor repeat, and they cannot be expressed as fractions. The Fundamental Theorem of Arithmetic guarantees that any terminating decimal has a denominator that, in lowest terms, contains only the prime factors 2 and 5.
How to Convert Repeating Decimals
For a purely repeating decimal like 0.333...:
How the Decimal to Fraction Calculator Works
Formula, assumptions, and calculation steps for this math tool.
Methodology
Math calculators apply the relevant arithmetic, algebraic, geometric, or numeric rule to the values entered and simplify the result where possible.
Calculation Steps
- Read the values and operation selected.
- Normalize signs, decimals, fractions, or units if needed.
- Apply the mathematical rule or formula.
- Format the answer and any intermediate values for checking.
Assumptions and Limits
- Inputs must be within the supported domain of the operation.
- Decimal answers may be rounded for readability.
- Symbolic simplification is limited to the calculator scope.
Frequently Asked Questions
A terminating decimal has a finite number of digits after the decimal point, such as 0.25 or 1.375. These always convert to fractions with denominators that are powers of 2 and/or 5.
A repeating decimal has one or more digits that repeat infinitely, like 0.333... = 1/3 or 0.142857142857... = 1/7. Every rational number is either terminating or repeating.
Divide both the numerator and denominator by their GCF (Greatest Common Factor). For example, 6/8 → GCF(6,8)=2 → 3/4.
A mixed number combines a whole number and a proper fraction, such as 1 3/4. It is used when the decimal value is greater than 1.
Only rational numbers can be written as fractions. Irrational numbers like π (3.14159...) and √2 (1.41421...) have non-terminating, non-repeating decimals and cannot be expressed as fractions.
Real-World Applications
Common Mistakes
Common Decimal-to-Fraction Reference
| Decimal | Fraction | Type |
|---|---|---|
| 0.5 | 1/2 | Terminating |
| 0.25 | 1/4 | Terminating |
| 0.75 | 3/4 | Terminating |
| 0.333... | 1/3 | Repeating |
| 0.666... | 2/3 | Repeating |
| 0.142857... | 1/7 | Repeating (6-digit block) |
| 0.125 | 1/8 | Terminating |
| 0.1 | 1/10 | Terminating |
References
- Euclid. Elements. c. 300 BC (T.L. Heath translation, Dover, 1956).
- Niven, Ivan et al. An Introduction to the Theory of Numbers. Wiley, 1991.
- Stewart, James. Precalculus: Mathematics for Calculus. Cengage Learning, 2015.
- National Council of Teachers of Mathematics. Principles and Standards for School Mathematics. NCTM, 2000.
- Hardy, G.H. & Wright, E.M. An Introduction to the Theory of Numbers. Oxford University Press, 2008.
Related Calculators
Browse all Math calculators →Fraction to Decimal Calculator
Convert any fraction to a decimal, including repeating and terminating decimals.
Fraction Calculator
Add, subtract, multiply, and divide fractions. Simplify fractions and convert to decimals.
Percentage Calculator
Calculate percentages, percentage change, and percentage of a number easily.