Decimal to Fraction CalculatorFree online math calculator — instant results, no sign-up

Convert a terminating decimal with up to nine places to a reduced fraction.

Inputs

Fraction
3/8

Sign in to save results and favorites.

About the Decimal to Fraction Calculator

The Decimal to Fraction Calculator converts a terminating decimal with up to nine decimal places into a fraction in lowest terms. For the default decimal, 0.375, it returns the exact reduced fraction 3/8.

Decimal
The terminating decimal to convert, with up to nine digits after the decimal point; the default is 0.375, and the input is unitless.

Formula and method

N = x × 10^d; D = 10^d; g = gcd(|N|, D); F = (N/g)/(D/g). For x = 0.375: d = 3, N = 375, D = 1000, g = 125, so F = (375/125)/(1000/125) = 3/8.
  • xThe decimal value entered.
  • dThe number of digits after the decimal point, at most nine.
  • NThe integer numerator obtained by multiplying x by 10^d.
  • DThe initial denominator, 10^d.
  • gThe greatest common divisor of the absolute value of N and D; gcd denotes this operation.
  • FThe resulting fraction in lowest terms.

Use the decimal's place count to form a power-of-ten denominator, and remove the decimal point to form the integer numerator. Find the greatest common divisor of the numerator's absolute value and the denominator, then divide both by it. For 0.375, the initial fraction is 375/1000; dividing both parts by 125 gives 3/8.

Worked example

These are the calculator's starting values and the results it actually produces for them.

Inputs

  • Decimal0.375

Results

  • Fraction3/8

How to use the Decimal to Fraction Calculator

  1. 1Enter 0.375 in the Decimal field, or leave the default value unchanged.
  2. 2Check that the entry is a terminating decimal with no more than nine digits after the decimal point.
  3. 3Run the conversion to express the decimal as an integer numerator over a power-of-ten denominator.
  4. 4Read the Fraction output: the default input produces 3/8 in lowest terms.
  5. 5Verify the result by dividing 3 by 8, which gives 0.375.

Reading your result

The Fraction output row shows the exact value of the entered decimal as a reduced fraction. For the default input, Fraction = 3/8: 3 is the numerator and 8 is the denominator, meaning three equal parts out of eight. The numerator and denominator share no common factor greater than one.

Limitations

This tool is intended for terminating decimals with up to nine decimal places, not repeating-decimal notation or longer decimal expansions. It converts the entered decimal exactly; it cannot recover an original value that was rounded before entry. Calculations should use exact decimal or integer arithmetic to avoid binary floating-point artifacts.

Common questions

Why does 0.375 become 3/8 rather than 375/1000?+

Both fractions equal 0.375, but 375 and 1000 have a greatest common divisor of 125. Dividing both by 125 gives 3/8, the fraction in lowest terms.

Do trailing zeros change the reduced fraction?+

No. Trailing zeros after the decimal point do not change its value, so the reduced fraction stays the same. Keep the entered decimal within the nine-place limit.

Can this calculator convert a repeating decimal?+

It is designed for terminating decimals only. If you enter a finite approximation of a repeating decimal, the fraction represents that approximation exactly, not the full repeating value.

Does converting 0.375 to 3/8 involve rounding?+

No. The conversion is exact: 375/1000 reduces to 3/8, and dividing 3 by 8 returns 0.375.

Does the calculator save my information?+

Calculations run in your browser. While signed in, inputs and results are automatically recorded in account history; saving a result creates a separate saved record.

You might also like

Results are estimates for informational purposes and are not financial, medical or legal advice.