Decimal to Fraction Calculator
This decimal to fraction calculator turns a decimal like 0.375 into a fraction in simplest form (3/8) and shows each step. It also handles repeating decimals like 0.333… and can round to the nearest 1/16 or 1/32 for a tape measure. Enter a decimal and press Calculate.
Decimal to Fraction Calculator
How to convert a decimal to a fraction
- Count the digits after the decimal point. That many zeros after a 1 gives the bottom number: 1 place is 10, 2 places is 100, 3 places is 1000.
- Write the decimal's digits, without the point, over that number.
- Find the greatest common factor (GCF) of the top and bottom, and divide both by it.
- If the top is bigger than the bottom, you can rewrite it as a mixed number.
For a number like 2.75, the same steps give 275/100 = 11/4, and 11 ÷ 4 = 2 remainder 3, so 2.75 = 2 3/4. A negative decimal works the same way: convert it without the minus sign, then put the sign back, so −0.625 = −5/8. If you get stuck on the GCF step, the GCF calculator shows how to find it.
Repeating decimals
A repeating decimal never ends, so you can't put it over 10 or 100. Instead, multiply it so the repeating parts line up, and subtract to make them cancel:
x = 0.1666… 100x = 16.666… (point moved past one repeat) 10x = 1.666… (point moved to where the repeats start) 90x = 15 (100x − 10x) x = 15/90 = 1/6The shortcut: the bottom number is one 9 for each repeating digit, followed by one 0 for each digit between the point and the repeats. So 0.(3) = 3/9 = 1/3, 0.(36) = 36/99 = 4/11, and 0.1(6) = (16 − 1)/90 = 1/6. This also shows why 0.999… repeating is exactly 1: it's 9/9.
Common decimals as fractions
| Decimal | Fraction | Decimal | Fraction |
|---|---|---|---|
| 0.0625 | 1/16 | 0.5625 | 9/16 |
| 0.125 | 1/8 | 0.625 | 5/8 |
| 0.1875 | 3/16 | 0.6875 | 11/16 |
| 0.25 | 1/4 | 0.75 | 3/4 |
| 0.3125 | 5/16 | 0.8125 | 13/16 |
| 0.375 | 3/8 | 0.875 | 7/8 |
| 0.4375 | 7/16 | 0.9375 | 15/16 |
| 0.5 | 1/2 | 1.0 | 1 |
| 0.1 | 1/10 | 0.2 | 1/5 |
| 0.333… | 1/3 | 0.666… | 2/3 |
| 0.1666… | 1/6 | 0.8333… | 5/6 |
The 16ths in the top rows are the marks on a standard tape measure, which is why decimal inches from a plan or a digital caliper often need rounding to one of them. A decimal is also a percentage in disguise: 0.375 is 37.5%, which the percentage calculator can take from there.
Rounding to a fraction
Most decimals from measuring or dividing aren't neat 16ths. "Nearest 1/16" multiplies the decimal by 16 and rounds to the nearest whole number, with exact halves rounding up: 0.3 × 16 = 4.8, so 5/16. "Closest, denominator up to 100" finds the fraction nearest to your decimal among all fractions with a bottom number of 100 or less, using continued fractions. For 3.14159 that's 311/99; with a cap of 10 it's the familiar 22/7. Either way the calculator shows how far the fraction is from your decimal.
Assumptions: the decimal you type is taken as exact (0.3 means exactly 3/10), up to 15 digits on each side of the point. Fractions are shown with a slash, and mixed numbers as a whole number, a space and a fraction, like 2 3/4.
Frequently asked questions
How do you turn a decimal into a fraction?
Write the digits after the point over 10, 100, 1000 and so on (one zero per decimal place), then divide the top and bottom by their greatest common factor. 0.375 = 375/1000, the GCF is 125, so 0.375 = 3/8.
What is 0.333… as a fraction?
Exactly 1/3. Call it x, then 10x = 3.333…; subtracting x cancels the repeating 3s and leaves 9x = 3, so x = 3/9 = 1/3. In the calculator, type 0.333... or 0.(3).
How do I type a repeating decimal?
Put the repeating digits in brackets, like 0.1(6) for 0.1666… or 0.(142857) for 0.142857142857…. You can also type three dots after a few repeats, like 0.1666... or 0.1212...; the calculator takes the block that repeats at the end.
What is 0.3 as a fraction?
3/10. One decimal place means tenths, and 3 and 10 share no common factor, so it's already in simplest form.
How do I convert a decimal measurement to 16ths of an inch?
Multiply the decimal part by 16 and round to the nearest whole number; that's how many 16ths. 0.3 in × 16 = 4.8, which rounds to 5, so it's about 5/16 in. Choose "Nearest 1/16" in the calculator to get this, along with how far off the rounded mark is.
See also
- GCF Calculator: Greatest common factor with factor trees and Euclid's method.
- Percentage Calculator: Percent of a number, percent change, and increase or decrease by a percent.
- Proportion Calculator: Solve A/B = C/D for the missing number, with steps.
- Ratio Calculator: Simplify ratios, convert to 1:n, and split a total in a ratio.
Last updated: November 23, 2026