Terminating Decimals Calculator - Test Fractions for Finite Decimals

Use this terminating decimals calculator to check if a fraction produces a finite decimal expansion, with the simplified form and decimal places.

Updated: June 12, 2026 • Free Tool

Terminating Decimals Calculator

Top number of the fraction (the dividend in p/q).

Bottom number of the fraction (the divisor in p/q). The calculator reduces p/q to lowest terms before testing the denominator's prime factors.

Cap on how many decimal digits the answer displays. The natural terminating length will never exceed this cap.

Results

Terminating Decimal
0
Is It Terminating? 0
Max Decimal Places 0
Simplified Fraction 0
Denominator Prime Factors 0

What Is a Terminating Decimals Calculator?

A terminating decimals calculator is a focused math tool that tests whether a fraction p/q produces a finite decimal expansion, and when it does, reports the exact expansion along with the number of decimal places. Drop in any two positive integers and the tool reduces the fraction, prime-factors the denominator, and tells you in one step whether you should expect 0.375 or 0.333.... Students use it to check homework before submitting, teachers use it to build practice sets, and engineers use it to confirm a measurement ratio can be expressed cleanly in decimal form.

  • Checking a math homework answer: Quickly verify whether a stated fraction has a terminating decimal before writing it in a textbook or test.
  • Choosing between fraction and decimal form: Pick decimal form when the denominator is 2- and 5-friendly, and keep the fraction when the expansion would repeat.
  • Pre-validating measurements and ratios: Decide if a scaling ratio or recipe ratio can be written as a finite decimal on a label, drawing, or spreadsheet.
  • Teaching the 2-and-5 prime-factor rule: Use the live prime-factor output to show students why 1/8 terminates but 1/12 does not.

The phrase "terminating decimal" describes a decimal that ends. A number like 0.625 is terminating because there is a fixed last digit; 0.142857 142857... is not, because the digit block 142857 repeats forever. Every terminating decimal is rational, so it can be written as a fraction p/q.

If the question is "will this fraction terminate?", the test is one short rule about the denominator: after you cancel common factors, the only primes allowed are 2 and 5. The calculator does this test instantly.

If you already have a decimal and want to recover the simplified fraction, Decimal to Fraction Calculator runs the conversion in the opposite direction.

How the Terminating Decimals Calculator Works

The tool takes a fraction p/q, reduces it to lowest terms, and then looks at the simplified denominator to decide whether the decimal expansion will end. The decision is made by checking the denominator's prime factorization, and the same calculation reveals the number of decimal places.

Termination rule: after reducing p/q, the decimal terminates if and only if q = 2^a × 5^b for non-negative integers a and b. The maximum number of decimal places is max(a, b).
  • p (numerator): Top of the fraction. Accepts non-negative integers; zero yields the terminating decimal 0.
  • q (denominator): Bottom of the fraction. The calculator divides out the GCD first, so 6/12 is treated as 1/2.
  • a, b: Powers of 2 and 5 in the simplified denominator. Together they determine the decimal length.
  • d (places): Number of digits after the decimal point, equal to max(a, b).

When the rule returns 'terminating', the calculator multiplies numerator and denominator by the powers of 2 or 5 that are still missing. Multiplying by 10^d turns the denominator into 1, so the numerator directly gives the digits of the expansion.

When the rule returns 'repeating', the calculator still gives a useful preview by running long division until a remainder repeats. The repeating block is what would be marked with a bar in formal notation.

Worked example: 3/8

Enter numerator = 3 and denominator = 8.

3/8 is already in lowest terms. 8 = 2^3, so a = 3 and b = 0. The decimal has max(3, 0) = 3 places.

Terminating decimal: 0.375 (3 places). Simplified fraction: 3/8.

Use this whenever you need a three-digit decimal like 0.375.

Worked example: 7/20

Enter numerator = 7 and denominator = 20.

GCD(7, 20) = 1, so 7/20 is already reduced. 20 = 2^2 × 5, so a = 2 and b = 1. The decimal has max(2, 1) = 2 places.

Terminating decimal: 0.35 (2 places). Simplified fraction: 7/20.

Because b is 1, the answer is 0.35 and not 0.350 — the trailing zero is unnecessary.

Worked example: 1/12 (non-terminating)

Enter numerator = 1 and denominator = 12.

