Decimal To Fraction Calculator

Convert a terminating or repeating decimal into an exact simplified fraction without floating-point guessing. Enter ordinary decimal notation or place the repeating block in parentheses. The result shows the initial ratio, GCF reduction, mixed number, percentage, decimal classification, equivalent fractions, and an integer verification check.

Calculation and content reviewed by EZ Calculators Editorial Team on .

Enter values

Enter a terminating decimal or put only the endlessly repeating block in parentheses. The result preserves the digit string, reduces it exactly, and verifies the fraction with integer evidence.

Exact notation

Enter one decimal value

Use a period for the decimal separator. Put only an endlessly repeating block in parentheses, such as 0.(3) or 1.2(34). Ellipses, commas, and scientific notation are intentionally rejected because they do not identify one exact decimal expansion here.
Use a period as the decimal separator. Examples: 0.75, .625, -2.4, 0.(3), or 1.2(34). Parentheses contain only the endlessly repeating block.
Exact notation examplesChoose an example to convert it immediately
Digits are treated exactlyUp to 30 entered digits are converted with integer arithmetic; no floating-point guess is used for the fraction.
A shortened value such as 0.333 is converted as exactly 333/1000. To mean the infinite repeating decimal 0.333..., enter 0.(3). Parentheses remove that ambiguity.

What Is a Decimal to Fraction Calculator

A decimal to fraction calculator rewrites a terminating or repeating decimal as a ratio of integers. The simplified answer represents exactly the same rational number as the notation entered. For example, 0.75 is 75/100, and dividing both parts by 25 gives 3/4.

This calculator works from the entered digit string rather than first storing the value as a rounded binary number. It preserves trailing decimal places, recognizes a repeating block written in parentheses, constructs the initial integer ratio, reduces it by the greatest common factor, and exposes enough evidence to check the answer independently.

How to Use the Decimal to Fraction Calculator

Enter one value using a period as the decimal separator. Ordinary notation such as 0.125, .625, -2.4, or 7 is treated as terminating. To describe an endless repeat, place only the repeating digits in parentheses: 0.(3) means 0.333..., while 1.2(34) means 1.2343434....

Select Convert to fraction, then read the simplified fraction first. Review the initial fraction and GCF to reproduce the reduction. For an improper result, use the mixed-number row. Finally, compare the integer cross-product verification and remember that an ordinary shortened decimal is interpreted as exact at the digits entered.

  1. Type a terminating decimal or parenthesized repeating decimal.
  2. Keep the sign at the beginning and omit thousands separators.
  3. Put parentheses around the repeating block only, not the whole decimal part.
  4. Select Convert to fraction and inspect the initial fraction.
  5. Confirm the GCF reduction and simplified denominator.
  6. Use the mixed number, percentage, or equivalent-fraction table only in the context needed.

Write Repeating Decimals Without Ambiguity

A finite string and an endless repeating decimal are different numbers unless the notation says otherwise. The entry 0.33 means exactly 33/100 on this page. The entry 0.(3) means 0.333... forever and equals 1/3. An ellipsis by itself is not parsed because it does not identify which digits repeat.

For a delayed repeat, keep the non-repeating prefix outside the parentheses. Thus 0.1(6) means 0.1666..., and 2.71(94) means 2.71949494.... Parentheses are a keyboard-friendly substitute for an overline; they do not indicate multiplication.

Decimal notation accepted by the calculator
EntryMeaningInput typeExact fraction
0.75Seventy-five hundredthsTerminating3/4
.625Six hundred twenty-five thousandthsTerminating5/8
0.(3)The digit 3 repeats foreverPure repeating1/3
0.1(6)1 is fixed; 6 repeatsMixed repeating1/6
1.2(34)2 is fixed; 34 repeatsMixed repeating611/495

Terminating Decimal to Fraction Formula

A terminating decimal uses base-10 place value. Count n digits after the decimal point, remove the separator to form a signed integer, and place that integer over 10^n. Then divide numerator and denominator by their greatest common factor.

For 3.2117, four decimal places produce 32117/10000. For 0.125, three decimal places produce 125/1000; the GCF is 125, so the reduced result is 1/8. Trailing zeros may enlarge the initial denominator but do not change the reduced value.

Formula guide
  • For n decimal places: terminating decimal = signed digits without the separator / 10^n
  • Lowest terms: numerator' = numerator / GCF(|numerator|, denominator); denominator' = denominator / GCF(|numerator|, denominator)

