Decimal to Fraction Converter

Convert terminating decimals into simplified, improper, and mixed fractions while reviewing the steps that drive each answer.

Decimal Input

Provide a terminating decimal with up to 10 places (negative values or whole numbers are welcome).

Trailing zeros after the decimal are preserved when determining the denominator.

How to Use This Converter

Type or paste the terminating decimal you want to translate. The input is validated and debounced so the results refresh shortly after you stop typing. Click Convert to force immediate feedback, or use the Reset button to return to the example value.

The hero area highlights the simplified fraction headline and uses the KPI tiles to describe the improper fraction, mixed number, decimal normalization, decimal place count, and negative-input flag.

Methodology

The calculator starts by writing the digits after the decimal point as a numerator and the matching power of ten as the denominator. After simplifying that pair via the greatest common divisor, it rolls the whole-number component back into an improper fraction and then renders a mixed number when the whole part is present.

  1. Determine the initial fraction: The decimal portion becomes the numerator while the denominator is the power of ten for the final place value (tenths = 10, hundredths = 100, thousandths = 1000, etc.).
  2. Simplify the fraction: Divide the numerator and denominator by their highest common factor (the GCD) to reach lowest terms.
  3. Build the improper fraction: Multiply the whole-number portion by the simplified denominator and add the simplified numerator.
  4. Express the mixed number: When the whole-number portion is nonzero, show it alongside the simplified fraction to highlight the mixed form.

Handling Decimals with a Whole Number

For a number like $4.3$, treat the whole number X portion separately. The decimal part 0.3 becomes 3/10, so the mixed number is $4\\frac{3}{10}$ and the improper fraction becomes $43/10$. The simplified fraction in the hero remains the fractional portion (3/10).

Converting Repeating Decimals

This solver targets terminating decimals. Repeating decimals such as $0.\\overline{6}$ require algebraic tricks:

  1. Let x represent the repeating decimal.
  2. Multiply by $10^n$ where $n$ is the number of repeating digits.
  3. Subtract the original equation from the new one to eliminate the repeating tail.
  4. Solve the result. Example: $0.\\overline{6}$ leads to $9x=6$, so $x=2/3$.

Frequently Asked Questions (FAQ)

What is the fastest way to convert a decimal to a fraction?

Identify the place value of the last digit. If $0.125$ ends in the thousandths position, start with $125/1000$. If $0.8$ ends in the tenths place, start with $8/10$. Then simplify.

How do you convert a decimal like 0.333... (repeating) to a fraction?

For $0.\\overline{3}$, the repeating digit over 9 gives $3/9 = 1/3$. For $0.\\overline{12}$, place the digits over 99 to get $12/99$. Use one 9 for each repeating digit.

How do I convert a decimal that includes a whole number (e.g., 5.4) to a fraction?

Treat the whole number as the integer part of the mixed number. Convert the decimal part (0.4) to $4/10$ and simplify to $2/5$, so the result is $5\\frac{2}{5}$.

What is the Greatest Common Divisor (GCD) in fraction conversion?

The GCD is the largest value that divides the numerator and denominator without a remainder. Dividing both numbers by the GCD guarantees the fraction is in lowest terms.

Formulas

The calculator follows these expressions:

Initial fraction: $$\frac{${num}}{${den}}$$ where ${num} are the digits after the decimal and ${den} is $10^{\text{decimal places}}$.
Simplified fraction: $$\frac{${num} \div \text{GCD}}{${den} \div \text{GCD}}$$
Improper fraction: $$\frac{(\text{whole} \times \text{den}) + \text{num}}{\text{den}}$$
Mixed number: $$\text{whole} \frac{\text{num}}{\text{den}}$$ when the whole part is nonzero.

Variables and units: digits of the decimal number, the power-of-ten denominator, and the unitless fractional result.

Citations

NIST — Weights and measures — nist.gov · Accessed 2026-01-19
https://www.nist.gov/pml/weights-and-measures

NIST — SI units — nist.gov · Accessed 2026-01-19
https://www.nist.gov/pml/owm/metric-si/si-units

Changelog

Version 0.1.0-draft — 2026-01-19

  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido Last Updated: 2026-01-19 Version 0.1.0-draft
Version 1.5.0