GCD(1, 12) = 1, so 1/12 is reduced. 12 = 2^2 × 3, so the prime 3 appears in the denominator.

Not terminating: 0.0833... repeating. Simplified fraction: 1/12.

The presence of 3 — a prime other than 2 and 5 — is the only signal needed to predict a repeating expansion.

According to Wikipedia, a terminating decimal is a decimal expansion that reaches a point where all remaining digits are zero, and every terminating decimal is a decimal fraction with a denominator of the form 2^a × 5^b

For a tool that focuses on the decimal output and the long-division steps, Fraction to Decimal Calculator gives the full expansion including the repeating notation.

Key Concepts Behind Terminating Decimals

These four ideas carry the entire decision rule, so it helps to keep them straight before you trust the result.

Terminating vs Repeating

A terminating decimal has a last digit. A repeating decimal has a block of digits that recurs forever, often written with a bar (for example, 0.142857̄ for 1/7). The two categories together cover all rationals.

Lowest Terms Matter

The prime-factor test only works after the fraction is reduced. 6/14 becomes 3/7 after dividing by 2, and 7 is not 2 or 5 — so 6/14 repeats. Always cancel the GCD first.

Powers of 10 Are the Bridge

Every terminating decimal has a denominator that divides a power of 10. The smallest such power is 10^d where d is the number of decimal places. For 3/8 the smallest is 10^3 = 1000, and 3 × 125 = 375 gives 0.375.

Primes 2 and 5 Are Special

In base 10, the only primes that divide a power of 10 are 2 and 5, because 10 = 2 × 5. Any other prime in the denominator (3, 7, 11, 13, ...) forces a remainder cycle that never resolves.

If you remember nothing else, remember this: a fraction is terminating when the only primes in the denominator are 2 and 5, and the number of decimal places is the larger of the two exponents. Everything else in the tool is a convenience built on top of that rule.

When the input fraction has not been reduced yet, Simplify Fractions Calculator is a quick way to confirm the lowest-terms form before applying the prime-factor test.

How to Use the Terminating Decimals Calculator

The form takes three inputs: a numerator, a denominator, and a display cap. Most users only need the first two.

  1. 1 Enter the numerator: Type the top number of the fraction. Use 0 to test whether a zero fraction terminates (it always does).
  2. 2 Enter the denominator: Type the bottom number. The denominator must be a positive integer; the calculator reduces p/q to lowest terms internally.
  3. 3 Set the decimal-place cap: Pick how many digits the result may show. The default of 12 is enough for almost every classroom use case.
  4. 4 Read the verdict: Look at the 'Is It Terminating?' panel. A 'Yes' means the decimal ends; a 'No' means the digits repeat forever.
  5. 5 Check the supporting work: Compare the Simplified Fraction, the Terminating Decimal, and the Denominator Prime Factors lines. They tell you which primes forced the verdict.

A student enters 7/20 and reads: 'Yes — terminating. Decimal: 0.35, places: 2, simplified 7/20, denominator 2^2 × 5.' The same student types 1/12 and reads: 'No — repeats. Decimal preview 0.083333333333, places: Repeats, simplified 1/12, denominator 2^2 × 3.' The two outputs make the 2-and-5 rule visible.

Once the terminating decimal is known, Decimal to Percent Converter takes the same value and turns it into a percentage with the matching number of significant figures.

Benefits of Using This Terminating Decimals Calculator

Each benefit maps to a real workflow where the 2-and-5 rule is needed quickly, without doing the prime factorization by hand.

  • Instant verdict with no mental math: You get a Yes or No plus the exact decimal in one step, which is much faster than factoring the denominator on paper.
  • Shows the prime factors that decide the answer: The Denominator Prime Factors line names the actual primes (for example, 2^2 × 3) so the rule that produced the verdict is visible.
  • Works for any non-negative integer inputs: Up to one million for both numerator and denominator, which covers textbook problems, recipe ratios, and most engineering ratios.
  • Reports the natural number of decimal places: You see 3 for 3/8 and 2 for 7/20, so you know whether trailing zeros are real (1/20 = 0.050) or noise (7/20 = 0.35).
  • Catches the zero-fraction and high-power cases: A 0 in the numerator cleanly returns 0, and 1/2^10 shows the full ten-digit terminating expansion without overflowing the display.

