Decimal to Fraction Converter
Type a decimal and get the exact fraction in lowest terms, with the steps and a mixed number when the fraction is larger than 1. A decimal that repeats goes in brackets, so 0.(3) is 1/3 and 0.1(6) is 1/6. A percent sign works too, and so does a decimal comma. For a rounded decimal such as 3.14159 the page also gives the closest fraction with a denominator up to any limit you choose, and the nearest fraction on a ruler. Everything runs in your browser.
A repeating part goes in brackets: 0.(3) is 0.333 without end and 0.1(6) is 0.1666 without end. A percent sign or a decimal comma also works.
- Write the digits over a power of 10: 0.375 = 375/1000.
- Divide the top and bottom by their greatest common divisor, 125: 375/1000 = 3/8.
The exact fraction 3/8 already has a denominator of 8 or less.
| Fine to | Fraction | Off by |
|---|---|---|
| 1/2 | 1/2 | 0.125 |
| 1/4 | 1/2 | 0.125 |
| 1/8 | 3/8 | 0 |
| 1/16 | 3/8 | 0 |
| 1/32 | 3/8 | 0 |
| 1/64 | 3/8 | 0 |
A decimal that ends is read exactly: 0.375 is 375 over 1000, which reduces to 3/8. A repeating decimal written with brackets is also exact, with the same method used by hand, so 0.(3) is 1/3 and 0.(142857) is 1/7. A decimal that was rounded, such as 3.14159 or 0.333, is read as the digits you typed, so its exact fraction has a large denominator. The closest fraction with a small denominator uses continued fractions and is the best possible for the limit you set, and the ruler table rounds a half up. The arithmetic uses whole numbers of any size, up to 1,000 digits, so nothing is rounded along the way. Everything runs in your browser and nothing you type is uploaded.
Related Tools
[6 suggestions]Fraction Calculator
Add, subtract, multiply and divide fractions, mixed numbers and decimals, simplify to lowest terms and see the steps.
Math & MoneyPercentage Calculator
Find a percentage of a number, what percent one number is of another, a percentage increase or decrease, or a number raised or lowered by a percentage.
Math & MoneyGCD and LCM Calculator
Find the greatest common divisor and least common multiple of two or more whole numbers, with the Euclidean algorithm steps.
Math & MoneyCM to Inches Converter: Centimeters to Inches, Fractions and Feet
Convert centimeters to inches and inches to centimeters exactly, with the inches as a fraction of an inch, a height in feet and inches, and a table of common heights.
Format ConversionRatio Calculator
Simplify a ratio, list equivalent ratios, solve A : B = C : D for the missing term, and scale or split a total in a ratio.
Math & MoneyRounding Calculator: Round to Decimal Places or a Multiple
Round numbers to a chosen number of decimal places or to the nearest 0.05, 0.25 or 5, with ten rules including half away from zero and half to even, using exact decimals.
Student ToolsAbout the Decimal to Fraction Converter
A decimal that ends is a fraction over a power of 10. 0.375 is 375 over 1000, and dividing both by their greatest common divisor, 125, gives 3/8. A repeating decimal is also exact. Call it x, multiply by a power of 10 that lines up the repeating digits, subtract, and divide: for 0.(3), 10x minus x is 3, so 9x is 3 and x is 1/3. The tool does this with whole numbers of any size, up to 1000 digits, so 0.(142857) is exactly 1/7 and nothing is rounded. Type a repeating part in brackets after the point, such as 0.1(6), 2.(3) or 12.34(567). A percent is a fraction over 100, so 62.5% is 5/8. If you type a decimal that was rounded, such as 0.333 or 3.14159, it is read as the digits you typed, which gives 333/1000 and 314159/100000, and the closest small fraction is found with continued fractions, which is the best possible fraction for the denominator limit you set: 22/7 up to 10, 311/99 up to 100 and 355/113 up to 1000 for 3.14159. A table gives the nearest fraction over 2, 4, 8, 16, 32 and 64, rounding a half up, with how far each is from your decimal, which is how a tape measure or a drill bit chart reads. Everything runs in your browser and nothing you type is uploaded.
How do you convert a decimal to a fraction?▾
Write the digits over a power of 10 with as many zeros as there are digits after the point, then reduce. 0.375 is 375/1000, and dividing by the greatest common divisor, 125, gives 3/8. The tool shows each step.
How do you convert a repeating decimal to a fraction?▾
Type the repeating digits in brackets, such as 0.(3) or 0.1(6). The tool multiplies to line the repeating digits up, subtracts, and divides, so 0.(3) is 1/3 and 0.1(6) is 1/6. The result is exact.
What is 0.333 as a fraction?▾
Exactly, 0.333 is 333/1000. It is not 1/3, because 1/3 is 0.333 repeating without end. The closest fraction with a denominator up to 100 is 1/3, which the tool shows, and 0.(3) with brackets gives exactly 1/3.
How do I convert a percent to a fraction?▾
Divide by 100 and reduce. 62.5% is 62.5/100, which is 5/8, and 12.5% is 1/8. Type the number with the percent sign and the tool does it.
How do I turn a decimal into a mixed number?▾
Convert it to a fraction, then divide the top by the bottom. 2.75 is 11/4, which is 2 whole and 3/4. The tool shows the mixed number whenever the fraction is larger than 1.
Which fraction is closest to a decimal with a small denominator?▾
Set the denominator limit and the tool finds the best fraction up to it. For 3.14159 it is 22/7 up to 10, 311/99 up to 100 and 355/113 up to 1000.