Decimal to fraction: what is a decimal as a fraction?
Type a decimal such as 0.375 to see it as a fraction in lowest terms. Repeating decimals work too, and you can round to the nearest 16th or 64th, as on a ruler.
Decimal to fraction calculator
I want to write 0.375 as a fraction in lowest terms.
Answer
38
0.375 as a fraction is 3/8. Write it as 375/1,000 and divide the top and bottom by 125.
- 3/8In lowest terms
- 37.5%As a percent
- ÷ 125Greatest common divisor of 375/1,000
- 375/1,000Before simplifying
Decimal to fraction, step by step
- Count the digits after the point: 3. So the bottom is 1 with 3 zeros, 1,000: 0.375 = 375/1,000.
- Find the greatest common divisor of 375 and 1,000: 125.
- Divide the top and bottom by 125: 375/1,000 = 3/8.
How close the nearest half, quarter, eighth and so on get to your decimal, as on a ruler. "Off by" is the fraction minus your decimal. The marked row is the one you picked.
| Nearest | Fraction | Decimal | Off by |
|---|---|---|---|
| 1/2 | 1/2 | 0.5 | +0.125 |
| 1/4 | 1/2 | 0.5 | +0.125 |
| 1/8 | 3/8 | 0.375 | 0 |
| 1/16 | 3/8 | 0.375 | 0 |
| 1/32 | 3/8 | 0.375 | 0 |
| 1/64 | 3/8 | 0.375 | 0 |
How to use the decimal to fraction calculator
- Decimal: type the number with a point, such as 0.375 or -2.45. For a repeating decimal, put the digits that repeat in brackets, 0.1(6), or type them a few times with dots, 0.1666...
- Answer as: Exact gives the fraction in lowest terms. 1/8 to 1/64 round to the nearest eighth, sixteenth, thirty-second or sixty-fourth, the marks on a ruler or drill set, and show how far off that is.
- Read the answer: the facts below give the fraction as a mixed number or percent, the number the top and bottom were divided by, and the unsimplified fraction.
When to turn a decimal to fraction
Use it when a plan, a spreadsheet or a digital caliper gives a decimal and the tape measure, wrench or drill bit is marked in fractions: 0.3 inch is closest to 5/16, 0.625 is exactly 5/8. It also answers homework questions such as writing 0.45 or 0.1666… as a fraction in lowest terms, with the steps.
To turn a fraction back into a decimal, use the fraction to decimal page. To work with the fraction you get, use the fraction calculator.
Decimal to fraction at a glance
What it does
Writes a decimal over a power of 10, or solves the repeat for a repeating decimal, then divides by the greatest common divisor. It can also round to the nearest 1/8, 1/16, 1/32 or 1/64.
Who it's for
Students, and anyone measuring in inches, cooking or woodworking who has a decimal and needs a fraction.
Watch out for
A rounded decimal gives a different fraction from the exact value: 0.33 is 33/100, while 0.333… is 1/3. Use brackets or dots when the digits really repeat.
How decimal to fraction conversion works
A decimal that ends is already a fraction with 10, 100, 1,000 or another power of 10 on the bottom: each digit after the point adds a zero. So 0.375 is 375 thousandths, 375/1000. To get lowest terms, divide the top and bottom by their greatest common divisor, the biggest number that goes into both. For 375 and 1000 that is 125, which leaves 3/8.
With your number: 0.375 = 375/1,000 = 3/8 (divided by 125).
A repeating decimal needs one more trick. Call the number x and multiply it by a power of 10 so the point moves past one full repeat. Both numbers then have the same endless tail, so subtracting one from the other leaves a whole number: for x = 0.333…, 10x − x = 3.333… − 0.333… = 3, so 9x = 3 and x = 1/3. That is why a block of one repeating digit ends up over 9, two digits over 99, and so on.
Rounding to the nearest 1/16 multiplies the decimal by 16, rounds to a whole number and puts it over 16, then simplifies. To go the other way, use the fraction to decimal page. To add or multiply the fractions you get, use the fraction calculator, and for inches and centimeters, the inches to cm converter.
Decimal to fraction: worked examples
What is 0.45 as a fraction?
Two digits after the point, so 45/100. The greatest common divisor of 45 and 100 is 5: 45 ÷ 5 = 9 and 100 ÷ 5 = 20, so 9/20.
Common mistake: stopping at 45/100. It is the right value, but not in lowest terms.
What is 0.1666… (the 6 repeats) as a fraction?
Let x = 0.1666… Then 100x = 16.666… and 10x = 1.666… Subtract: 90x = 15, so x = 15/90 = 1/6.
Common mistake: writing 0.1666 as 1666/10000. That is a rounded value; only the repeating decimal is exactly 1/6.
A plan says 0.3 inch. Which mark on the tape is that?
0.3 × 16 = 4.8, which rounds to 5, so the nearest sixteenth is 5/16 inch (0.3125). That is 0.0125 inch too long, about a third of a millimeter.
Common mistake: rounding 4.8 down to 4/16 (1/4 inch), which is off by 0.05 inch, four times as much.
What is 2.125 as a fraction?
2.125 = 2125/1000. Divide by 125: 17/8, or as a mixed number 2 1/8. Shortcut: 0.125 is 1/8, so put the 2 in front.
Common mistake: writing 2 125/1000 and forgetting to simplify the fraction part.
Decimal to fraction in Excel and Google Sheets
Put the decimal in A2. For the exact fraction, put the number of digits after the point in B2 (3 for 0.375). Both formulas give the fraction as text, such as 3/8. GCD only takes positive numbers, so use a positive decimal and add the minus sign yourself.
Read the table row by row: each row is one cell of your sheet, what to put in it and an example.
| Cell | What goes in it | Example |
|---|---|---|
| A2 | Decimal | 0.375 |
| B2 | Digits after the point | 3 |
| C2 | Answer (matches your choice above) | =ROUND(A2*10^B2,0)/GCD(ROUND(A2*10^B2,0),10^B2)&"/"&10^B2/GCD(ROUND(A2*10^B2,0),10^B2) |
Exact fraction in lowest terms
=ROUND(A2*10^B2,0)/GCD(ROUND(A2*10^B2,0),10^B2)&"/"&10^B2/GCD(ROUND(A2*10^B2,0),10^B2) Nearest 1/16, simplified
=ROUND(A2*16,0)/GCD(ROUND(A2*16,0),16)&"/"&16/GCD(ROUND(A2*16,0),16) Nearest 1/16, not simplified
=ROUND(A2*16,0)&"/16" Show as a fraction (format only)
=TEXT(A2,"# ?/?") ROUND inside the formula stops tiny floating-point errors (0.375 × 1000 = 374.99999…). Format codes such as # ?/16 or # ???/??? only change how the cell looks; # ?/? picks the closest fraction with a one-digit denominator, so it can be an approximation.
Decimal to fraction: frequently asked questions
How do you convert a decimal to a fraction?
Write the digits after the point over 1 followed by as many zeros as there are digits, then simplify. 0.6 is 6/10 = 3/5, and 0.125 is 125/1000 = 1/8.
How do you turn a repeating decimal into a fraction?
For a block that repeats from the point, put the block over as many 9s as it has digits: 0.(3) = 3/9 = 1/3, 0.(27) = 27/99 = 3/11. If other digits come first, use the x method in the steps above.
What is 0.333 as a fraction?
0.333 exactly is 333/1000. Only the endless 0.333… is 1/3. Type 0.333... or 0.(3) on this page for the repeating one.
Is 0.999… really equal to 1?
Yes. With x = 0.999…, 10x − x = 9.999… − 0.999… = 9, so 9x = 9 and x = 1. The page gives 1 for 0.(9).
How do I convert a decimal to the nearest 16th of an inch?
Multiply by 16, round to a whole number and put it over 16: 0.3 × 16 = 4.8, so 5/16. Simplify if you can: 0.75 × 16 = 12, and 12/16 = 3/4.
What is 0.0625 as a fraction?
0.0625 = 625/10000. Dividing both by 625 gives 1/16. Other common ones: 0.125 = 1/8, 0.25 = 1/4, 0.375 = 3/8, 0.5 = 1/2, 0.625 = 5/8 and 0.875 = 7/8.
Other math calculators
- Average calculator
- Fraction calculator
- Fraction to decimal
- Median calculator
- Percent change calculator
- Percent difference calculator
- Percent increase calculator
- Percent off calculator
- Percentage calculator
- Ratio calculator
- Rounding calculator
- Scientific notation calculator
- Simplify fractions calculator
- Square root calculator
- Standard deviation calculator
- Weighted average calculator
Report a problem with this calculator · Sponsor this calculator