Decimal to Fraction Calculator

Convert decimals to fractions, mixed numbers, and percentages.

Decimal → Fraction

How Does Decimal to Fraction Conversion Work?

Every terminating decimal can be written exactly as a fraction. The recipe is mechanical: count the number of digits after the decimal point, write the digits without the decimal as the numerator, write 10 raised to that digit count as the denominator, then reduce by the greatest common factor. 1.375 has three decimal places, so it becomes 1375/1000, which reduces to 11/8 — and as a mixed number, 1 3/8.

This calculator runs that full conversion in one click: it shows the power-of-ten denominator, the unreduced fraction, the GCF reduction steps, the simplified form, and the mixed-number representation. For non-terminating (repeating) decimals like 0.333…, see the fraction to decimal converter for the reverse direction.

How the Decimal to Fraction Calculator Works

Count fractional digits

The number of digits after the decimal point determines the power-of-ten denominator. 0.5 has 1 digit → /10; 0.625 has 3 digits → /1000; 1.375 has 3 digits → /1000.

Build the power-of-ten fraction

Write the entire input (digits only, decimal point removed) as the numerator. Write 10^digits as the denominator. The result is an exact rational form of the decimal.

Reduce by GCF

Divide top and bottom by their greatest common factor — usually a power of 2 or 5 since the denominator is a power of 10. 1375/1000 has GCF 125, so it reduces to 11/8.

Convert to mixed if improper

If the reduced numerator is larger than the denominator, integer division extracts the whole part. 11/8 becomes 1 3/8 — the same value in textbook form.

6 Ways to Use Decimal to Fraction Conversion

1

Read engineering drawings

A spec of 0.625 in is exactly 5/8 in — the form a tape measure or mill spindle actually uses.

2

Convert measurements

0.75 cm = 3/4 cm; 1.25 oz = 1 1/4 oz. The mixed-number form is what packaging labels and recipes prefer.

3

Simplify financial percentages

0.025 (or 2.5%) is exactly 1/40 of the whole — useful in commission and interest calculations where exact fractions reveal the underlying ratio.

4

Homework conversion

Convert your decimal-form answer into the fraction form a teacher requested. The step-by-step view confirms the conversion is exact.

5

Music & rhythm

0.5 beats = 1/2 (eighth note), 0.25 beats = 1/4 (sixteenth). The fractional form maps directly to standard notation.

6

Probability conversion

A reported probability of 0.04 is exactly 1/25 — often a more honest representation of the underlying experiment than the rounded decimal.

Best Practices for Decimal-to-Fraction Conversion

Use the exact decimal, not a rounded one. 0.333 reduces to 333/1000, which doesn't simplify. The true value 1/3 = 0.333… is NOT what 0.333 converts to. Only terminating decimals convert exactly.

Watch for trailing zeros. 1.50 and 1.5 are the same value, but 1.50 enters as 150/100 = 3/2 while 1.5 enters as 15/10 = 3/2 — same answer, different starting point. Both reduce to the same fraction.

Negative decimals carry their sign on the numerator. −1.5 converts to −3/2, with the minus on top after reduction. The denominator is always positive in the output.

Why Decimal-to-Fraction Conversion Matters

Exact engineering specs

Imperial-unit machining, woodworking, and construction all use inch fractions on drawings. Converting a CAD decimal back to a fraction is the daily bridge between computer files and physical work.

Honest probabilities

Reporting 0.0625 as 1/16 reveals the underlying combinatorics — it came from a binomial 4-coin event. The decimal hides that structure.

Recipe & dosage clarity

0.25 tsp is harder to measure than 1/4 tsp. The fractional form maps to standard measuring spoons and pipettes.

Music & time signatures

Note values are powers of 2 in fractional form. Converting from a sequencer's decimal output back to a fraction makes the rhythm immediately readable.

Tricky Cases for Decimal-to-Fraction

Repeating decimals

0.333… and 0.142857… have no terminating representation. This calculator handles terminating decimals only — for repeating cycles, use the Fraction → Decimal tab to find the cycle and enter the equivalent fraction.

Decimals with very many digits

0.1234567890123 converts to a 13-digit numerator over 10^13. The reduction can be substantial — most such fractions reduce to surprisingly small ratios.

Pure integers

Entering 7 returns 7/1 (or just 7). The 'multiply by 1000' step is skipped because there are no decimal digits to clear.

Negative zero

−0.0 = 0; the calculator drops the negative sign and returns just 0. The sign only carries on nonzero results.

Core Decimal-to-Fraction Formulas

Let X.D₁D₂…Dₙ be a terminating decimal with n digits after the point, and let g = gcd(numerator, 10ⁿ).

Power-of-ten form

X.D₁…Dₙ = (XD₁…Dₙ as integer) / 10ⁿ

GCF reduction

(numerator / g) / (10ⁿ / g)

Mixed-number

improper n/d → ⌊n/d⌋ + (n mod d)/d

Percent equivalent

decimal × 100% = percentage

Negative

−decimal → −numerator / 10ⁿ → reduce

Zero

0.0 = 0/1 = 0

Common Decimal-to-Fraction Mistakes

Using a rounded decimal

Converting 0.33 doesn't give you 1/3 — it gives 33/100. Only the exact decimal converts to the exact fraction.

Counting digits wrong

0.05 has TWO digits after the decimal (the 0 counts), so it becomes 5/100 = 1/20. Skipping the leading zero produces 5/10 = 1/2, completely wrong.

Skipping the reduction

Leaving the answer as 1375/1000 is technically correct but not in canonical form. Always finish with the reduced fraction.

Forgetting the whole part

2.5 = 25/10 = 5/2 = 2 1/2. Dropping the 2 in front and converting only 0.5 gives a different number entirely.

Sign mishandling

−1.5 becomes −3/2, not 3/2. The sign belongs to the numerator throughout the reduction.

Treating recurring decimals as terminating

0.66666 (5 sixes) is not 2/3. The exact 2/3 requires infinite sixes; the calculator gives the literal decimal you entered.

Exact conversion every time — the integer arithmetic uses BigInt, so even 20-decimal-place inputs convert without precision loss.

For non-terminating decimal patterns like 0.142857… repeating, use the fraction-to-decimal tab to detect the cycle.

Decimal to Fraction — Frequently Asked Questions

Count the digits after the decimal point. Write the digits without the decimal as the numerator, and write 10 raised to the digit count as the denominator. For 1.375, the numerator is 1375 and the denominator is 1000, giving 1375/1000 — then reduce to 11/8.

0.5 has one digit after the decimal, so it equals 5/10. Dividing both top and bottom by the GCF 5 reduces to 1/2.

0.625 = 625/1000 = 5/8 after dividing by the GCF 125. This is exact because the denominator's prime factorisation only contains 2s and 5s.

2.625 = 2625/1000 = 21/8, which as a mixed number is 2 5/8. The whole part comes from integer division (21 ÷ 8 = 2 remainder 5).

Algebraic manipulation works for known cycles — e.g. 0.333… = 1/3 because 10x − x = 9x = 3. Our calculator currently accepts only terminating decimals; for repeating inputs, use the Fraction to Decimal mode to read the cycle, then enter the equivalent fraction manually.

Yes — every rational number (any terminating or repeating decimal) can be written as a fraction. Irrational numbers like π or √2 cannot, since their decimal expansions never terminate or repeat.