Decimal to Fraction Converter

Free decimal to fraction converter. Convert any decimal number to a simplified fraction and a mixed number using a continued-fraction approximation that finds the closest ratio.

AI-ready Use this tool with AI

This tool has a free JSON API. Copy a prompt or skill below to use it with ChatGPT, Claude, or any AI agent — no API key needed.

API docs
Enter a decimal number above.

How decimal to fraction converter works

A decimal can always be written as a fraction: the place value of the last digit tells you the denominator. 0.75 means seventy-five hundredths, or 75/100, which simplifies to 3/4. For terminating decimals this is exact; for repeating or rounded decimals the exact fraction may have a huge denominator, so we find the closest simple fraction instead.

This converter uses a continued-fraction algorithm, the same method a mathematician uses to find the best rational approximation. It walks the continued fraction of the number and stops when the next convergent would need a denominator larger than the cap (10,000 by default), returning the closest fraction within that bound. The result is always in lowest terms.

Enter a decimal (positive or negative, terminating or rounded). The tool returns the fraction, the mixed-number form when the value is greater than 1, and the numerator and denominator separately. It also reports the integer-as-fraction case (5 becomes 5/1). Use it for carpentry, recipes, machining, and homework where fractional measurements are preferred.

Frequently asked questions

How is 0.75 converted to a fraction?
0.75 = 75/100, which simplifies to 3/4. The converter finds this directly via continued fractions and always returns the fraction in lowest terms.
What happens with repeating decimals like 0.333?
Because 0.333 is rounded, the exact fraction is 333/1000. The converter returns that, but for 0.142857 it correctly recognises 1/7. You can lower the denominator cap to force simpler approximations.
What is a mixed number?
A fraction greater than 1 written as a whole number plus a proper fraction, like 2 1/4 for 2.25. The converter reports both the improper fraction (9/4) and the mixed form when the value is greater than 1.
How accurate is the result?
For terminating decimals the fraction is exact. For rounded inputs the result is the closest fraction with a denominator up to 10,000 — accurate to well under 0.01% in practice, and you can request a smaller cap for a simpler, rounder fraction.