Free online calculator

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.

Simplified fraction13/8
Mixed number1 5/8
Decimal value1.625
Nearest 1/1613/8

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

  1. 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.
  2. Read the simplified fraction and mixed number. The digits you type define the value: 0.333 is not exactly one third.
  3. 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

DecimalExact fractionNearest 1/16
0.11/101/8
0.1251/81/8
0.21/53/16
0.251/41/4
0.33/105/16
0.3753/83/8
0.42/53/8
0.51/21/2
0.63/55/8
0.6255/85/8
0.77/1011/16
0.753/43/4
0.84/513/16
0.8757/87/8
0.99/107/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.

Related tools

More math tools