Decimal to Fraction Calculator
Turn a terminating decimal or an explicitly repeating block into a reduced fraction and mixed number. Use the separate nearest-fraction control only when you want a measurement approximation.
Repeating decimals can be entered with parentheses, such as 0.(3) or 1.2(34).
Decimal to fraction
- Write the decimal over a power of 10, then simplify: 0.375 = 375/1000 = 3/8.
- Repeating decimals: 0.333… = 1/3 and 0.666… = 2/3.
- For measuring, round to the nearest 1/16 or 1/8 inch.
- Mixed numbers: 2.75 = 2 3/4.
How to use the Decimal to Fraction Calculator
- Enter a terminating decimal such as 1.625 or put the repeating digits in parentheses, such as 0.(3) or 1.2(3). Do not type an ellipsis.
- Read the simplified fraction and mixed number. The digits you type define the value: 0.333 is not exactly one third.
- Choose Nearest fraction for a measurement approximation. It rounds to a multiple of the selected denominator and then simplifies that result.
Exact digits versus measurement approximations
Type repeating digits in parentheses, as in 0.(3), not an ellipsis. The parser limits constructed terms to safe integers. The nearest-denominator result is simplified, so choosing sixteenths can display eighths; it is not the exact input fraction.
Examples
Terminating decimal
1.625 = 1625/1000 = 13/8 = 1 5/8.
Repeating digits
Enter 0.(3) for 1/3. Enter 1.2(3) for 37/30, or 1 7/30. The parentheses enclose only the repeating block.
Exact versus practical
0.1 is exactly 1/10. With Nearest fraction set to 16, the approximation is 2/16 = 1/8 = 0.125, which is 0.025 above the input.
Check the result in context
Negative terminating input: −1.25 = −125/100 = −5/4 = −1 1/4. The negative sign applies to the entire mixed number. Sixteenths also give −20/16 = −5/4, so this value needs no approximation.
Decimals as fractions
| Decimal | Exact fraction | Nearest 1/16 |
|---|---|---|
| 0.1 | 1/10 | 1/8 |
| 0.125 | 1/8 | 1/8 |
| 0.2 | 1/5 | 3/16 |
| 0.25 | 1/4 | 1/4 |
| 0.3 | 3/10 | 5/16 |
| 0.375 | 3/8 | 3/8 |
| 0.4 | 2/5 | 3/8 |
| 0.5 | 1/2 | 1/2 |
| 0.6 | 3/5 | 5/8 |
| 0.625 | 5/8 | 5/8 |
| 0.7 | 7/10 | 11/16 |
| 0.75 | 3/4 | 3/4 |
| 0.8 | 4/5 | 13/16 |
| 0.875 | 7/8 | 7/8 |
| 0.9 | 9/10 | 7/8 |
Frequently asked questions
Why does 0.333 not give 1/3?
The terminating input 0.333 means exactly 333/1000. Enter 0.(3) to specify an indefinitely repeating 3.
Why is a long decimal rejected?
The parser requires the constructed numerator and denominator to be safe JavaScript integers. Very long decimals and repeating blocks can exceed that range. This is not arbitrary-precision fraction arithmetic.
Why does choosing sixteenths display 1/8?
The nearest multiple can be 2/16, which is simplified to 1/8. The selected denominator defines the approximation grid, not the final printed denominator.
Is a displayed decimal approximation equal to its source fraction?
Only when it terminates at the digits entered. 0.333 means 333/1000; 0.(3) means exactly 1/3. Copying a shortened decimal loses information.
More math tools
Fraction Calculator
Calculate and simplify fractions and mixed numbers with steps.
Open tool →Rounding Calculator
Round numbers and decimals using several rounding methods.
Open tool →GCF Calculator
Find the greatest common factor of two or more positive integers.
Open tool →Significant Figures Calculator
Count significant figures and round numbers to a selected number of significant digits.
Open tool →Mean Median Mode Range Calculator
Calculate mean, median, mode, range, quartiles and IQR.
Open tool →Probability Calculator
Calculate simple and independent-event probabilities.
Open tool →