Repeating Decimal to Fraction Formula

A repeating decimal is converted by shifting one complete repeat and subtracting a second shifted copy so the infinite tails cancel. If m digits do not repeat and r digits do repeat, the denominator is 10^(m+r) - 10^m. The numerator is the signed digits through one repeat minus the signed digits before the repeat.

For 1.2(34), the digits through one repeat are 1234 and the digits before the repeat are 12. The initial fraction is (1234 - 12)/(1000 - 10) = 1222/990. Dividing by the GCF 2 gives 611/495. This is exact; no finite list of repeated digits is rounded.

Formula guide
  • For m non-repeating places and r repeating places: fraction = (digits through one repeat - digits before the repeat) / (10^(m+r) - 10^m)
  • Pure repeat: 0.(R) = R / (10^r - 1)

Reduce the Fraction and Read Its Number Form

A fraction is in lowest terms when its numerator and denominator share no positive factor greater than one. The calculator divides both by the same GCF, keeps the denominator positive, and places any negative sign on the numerator. Equal cross-products between the initial and reduced forms verify that reduction preserved the value.

A proper fraction has numerator magnitude below its denominator. An improper fraction has numerator magnitude at least as large and can be written as a mixed number using quotient and remainder. Whole-number results reduce to a denominator of one; zero reduces to 0/1 and has no reciprocal.

Formula guide
  • Mixed number: numerator' / denominator' = whole part + signed remainder / denominator'
How to interpret the reduced fraction
Reduced formClassificationMixed formExample
|numerator| < denominatorProper fractionNo whole part3/4
|numerator| > denominatorImproper fractionWhole plus remainder7/4 = 1 3/4
denominator = 1IntegerWhole number6/1 = 6
numerator = 0Zero00/1

Predict Whether the Fraction Terminates in Base 10

After a fraction is reduced, its base-10 decimal terminates exactly only when the denominator contains no prime factors other than 2 and 5. This works because every power of 10 is built from equal powers of 2 and 5. A denominator containing another prime eventually produces a repeating remainder pattern in long division.

For 3/8, the denominator is 2^3, so the decimal terminates at 0.375. For 1/6, the denominator contains 3, so the decimal repeats as 0.1(6). The result labels this property from the reduced denominator, not merely from how the original entry was written.

Formula guide
  • Reduced denominator terminates in base 10 only when its prime factors are 2, 5, or both

Exact Decimal Input Versus a Rounded Measurement

The calculator treats every terminating digit entered as exact. If a device displays 0.333 after rounding an unknown measurement, converting it gives exactly 333/1000, not automatically 1/3. The original unrounded value, measurement tolerance, or stated repeating notation is needed to justify a different fraction.

Likewise, converting a currency amount, recipe quantity, dimension, probability, or statistical estimate does not create more source precision. Keep the exact conversion for arithmetic, but record whether the input came from a definition, a measured value, or a rounded display.

  • Use parentheses only when the repeated pattern is known to continue forever.
  • Retain stated measurement precision and tolerance.
  • Do not replace a rounded decimal with a convenient nearby fraction without labeling it approximate.
  • Keep exact fractions through later arithmetic and round only the final requested display.

Decimal to Fraction Worked Examples

These examples cover terminating values, signs, whole-number reduction, a pure repeat, and a delayed repeating block. Each answer can be checked by division or by the exact cross-product identity shown in the calculator result.

Worked decimal-to-fraction examples
Decimal entryInitial fractionReductionSimplified result
0.125125/1000Divide by 1251/8
-2.4-24/10Divide by 2-12/5 = -2 2/5
6.0006000/1000Divide by 10006
0.(27)27/99Divide by 93/11
0.1(6)15/90Divide by 151/6
1.2(34)1222/990Divide by 2611/495

Decimal to Fraction Calculator Features

The converter is intentionally compact at entry and detailed after calculation. Exact integer construction keeps the fraction separate from the approximate decimal and percentage displays, while the table makes equivalent forms visible without changing the underlying value.

  • Terminating, negative, whole-number, and parenthesized repeating input.
  • Leading-decimal notation such as .625 and -.125.
  • Up to 30 entered digits across the integer and decimal blocks.
  • Exact initial numerator and denominator built from the digit string.
  • Greatest-common-factor reduction into lowest terms.
  • Proper, improper, integer, and zero classification.
  • Mixed-number, approximate decimal, percentage, and reciprocal views.
  • Reduced-denominator termination classification.
  • Exact integer cross-product verification and equivalent fractions.

