conversion
Decimal to Fraction Converter
Convert any decimal number to a simplified fraction with step-by-step breakdown.
Click to show tips
Try an Example
Pick a scenario to see how the calculator works, then adjust the values
Decimal to Fraction Converter
Convert any decimal number to a simplified fraction with step-by-step breakdown.
Key values: 0.75 · = 3/4
Convert 0.333... (Repeating) to a Fraction
The classic repeating decimal — what fraction does 0.333... equal?
Key values: 0.333... · = 1/3
Converting Decimals to Fractions
Every decimal that either terminates or eventually repeats can be written as a fraction. The method depends on which type of decimal you have.
Terminating Decimals
A terminating decimal has a finite number of digits. To convert it, write it over the appropriate power of 10 and simplify.
In general, if the decimal has digits after the point:
Then reduce by dividing both by their GCD.
More Examples
| Decimal | As fraction | Simplified |
|---|---|---|
| 0.5 | ||
| 0.75 | ||
| 0.125 | ||
| 0.4 | ||
| 2.35 |
Repeating Decimals
A repeating decimal has a block of digits that cycles forever. The conversion uses an elegant algebraic trick.
Purely Repeating
For where has digits:
Why it works: Let . Multiply by :
Subtract: , so .
Mixed Repeating Decimals
When some digits don't repeat, like (= ), with non-repeating digits and repeating digits:
For : .
Which Fractions Terminate?
A fraction in lowest terms produces a terminating decimal if and only if the prime factorization of contains only 2s and 5s:
| Denominator | Factors | Terminates? |
|---|---|---|
| 2, 4, 5, 8, 10, 16, 20, 25, 32, 40, 50, 100 | Only 2 and/or 5 | Yes |
| 3, 6, 7, 9, 11, 12, 13, 14, 15 | Contains 3, 7, 11, or 13 | No — repeats |
Why 2 and 5? Our number system is base 10, and . A fraction terminates in base exactly when its denominator divides some power of . In base 10, that means denominators whose only prime factors are 2 and 5.
Frequently Asked Questions
How do I convert a terminating decimal to a fraction?
Write the decimal digits as the numerator over the appropriate power of 10, then simplify by dividing both by their GCD. For example, . , so and , giving .
How do I convert a repeating decimal to a fraction?
Use the algebraic method: let equal the repeating decimal, multiply by (where is the number of repeating digits), subtract the original equation, and solve. For : let , then , subtract to get , so .
Which decimals can be written as fractions?
Every decimal that terminates or eventually repeats can be written as an exact fraction. These are precisely the rational numbers. Non-repeating, non-terminating decimals like (3.14159...) and (1.41421...) are irrational and cannot be expressed as fractions.
How can I tell if a fraction will produce a terminating or repeating decimal?
A fraction in lowest terms terminates if and only if the denominator has no prime factors other than 2 and 5. For example, () terminates as 0.125, but repeats because 3 is not a factor of any power of 10.
What is a mixed repeating decimal and how do I convert it?
A mixed repeating decimal has some non-repeating digits followed by a repeating block, like (= ). The formula is: (all digits - non-repeating digits) / (9s for each repeating digit followed by 0s for each non-repeating digit). For : .
Decimal to Fraction Converter
This specialized calculator converts decimal numbers into their equivalent fractions in lowest terms. It handles both terminating and repeating decimals, providing accurate results with step-by-step explanations.
Related conversion Variants
Explore more conversion options
More Math Calculators
Explore the category