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.
- Type a terminating decimal or parenthesized repeating decimal.
- Keep the sign at the beginning and omit thousands separators.
- Put parentheses around the repeating block only, not the whole decimal part.
- Select Convert to fraction and inspect the initial fraction.
- Confirm the GCF reduction and simplified denominator.
- 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.
| Entry | Meaning | Input type | Exact fraction |
|---|---|---|---|
| 0.75 | Seventy-five hundredths | Terminating | 3/4 |
| .625 | Six hundred twenty-five thousandths | Terminating | 5/8 |
| 0.(3) | The digit 3 repeats forever | Pure repeating | 1/3 |
| 0.1(6) | 1 is fixed; 6 repeats | Mixed repeating | 1/6 |
| 1.2(34) | 2 is fixed; 34 repeats | Mixed repeating | 611/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.
For n decimal places: terminating decimal = signed digits without the separator / 10^nLowest 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.
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.
Mixed number: numerator' / denominator' = whole part + signed remainder / denominator'
| Reduced form | Classification | Mixed form | Example |
|---|---|---|---|
| |numerator| < denominator | Proper fraction | No whole part | 3/4 |
| |numerator| > denominator | Improper fraction | Whole plus remainder | 7/4 = 1 3/4 |
| denominator = 1 | Integer | Whole number | 6/1 = 6 |
| numerator = 0 | Zero | 0 | 0/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.
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.
| Decimal entry | Initial fraction | Reduction | Simplified result |
|---|---|---|---|
| 0.125 | 125/1000 | Divide by 125 | 1/8 |
| -2.4 | -24/10 | Divide by 2 | -12/5 = -2 2/5 |
| 6.000 | 6000/1000 | Divide by 1000 | 6 |
| 0.(27) | 27/99 | Divide by 9 | 3/11 |
| 0.1(6) | 15/90 | Divide by 15 | 1/6 |
| 1.2(34) | 1222/990 | Divide by 2 | 611/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.
Equivalent-fraction check: original numerator x reduced denominator = reduced numerator x original denominator
Open Decimal and Rational-Number References
These educational references support place-value conversion, lowest terms, rational-number classification, repeating notation, and the denominator test described on this page. They explain the mathematics; the calculator performs exact digit-based arithmetic for the entered notation.