Decimal to Fraction Calculator
: Turn a decimal, a repeating decimal or a percent into a fraction in lowest terms and a mixed number with the working, round it to the nearest 1/16, or turn a fraction into a decimal- Fraction
- 3/8
- In lowest terms.
- Decimal
- 0.375
- Percent
- 37.5%
- Working
- 0.375 has 3 decimal places, so write it over 1,000 (10³): 0.375 = 375/1,000 375/1,000 = (375 ÷ 125)/(1,000 ÷ 125) = 3/8 (the GCF of 375 and 1,000 is 125)
Decimal to Fraction Calculator
Type a decimal and get it as a fraction in lowest terms, as a mixed number and as a percent, with the working a teacher would expect. The same field reads repeating decimals such as 0.1(6) or 0.333..., percents such as 37.5%, and fractions such as 3/7, which it turns into a decimal. Pick a step such as 1/16 to get the nearest tape-measure fraction too.
How to convert a decimal to a fraction
- Type the number in
Number: a decimal (0.375,-1.6), a repeating decimal (0.1(6)or0.333...), a fraction (3/8), a mixed number (1 3/4) or a percent (37.5%). No mode to pick: the form you type decides. - Read
Fractionat the top, always in lowest terms.Mixed number,DecimalandPercentfollow. When you type a fraction,Decimalcomes first instead. - For a measurement, set
Round to the nearestto1/16,1/32,1/64or another step. A new row gives the nearest fraction on that step, how far off it is, and the step on the other side. - Read
Workingfor each step, or openExamplesto load one.Copyon a row copies its value.
Example
An ending decimal: count the decimal places, write the digits over that power of 10, then divide top and bottom by their greatest common factor.
0.3750.375 has 3 decimal places, so write it over 1,000 (10³): 0.375 = 375/1,000
375/1,000 = (375 ÷ 125)/(1,000 ÷ 125) = 3/8 (the GCF of 375 and 1,000 is 125)
Fraction: 3/8
Percent: 37.5%Details
- Decimal to fraction, the school method: the digits after the point tell you the bottom. 0.375 has 3 decimal places, so write it over 1,000 (10³): 0.375 = 375/1,000. 375/1,000 = (375 ÷ 125)/(1,000 ÷ 125) = 3/8 (the GCF of 375 and 1,000 is 125). So 0.375 as a fraction is 3/8. A whole part comes along: 1.625 is 13/8, and as a mixed number 1 5/8, which is how the tool does decimal to mixed number.
- Repeating (recurring) decimals: put the repeating digits in brackets, as in
0.1(6), or end with dots, as in0.333.... A bar typed over the digits (a combining overline) works like brackets. The working is the subtraction trick: Let x = 0.1(6) = 0.1666666…; 1 digit before the block and 1 digit in it, so multiply by 100 (10²) and by 10: 100x = 16.666666… and 10x = 1.666666…; subtract so the repeating part cancels: 100x − 10x = 16 − 1, so 90x = 15; x = 15/90 = (15 ÷ 15)/(90 ÷ 15) = 1/6 (the GCF of 15 and 90 is 15). - 0.333 and 0.(3) are different numbers. Typed with no dots or brackets, 0.333 is exactly 333/1,000, with a note on how to type the repeating reading. Only 0.(3) or 0.333... is 1/3. With dots, the shortest block the digits end with at least twice is taken as the repeat; when no block shows twice, only the last digit repeats, and a note says which reading was used. For 0.16... the tool says: "Read 0.16... as 0.1(6): no group of digits shows twice before the dots, so only the last digit, 6, repeats. To repeat other digits, put them in brackets, such as 0.(16)." And 0.(9) is 1 exactly, and the working says why.
- Decimal to fraction chart, in sixteenths: 0.0625 = 1/16; 0.125 = 1/8; 0.1875 = 3/16; 0.25 = 1/4; 0.3125 = 5/16; 0.375 = 3/8; 0.4375 = 7/16; 0.5 = 1/2; 0.5625 = 9/16; 0.625 = 5/8; 0.6875 = 11/16; 0.75 = 3/4; 0.8125 = 13/16; 0.875 = 7/8; 0.9375 = 15/16. So 0.25 as a fraction is 1/4, 0.75 as a fraction is 3/4, 0.5 as a fraction is 1/2, 0.125 as a fraction is 1/8 and 0.625 as a fraction is 5/8. Read the other way, this is a fraction to decimal chart.
- Thirds, sixths, ninths and sevenths repeat: 0.(3) = 1/3; 0.(6) = 2/3; 0.1(6) = 1/6; 0.8(3) = 5/6; 0.(1) = 1/9; 0.08(3) = 1/12; 0.(142857) = 1/7. The digits in brackets go on forever, so a chart that prints 0.333 for 1/3 is rounded.
- Decimal inches to fractions, in 64ths, from 0 to 1/4 inch: 0.015625 = 1/64; 0.03125 = 1/32; 0.046875 = 3/64; 0.0625 = 1/16; 0.078125 = 5/64; 0.09375 = 3/32; 0.109375 = 7/64; 0.125 = 1/8; 0.140625 = 9/64; 0.15625 = 5/32; 0.171875 = 11/64; 0.1875 = 3/16; 0.203125 = 13/64; 0.21875 = 7/32; 0.234375 = 15/64; 0.25 = 1/4.
- From 1/4 to 1/2 inch: 0.265625 = 17/64; 0.28125 = 9/32; 0.296875 = 19/64; 0.3125 = 5/16; 0.328125 = 21/64; 0.34375 = 11/32; 0.359375 = 23/64; 0.375 = 3/8; 0.390625 = 25/64; 0.40625 = 13/32; 0.421875 = 27/64; 0.4375 = 7/16; 0.453125 = 29/64; 0.46875 = 15/32; 0.484375 = 31/64; 0.5 = 1/2.
- From 1/2 to 3/4 inch: 0.515625 = 33/64; 0.53125 = 17/32; 0.546875 = 35/64; 0.5625 = 9/16; 0.578125 = 37/64; 0.59375 = 19/32; 0.609375 = 39/64; 0.625 = 5/8; 0.640625 = 41/64; 0.65625 = 21/32; 0.671875 = 43/64; 0.6875 = 11/16; 0.703125 = 45/64; 0.71875 = 23/32; 0.734375 = 47/64; 0.75 = 3/4.
- From 3/4 to 1 inch: 0.765625 = 49/64; 0.78125 = 25/32; 0.796875 = 51/64; 0.8125 = 13/16; 0.828125 = 53/64; 0.84375 = 27/32; 0.859375 = 55/64; 0.875 = 7/8; 0.890625 = 57/64; 0.90625 = 29/32; 0.921875 = 59/64; 0.9375 = 15/16; 0.953125 = 61/64; 0.96875 = 31/32; 0.984375 = 63/64.
- Fraction to decimal: type the fraction. A fraction in lowest terms ends as a decimal only when its bottom has no prime factors other than 2 and 5. The bottom, 8 = 2³, has no prime factors other than 2 and 5, so the decimal ends. Multiply top and bottom by 125 to make the bottom 1,000: 3/8 = 375/1,000 = 0.375. Otherwise the long division runs into a remainder it has seen before and the digits repeat: Divide 3 by 7: the remainders go 3, 2, 6, 4, 5, 1, 3. The remainder 3 has come back, so the digits repeat from there: 3/7 = 0.(428571). Fraction to percent is the same value times 100: 3/8 is 37.5% and 3/7 is 42.(857142)%.
- Percent to fraction: a percent is a number over 100. 37.5% = 37.5/100 (percent means per hundred) = 375/1,000 (multiply top and bottom by 10 to clear the decimal point), which is 3/8. Mixed and repeating percents work too: 12 1/2% is 1/8 and 33.(3)% is 1/3.
- Nearest fraction: with
Round to the nearestset to 1/16, 0.4 gives 3/8 (6/16), because 0.4 lies between 6/16 and 7/16 and is closer to 6/16. A value exactly halfway, such as 0.40625, rounds away from zero to 7/16, and the row says it was a tie. The steps 1/10, 1/100 and 1/1000 round to tenths, hundredths and thousandths the same way. - Close simple fractions: when the exact bottom is above 100, the tool also lists the continued-fraction convergents with bottoms up to 1,000, the fractions with small bottoms that come closest. For 3.14159 that is 22/7, 333/106, 355/113, each with how far off it is.
- To add, subtract, multiply or divide fractions, use the Fraction Calculator.
Limits
- One number at a time: no sums and no list of decimals. A sum such as 1/2 + 1/3 is refused: "1/2 + 1/3" looks like a sum: this tool converts one number, with its sign at the start (-1.6). For sums of fractions, use the Fraction Calculator.
- No named constants or roots: it does not know π or √2. A typed 3.14159 is read as exactly 314,159/100,000, and the close simple fractions are the nearest it gets to π.
- Commas are thousands separators only (1,250.5). A comma as the decimal mark is refused: Use a point for decimals: 0.5, not 0,5. Commas are read as thousands separators (1,250.5).
- No units: it converts decimal inches through the 1/16 to 1/64 steps but does not take feet and inches or other units.
- A typed decimal has no digit limit and is shown in full; a number over 20,000 characters is converted in the background, with a progress line and Cancel, so a pasted million-digit decimal does not freeze the page. For a fraction typed in, the Decimal row is exact when it ends within 30 places and gives the repeating form when the block is 30 digits or fewer; otherwise it is rounded and says so (1/97 gives ≈ 0.010309).
- In the Working, numbers over 40 digits are shortened to their first and last 6 digits, with a note; the rows show them in full.
- Trailing dots are a reading of what you meant, not proof. Brackets are exact: type 0.1(6) when you know the block. Close simple fractions list at most 5. 0.1 is read as exactly 1/10, so there is no rounding error from binary arithmetic.
FAQ
How do you convert a decimal to a fraction?
Write the digits after the point over 10, 100 or 1,000 (one zero per decimal place), then divide top and bottom by their greatest common factor. 0.375 is 375/1,000, the GCF is 125, so 0.375 is 3/8. Type any decimal in Number and Working shows those steps.
How do you convert a repeating decimal to a fraction?
Call the number x, multiply by powers of 10 so two copies have the same repeating tail, and subtract. For 0.1(6): 100x − 10x = 16 − 1, so 90x = 15 and x = 1/6. Type it as 0.1(6) or 0.1666... and the tool does the algebra.
How do you convert a fraction to a decimal or a percent?
Divide the top by the bottom. 3/8 is 0.375, and times 100 that is 37.5%. 3/7 never ends: it is 0.(428571), about 42.857143%.
How do you convert a percent to a fraction?
Put the percent over 100 and simplify. 37.5% is 37.5/100, which is 375/1,000, which is 3/8. Type 37.5% and the working shows each step.
How do you convert decimal inches to a fraction?
Set Round to the nearest to the marks on your tape, often 1/16, and type the decimal. 0.4 inch gives 3/8 inch, short by 1/40 inch (0.025). The chart above lists every 64th.
Runs entirely in your browser. Nothing is uploaded.