Ekuation

conversion

Decimal to Fraction Converter

Convert any decimal number to a simplified fraction with step-by-step breakdown.

Back to Fraction Calculator

Enter a decimal number to convert to a fraction

Common Decimals

Tips

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

Documentation

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.

0.625=6251000=625÷1251000÷125=580.625 = \frac{625}{1000} = \frac{625 \div 125}{1000 \div 125} = \frac{5}{8}

In general, if the decimal has nn digits after the point:

decimal=digits as integer10n\text{decimal} = \frac{\text{digits as integer}}{10^n}

Then reduce by dividing both by their GCD.

More Examples

DecimalAs fractionSimplified
0.5510\frac{5}{10}12\frac{1}{2}
0.7575100\frac{75}{100}34\frac{3}{4}
0.1251251000\frac{125}{1000}18\frac{1}{8}
0.4410\frac{4}{10}25\frac{2}{5}
2.35235100\frac{235}{100}4720=2720\frac{47}{20} = 2\frac{7}{20}

Repeating Decimals

A repeating decimal has a block of digits that cycles forever. The conversion uses an elegant algebraic trick.

Purely Repeating

For 0.r0.\overline{r} where rr has kk digits:

0.r=r10k10.\overline{r} = \frac{r}{10^k - 1}

Why it works: Let x=0.rx = 0.\overline{r}. Multiply by 10k10^k:

10kx=r.r=r+x10^k x = r.\overline{r} = r + x

Subtract: 10kxx=r10^k x - x = r, so x=r10k1x = \frac{r}{10^k - 1}.

0.3=39=130.\overline{3} = \frac{3}{9} = \frac{1}{3}

0.142857=142857999999=170.\overline{142857} = \frac{142857}{999999} = \frac{1}{7}

Mixed Repeating Decimals

When some digits don't repeat, like 0.160.1\overline{6} (= 0.166660.16666\ldots), with mm non-repeating digits and kk repeating digits:

x=(all digits)(non-repeating digits)99k00mx = \frac{\text{(all digits)} - \text{(non-repeating digits)}}{\underbrace{9\ldots9}_{k}\underbrace{0\ldots0}_{m}}

For 0.160.1\overline{6}: 16190=1590=16\frac{16 - 1}{90} = \frac{15}{90} = \frac{1}{6}.


Which Fractions Terminate?

A fraction ab\frac{a}{b} in lowest terms produces a terminating decimal if and only if the prime factorization of bb contains only 2s and 5s:

b=2m×5nfor some m,n0b = 2^m \times 5^n \quad \text{for some } m, n \geq 0
DenominatorFactorsTerminates?
2, 4, 5, 8, 10, 16, 20, 25, 32, 40, 50, 100Only 2 and/or 5Yes
3, 6, 7, 9, 11, 12, 13, 14, 15Contains 3, 7, 11, or 13No — repeats

Why 2 and 5? Our number system is base 10, and 10=2×510 = 2 \times 5. A fraction terminates in base bb exactly when its denominator divides some power of bb. 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, 0.625=62510000.625 = \frac{625}{1000}. gcd(625,1000)=125\gcd(625, 1000) = 125, so 625125=5\frac{625}{125} = 5 and 1000125=8\frac{1000}{125} = 8, giving 58\frac{5}{8}.

How do I convert a repeating decimal to a fraction?

Use the algebraic method: let xx equal the repeating decimal, multiply by 10k10^k (where kk is the number of repeating digits), subtract the original equation, and solve. For 0.3330.333\ldots: let x=0.333x = 0.333\ldots, then 10x=3.33310x = 3.333\ldots, subtract to get 9x=39x = 3, so x=13x = \frac{1}{3}.

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 π\pi (3.14159...) and 2\sqrt{2} (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 ab\frac{a}{b} in lowest terms terminates if and only if the denominator bb has no prime factors other than 2 and 5. For example, 18\frac{1}{8} (8=238 = 2^3) terminates as 0.125, but 13\frac{1}{3} 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 0.160.1\overline{6} (= 0.16660.1666\ldots). The formula is: (all digits - non-repeating digits) / (9s for each repeating digit followed by 0s for each non-repeating digit). For 0.160.1\overline{6}: 16190=1590=16\frac{16 - 1}{90} = \frac{15}{90} = \frac{1}{6}.

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

Calculator Search

Search and find calculators