Report

Help us improve this tool

Terminating Decimals Calculator

Convert fractions to decimals, detect terminating vs repeating decimals, and show long-division steps for any rational number.

O M T

What Is a Terminating Decimal?

A terminating decimal is a decimal expansion that ends after a finite number of digits. A rational number has a terminating decimal if and only if, in lowest terms, its denominator has no prime factors other than 2 and 5. For example, $\frac{7}{8} = 0.875$ terminates, while $\frac{1}{3} = 0.333\ldots$ repeats forever.

For more fraction tools, see our Fraction to Decimal Calculator and Decimal to Fraction Calculator.

How to Tell If a Decimal Terminates

Simplify the fraction $\frac{p}{q}$, then factor $q$:

$$q = 2^a \cdot 5^b \cdot (\text{other primes})$$

If no other primes appear, the decimal terminates. Otherwise it repeats with a cycle.

Worked Example

For $\frac{12}{15}$, simplify to $\frac{4}{5}$. Since $5 = 5^1$, the decimal terminates: $\frac{4}{5} = 0.8$.

Frequently Asked Questions

Which fractions give terminating decimals?

Fractions whose simplified denominator is of the form $2^a \cdot 5^b$. Examples include $\frac{1}{2}$, $\frac{3}{4}$, $\frac{7}{20}$, and $\frac{9}{25}$.

Why do only 2 and 5 produce terminating decimals?

Our decimal system is base 10, and $10 = 2 \times 5$. A fraction terminates when repeated division by 10 eventually clears the denominator. Prime factors other than 2 or 5 create an endless cycle.

Can a rational number have infinitely many digits without repeating?

No. Every rational number either terminates or repeats a pattern. Non-repeating infinite decimals like $\pi$ or $\sqrt{2}$ are irrational.

How do I convert a repeating decimal to a fraction?

Use algebra: let $x$ equal the decimal, multiply to shift the repeating block, subtract to eliminate the repeat, then solve for $x$. Our calculator shows whether the decimal terminates or repeats.