Mathematics calculator

Terminating Decimal Calculator

Convert an integer fraction to decimal notation and identify whether its decimal terminates or repeats.

Calculator inputs

Enter your values

Fraction analysis
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

What Is a Terminating Decimal?

A terminating decimal has finitely many decimal digits, such as 0.175. A repeating decimal continues with a recurring block, such as 0.08(3), meaning 0.083333…. Every fraction of integers with a nonzero denominator has one of these two types.

This terminating decimal calculator reduces an integer fraction and uses long division to identify its full finite digits or repeating cycle. Parentheses mark the recurring block. It accepts signed numerator and denominator values within ±100000; the denominator cannot be zero.

How to Check Whether a Fraction Terminates

  1. Enter the Integer numerator in the top-number field.
  2. Enter the Nonzero integer denominator. Positive or negative integers are allowed; decimals and fraction expressions are not.
  3. Select Calculate. Read the decimal result, type and simplified fraction.
  4. For a repeating result, inspect the digits before the cycle and the repeating block separately. Parentheses do not mean multiplication in this display.

The tool reduces the fraction using the greatest common divisor and writes the simplified denominator as positive. A single negative sign makes the quotient negative, while two negatives give a positive quotient. Zero is displayed as 0 and reduces to 0/1.

It tracks integer remainders rather than rounding to a fixed number of decimal places. A zero remainder ends the decimal; a repeated remainder identifies a recurring cycle. Some valid denominators generate a long cycle, which can produce a long result to scroll or wrap.

Terminating Decimal Rule and Long Division

Reduce n/d using g = gcd(|n|, |d|)

For a nonzero reduced fraction a/b with b > 0: terminates ⇔ b = 2ᵘ5ᵛ

Here u and v are nonnegative integers; b = 1 also terminates

Long division: next digit = floor(10r/b); next remainder = (10r) mod b

The denominator rule must be applied after reducing the fraction. A denominator containing 3 can still lead to a terminating quotient if that factor cancels with the numerator. Integer results have no nonzero fractional digits and count as terminating.

The factors 2 and 5 matter because 10 = 2 × 5. A reduced denominator containing only these primes can be scaled to a power of ten. If another prime remains, long division eventually revisits a nonzero remainder and the digits repeat.

Reference: Australian Mathematical Sciences Institute: Decimals and Percentages. Reduced-denominator rule and terminating versus recurring rational decimals. Input validation, display precision and reporting conventions follow this calculator’s implementation.

Numerator, Denominator and Decimal Parts

Integer numerator n
Signed integer from −100000 through 100000.
Integer denominator d
Signed nonzero integer in the same range.
Decimal result
Exact finite digits or recurring notation with a parenthesized cycle.
Decimal type
Terminating decimal or Repeating decimal.
Simplified fraction
Equivalent lowest-terms fraction with positive denominator.
Nonrepeating digits
Digits after the decimal point before the cycle, or all fractional digits for a terminating value. None means the string is empty; a single 0 is a real digit.
Repeating digits
Recurring block, or None for a terminating result.
Conclusion
Classification of the original entered fraction; the sign does not change whether the digits terminate.

Terminating Decimal Worked Example

Illustrative example. Determine whether 21/120 terminates. The greatest common divisor is 3, giving the reduced fraction 7/40.

Since 40 = 2³ × 5, only the primes 2 and 5 remain. Multiply top and bottom by 25 to obtain 175/1000 = 0.175, a terminating decimal.

Independently, long division gives remainders 30, 20 and 0 after the digits 1, 7 and 5. The zero remainder ends the process. For comparison, 1/12 gives 0.08(3), with prefix 08 and cycle 3.

Calculation check. These illustrative values were checked independently against the formula and calculator response. Retain unrounded intermediate values when checking approximations.

Terminating Decimal Worked Example
QuantityValue
Original fraction21/120
Greatest common divisor3
Reduced fraction7/40
Reduced denominator2³ × 5
Decimal0.175
TypeTerminating

Why You Must Reduce the Fraction First

Prime factors that cancel do not affect the reduced denominator. The denominator test concerns the fraction in lowest terms.

Zero and whole-number results terminate as well: their reduced denominator is 1. A repeating block is part of an exact rational representation, not a rounding instruction.

Why You Must Reduce the Fraction First
FractionReduced denominatorDecimal type
21/12040 = 2³ × 50.175; terminating
3/620.5; terminating
1/1212 = 2² × 30.08(3); repeating
1/3030 = 2 × 3 × 50.0(3); repeating
0/8 or 8/410 or 2; terminating

How to Read Repeating Decimal Notation

Read 0.08(3) as 0.083333…, not 0.083 exactly. The digits 08 occur once and 3 repeats forever. For 1/30, the nonrepeating digit is 0 and the repeating digit is 3, giving 0.0(3). Leading zeros inside these digit strings matter.

A finite rounded display from an ordinary calculator does not establish termination. For example, 0.333333 is a finite approximation to 1/3, but the exact fraction has an endless repeating expansion. Here the cycle notation preserves that distinction.

Nonterminating does not mean irrational. A repeating decimal is rational. Irrational decimals neither terminate nor eventually repeat and cannot be represented by the integer-fraction inputs accepted by this form.

Common Fraction-to-Decimal Mistakes

  • Checking prime factors before reducing the fraction.
  • Treating a parenthesized block as a one-time digit sequence.
  • Dropping a zero from the nonrepeating prefix or recurring block.
  • Assuming a negative sign changes the termination type.
  • Calling every nonterminating decimal irrational.
  • Entering a zero denominator or decimal-valued numerator.

Frequently Asked Questions

How can I tell if a fraction terminates?

Reduce it to lowest terms with a positive denominator. A nonzero fraction terminates exactly when that denominator has no prime factors other than 2 and 5; a denominator of 1 also qualifies.

Why must I simplify the fraction first?

Factors can cancel. For example, 3/6 reduces to 1/2 and terminates, even though the original denominator contains a factor of 3.

What do parentheses mean in a decimal result?

They mark the block that repeats forever. Thus 0.08(3) means 0.083333…, with 08 before the repeating 3.

Can I enter a negative denominator?

Yes. The simplified denominator is made positive and the sign is placed in the numerator and decimal result. Two negative inputs give a positive quotient.

Does a negative fraction have a different termination rule?

No. The sign changes the value’s direction, not whether its decimal digits terminate or repeat.

Does zero count as a terminating decimal?

Yes. A zero numerator with any accepted nonzero denominator returns 0 and simplifies to 0/1.

Is every nonterminating decimal irrational?

No. Repeating decimals are rational. Irrational decimals do not eventually repeat and cannot be entered as an integer numerator divided by a nonzero integer denominator.

What input range does this calculator support?

The numerator and denominator must be integers between −100000 and 100000, with a nonzero denominator. It computes finite digits or a full recurring cycle rather than rounding to a chosen precision.

Sources and References