Benefits of an Exact Decimal to Fraction Conversion

An exact fraction preserves relationships that a rounded decimal may hide. It makes common denominators, cancellation, proportions, probability work, and symbolic algebra easier to audit. Repeating notation also captures a rational value without deciding how many digits to display.

Showing the initial fraction and reduction factor separates conversion from simplification. That distinction is useful for learning, checking homework, documenting a calculation, and finding whether an error came from place value, repeating-block placement, or GCF reduction.

Common Decimal to Fraction Use Cases

Use the calculator when an exact rational form is more useful than a decimal display. The input should represent a known terminating value or a clearly identified repeating pattern, and the fraction should retain the same units and source meaning.

  • Rewrite terminating decimals for fraction arithmetic or algebra.
  • Convert repeating decimal answers into exact rational numbers.
  • Express an improper decimal result as a mixed number.
  • Check place-value and GCF work in a math course.
  • Keep exact recipe, scale, probability, ratio, or rate relationships.
  • Compare a fraction, decimal, and percentage representation of one value.
  • Verify whether a reduced denominator will terminate or repeat in base 10.

Decimal Conversion Accuracy, Scope, and Trust Notes

The engine parses decimal digits into integers and uses BigInt arithmetic for construction, reduction, and cross-product checks. It does not infer a hidden repeat, approximate an irrational number, parse scientific notation, accept a fraction as input, or recover digits removed before the value reached the page.

Approximate decimal and percentage rows are display aids and may be rounded; the simplified fraction is the exact result for the notation entered. Use a period as the separator, omit grouping commas, and keep total entered digits within the published limit.

  • Check that the repeating block begins in the correct position.
  • Distinguish an exact terminating decimal from a rounded observation.
  • Use the fraction result for later exact arithmetic.
  • Confirm important conversions with division or the cross-product row.
  • Treat units and source precision as separate from number-format conversion.
Formula guide
  • Equivalent-fraction check: original numerator x reduced denominator = reduced numerator x original denominator

Open Decimal and Rational-Number References

FAQ

How do I convert a terminating decimal to a fraction?

Count the decimal places, remove the separator to create the numerator, and use 10 raised to that place count as the denominator. Divide both by their GCF. For 0.125, 125/1000 reduces to 1/8.

How do I convert a repeating decimal to a fraction?

Put the repeating block in parentheses. The calculator shifts and subtracts digit strings so the endless tails cancel, then reduces the resulting integer ratio. For 0.(27), 27/99 reduces to 3/11.

What is the difference between 0.33 and 0.(3)?

The terminating entry 0.33 is exactly 33/100. The repeating entry 0.(3) means 0.333... forever and equals 1/3. A finite display must not be assumed to repeat without explicit notation.

Can this calculator convert a mixed repeating decimal?

Yes. Keep fixed decimal digits outside the parentheses and the endless block inside them. For example, 0.1(6) means 0.1666... and converts exactly to 1/6.

Why does 0.(9) convert to 1?

If x=0.999..., then 10x=9.999.... Subtracting gives 9x=9, so x=1. The two notations name the same real number; there is no positive gap between them.

Can I convert a negative decimal to a fraction?

Yes. Enter the minus sign at the beginning. The calculator constructs and reduces the magnitude normally, keeps the denominator positive, and places the negative sign on the numerator and mixed number.

How do I turn a decimal greater than one into a mixed number?

Convert the decimal to an improper fraction first, then divide the numerator magnitude by the denominator. The quotient is the whole part and the remainder forms the proper fractional part.

When does a reduced fraction have a terminating decimal?

In base 10, a fraction in lowest terms terminates only when its denominator has no prime factors other than 2 and 5. Any other denominator prime produces a repeating decimal expansion.

Does a rounded decimal convert back to the original exact fraction?

Not necessarily. Converting 0.333 gives exactly 333/1000, even if it came from a rounded display of 1/3. Use the original value or explicit repeating notation when exact recovery matters.

How can I check a decimal-to-fraction answer?

Divide the simplified numerator by its denominator and compare it with the entered notation. Also verify that original numerator x reduced denominator equals reduced numerator x original denominator; the result shows this integer identity.