For a terminating decimal, the calculator puts its digits over 10, 100, 1000, or the matching power of ten, then reduces by the greatest common divisor. Repeating decimals use exact algebra instead of rounding. All arithmetic stays in your browser and uses integers, so your input is never uploaded.
Decimal to Fraction Calculator
Runs entirely in your browser - no upload, no sign-up.
Enter a decimal
Use ordinary decimal notation, or put repeating digits in parentheses.
Repeating notation: 0.(3) means 0.333… and 0.1(6) means 0.1666…
195/90Divide by:15What is a decimal to fraction calculator?
A decimal to fraction calculator rewrites a terminating or repeating decimal as an exact ratio of whole numbers. Enter 0.875 to get 7/8, or mark recurring digits with parentheses, such as 0.1(6), to get 1/6. The result updates live and includes the reduction step.
How to use
- 01Enter the decimal
Type a finite value such as -1.25, or use parentheses to identify repeating digits, such as 0.1(6).
- 02Read the fraction
The calculator displays the exact fraction in lowest terms and a mixed number when the value is improper.
- 03Check the working
Review the unreduced fraction, greatest common divisor, and conversion method beneath the result.
- 04Copy the answer
Copy the original decimal and simplified fraction together for a worksheet, recipe, or calculation.
Who it's for
- Students and teachers checking decimal conversion exercises with the reduction shown.
- Woodworkers and makers turning measurements such as 0.625 into the exact fraction 5/8.
- Cooks and bakers converting decimal quantities into easier-to-read fractional amounts.
- Engineers and spreadsheet users recovering exact ratios from terminating or known repeating values.
FAQ
How do you convert a decimal to a fraction?
Count the digits after the decimal point, remove the point, and put that integer over the matching power of ten. For example, 0.375 becomes 375/1000. Divide both numbers by their greatest common divisor, 125, to get 3/8 in lowest terms.
How do I convert a repeating decimal to a fraction?
Mark the repeating block with parentheses, such as 0.(3) or 0.1(6). The calculator uses powers of ten to align two copies of the recurring value, subtracts away the infinite tail, then reduces the resulting ratio using exact integer arithmetic.
Can it convert negative decimals and mixed numbers?
Yes. A negative decimal keeps its sign, so -1.25 becomes -5/4 and is also shown as -1 1/4. Positive values greater than one are handled the same way, with both improper-fraction and mixed-number forms when they differ.
Is this decimal to fraction calculator accurate?
Yes for valid terminating decimals and repeating blocks you identify explicitly. The calculation parses the typed digits and uses BigInt integer arithmetic, not binary floating point. It does not guess whether a rounded decimal such as 0.333333 is meant to repeat forever.
What are the calculator limits?
The input accepts up to 120 digits, which is far beyond ordinary measurements and schoolwork while keeping live calculations responsive. It accepts digits, an optional sign, one decimal point, and an optional repeating block in parentheses. Expressions and irrational constants are not supported.
Is the decimal to fraction calculator free and private?
Yes. It is free, requires no sign-up, and performs every conversion locally in your browser. Your decimal is not sent to a calculation server. You can clear it at any time or replace it with one of the built-in examples.