Decimal to Fraction Calculator

Turn a decimal into a fraction in its simplest form.

How it is calculated

The decimal is multiplied by a power of ten large enough to make it a whole number.

That becomes the numerator, and the power of ten becomes the denominator.

Both are divided by their greatest common divisor to reduce the fraction.

Formula

Fraction: Decimal × 10ⁿ ÷ 10ⁿ

n: Number of decimal places

Then: Divide both parts by their GCD

Worked example

Converting 0.75 into a fraction.

Decimal: 0.75

Two decimal places, so multiply by 100: 0.75 × 100 = 75

Write as a fraction: 75/100

Divide both by their GCD of 25: 3/4

Answer: 3/4

Frequently asked questions

Can every decimal be written as a fraction?

Every decimal that ends, or repeats, can be. Numbers like π and √2 never end or repeat, so they cannot be written exactly as a fraction.

How accurate is the conversion for a repeating decimal?

Very close, but not exact. A computer stores 0.333… as a rounded value, so the conversion is based on that rounded number. For exact work, enter the fraction directly instead.