If you only need the verdict, glance at the 'Is It Terminating?' box. If you need the supporting work for a class or a write-up, scroll down to the prime factors. The same answer supports both uses without changing the inputs.

When the homework problem is the reverse — given a decimal you need to add or subtract fractions — Fraction Calculator covers the four basic operations in one place.

Factors That Affect Whether a Decimal Terminates

The decision comes from a small handful of factors. Once you can see each one in the answer, you can predict the result for related fractions without re-entering them.

Prime factors of the simplified denominator

If the only primes are 2 and 5, the decimal terminates. Any other prime forces a repeating expansion. The calculator reduces p/q first so this check uses the lowest-terms form.

Highest power of 2 or 5 in the denominator

The natural number of decimal places is the larger of the two exponents. 1/8 (2^3) gives three places; 1/20 (2^2 × 5) gives max(2, 1) = two places.

Common factors between numerator and denominator

Canceling the GCD first can change the verdict. 2/10 simplifies to 1/5 (terminating) — the rule reads the simplified form, not the original.

Whether the numerator is zero

The fraction 0/q equals 0 for any positive q, so it always terminates with zero decimal places. The calculator handles 0/n as a special case.

Display cap versus true terminating length

A very small terminating fraction like 1/2^20 has 20 decimal places by definition. If the cap is set to 12, you will see 12 digits and a note that the expansion continues.

  • Irrational inputs are out of scope. Numbers like π and √2 do not satisfy the prime-factor test because they are not rational, so the calculator rejects negative or non-integer entries rather than producing a misleading verdict.
  • The display cap truncates long terminating expansions. The true terminating length is always the natural length, but the on-screen answer is bounded by the user-chosen Max Decimal Places to keep the result readable.

If the verdict is 'No' and you need a written fraction for the repeating decimal, the simplification shown in the answer is the right starting point: 1/3 is already in lowest terms, so any further reduction is impossible.

According to Cuemath, a fraction produces a terminating decimal if the denominator of its simplified form can be written as 2^p × 5^q, and the natural terminating length comes from the larger of the two exponents

After confirming the terminating length, Fraction to Percent Calculator converts the same fraction to a percentage that respects that natural length.

Terminating decimals calculator panel showing a fraction input, terminating result, decimal expansion, and prime factors of the denominator.
Terminating decimals calculator panel showing a fraction input, terminating result, decimal expansion, and prime factors of the denominator.

Frequently Asked Questions

Q: What is a terminating decimal?

A: A terminating decimal is a decimal that has a last digit. For example, 0.75 terminates after two digits, and 0.375 terminates after three. Equivalently, a fraction p/q is terminating when, after reducing it to lowest terms, the denominator q contains no prime factors other than 2 and 5.

Q: How do I know if a fraction will be a terminating decimal?

A: Reduce the fraction to its lowest terms, then look at the denominator. If the only prime numbers that divide the denominator are 2 and 5, the decimal terminates. If any other prime divides the denominator, the decimal will repeat. The terminating decimals calculator applies this test automatically and also shows the prime factorization.

Q: What is the difference between a terminating and a repeating decimal?

A: A terminating decimal ends after a fixed number of digits, like 0.875. A repeating decimal has a block of one or more digits that repeats forever, like 0.333... or 0.142857 142857.... Every rational number falls into exactly one of these two categories, and the prime-factor test on the denominator is what decides which.

Q: How do you convert a terminating decimal to a fraction?

A: Write the digits after the decimal point as the numerator, use 10^d as the denominator where d is the number of decimal places, then reduce. For example, 0.35 = 35/100, which simplifies to 7/20. The decimal to fraction calculator in the math-conversion category does the same reduction automatically.

Q: Why does 1/3 not have a terminating decimal?

A: Because 3 is a prime that is not 2 and not 5, so the prime-factor test fails. Long division of 1 ÷ 3 keeps producing the same remainder of 1 over and over, which means the digit 3 repeats forever. Any fraction with a denominator whose prime factors include anything other than 2 and 5 will repeat the same way.

Q: What is the maximum number of decimal places in a terminating decimal?

A: For a fraction p/q in lowest terms, the maximum number of decimal places is the larger of the two exponents in q = 2^a × 5^b. So 1/8 (q = 2^3) terminates in 3 places, while 1/20 (q = 2^2 × 5) terminates in max(2, 1) = 2 places, even though the denominator has three prime factors.