Decimal to Fraction Converter — and Fraction to Decimal

Convert a decimal to its simplest fraction (with a whole-number part) or a fraction back to a decimal.

Decimal ↔ Fraction Converter

Numbers • fractions

0 chars
0 chars

How to Use the Decimal ↔ Fraction Converter

  1. Pick a direction — use the toggle at the top (e.g. encode vs decode).
  2. Type or paste your text — the result updates live as you type; large inputs are fine.
  3. Copy the result — one click copies the output to your clipboard.
  4. Swap — flip the direction (⇄) to reverse the conversion instantly.

Why Use This Decimal ↔ Fraction Converter

🎯

Reversible in one click

Encoding and decoding share the page, so any result can be pasted straight back to confirm it round-trips to the text you started with — the quickest check that nothing was mangled.

Live as you type

Results are recalculated on every keystroke, with no submit step and no page reload, so a value can be adjusted until the answer looks right rather than guessed once.

🔒

100% private

Everything runs in your browser — no account, no uploads, nothing leaves your device.

Understanding the Decimal ↔ Fraction Converter

Converting a decimal to a fraction expresses it as a ratio in lowest terms — 0.375 becomes 3/8. This is constant in cooking, woodworking, construction, math homework and finance, where a fraction is often clearer than a long decimal.

This tool finds the simplest fraction for any decimal (with a whole-number part for values over 1) and converts fractions like 1 1/2 back to decimals. Repeating decimals are approximated very closely. Instant and private.

Formula & Logic

Terminating decimals convert to fractions mechanically: the digits become the numerator and the place value becomes the denominator, after which you reduce. Repeating decimals need an algebraic trick — multiply by a power of ten that shifts one full repeat, subtract the original, and the repeating tail cancels. That method proves the surprising result that 0.999… equals exactly 1, which is not an approximation but an identity. Irrational numbers such as π and √2 have no fractional form at all, so any fraction given for them is an approximation, however good.

Terminating: 0.abc = abc ÷ 10ⁿ, then divide both by their GCDRepeating: let x = the decimal, multiply by 10^(repeat length), subtract x, solveReduce using the greatest common divisor

where:

n
number of decimal places
GCD
greatest common divisor of numerator and denominator
repeating block
the digits that recur, whose length sets the multiplier

Assumptions: Exact for terminating and repeating decimals, which together are precisely the rational numbers. A decimal that neither terminates nor repeats is irrational and has no exact fraction.

Step-by-Step Example: 0.375 and the Repeating 0.4545…

Convert a terminating decimal, then a repeating one using the subtraction method.

  • Terminating0.375
  • Repeating0.454545…
  1. 0.375 has three decimal places, so write it as 375/1000.
  2. Find the GCD of 375 and 1000: both divide by 125.
  3. Reduce: 375 ÷ 125 = 3 and 1000 ÷ 125 = 8, giving 3/8.
  4. Now the repeating case. Let x = 0.454545…; the repeat is two digits long.
  5. Multiply by 100: 100x = 45.454545…. Subtract the original: 100x − x = 45, so 99x = 45.
  6. Solve and reduce: x = 45/99, and both divide by 9, giving 5/11.

Result0.375 = 3/8 and 0.4545… = 5/11

The same subtraction method applied to 0.999… gives 10x − x = 9, so 9x = 9 and x = 1 exactly. It is not "nearly" one — the two notations name the same number, which is one of the few genuinely counter-intuitive results in elementary arithmetic.

Decimal ↔ Fraction Converter FAQ

The tool finds the closest simple fraction to your decimal and reduces it to lowest terms. Repeating decimals are approximated very closely.

Related Converters

✔ Written & reviewed by Dr Sam — 20+ yrs in management & research leadership📅 Last updated September 2026📚 Sources: NIST & BIPM SI unit definitions📑 How we build & check these

Which Decimals Are Fractions, and Which Only Nearly Are

A decimal terminates only when its denominator is built from twos and fives, which is why 0.375 resolves cleanly to 3/8 while a third does not resolve at all. Everything else repeats forever, and a converter has to decide how much of that repetition to honour. Values that repeat are matched to the simplest fraction within a tolerance, so the result is an excellent approximation rather than an identity — a distinction that matters as soon as the fraction is multiplied by something large.

Computers introduce a second layer of approximation before the conversion even begins. Binary floating point cannot represent 0.1 exactly, for the same reason decimal cannot represent a third, which is why adding a tenth to two tenths does not produce exactly three tenths in most programming languages. A decimal typed into any tool is therefore already the nearest representable value, and asking for its exact fraction can surface that discrepancy rather than hide it.

In workshop and construction use the question is usually narrower: not the simplest fraction, but the nearest one on a real scale. Tape measures are graduated in sixteenths, machinists work in thousandths, and drill and wrench sets come in fixed increments — so 0.375 is more useful read as six sixteenths than as three eighths when the marks on the tape are what you are aiming at. Rounding to the denominator you can actually measure is often more accurate in practice than carrying an exact fraction you cannot.