Numbers and fractions
Decimal to fraction calculator
Type a decimal like 0.375 or 2.75. The calculator writes it over a power of ten, divides out the common factor, and gives you the fraction in lowest terms.
Press Calculate. The answer and every step of the working will show here.
How it works
A decimal is a fraction whose denominator is a power of ten. The first place after the point is tenths, the second is hundredths, the third is thousandths, and so on. So 0.375 is 375 thousandths, which is 375/1000.
The method follows directly. Count the digits after the decimal point. Write the denominator as 1 followed by that many zeros: one digit means 10, two digits mean 100, three digits mean 1,000. Write the digits of the decimal, without the point, as the numerator. Then simplify by dividing the top and bottom by their greatest common factor.
A decimal with a whole part, such as 2.75, becomes an improper fraction first (275/100, then 11/4), and the calculator also writes it as a mixed number, 2 3/4. The percent card multiplies the decimal by 100.
This calculator handles terminating decimals, meaning decimals that stop. Repeating decimals such as 0.333... need a different method, because the digits never run out. If you type a long rounded value like 0.3333, you will get 3333/10000, which is correct for that exact number but not the same as 1/3.
The formula
- Denominator = 10 raised to the number of decimal places
- Numerator = the digits with the decimal point removed
- Lowest terms: divide top and bottom by their GCF
- Percent = decimal × 100
Worked example
Convert 0.375 to a fraction. There are 3 digits after the point, so the denominator is 10^3 = 1,000. The numerator is 375, so the fraction is 375/1000. The GCF of 375 and 1,000 is 125. Dividing top and bottom by 125 gives 3/8. As a percent, 0.375 is 37.5%.
More examples
A decimal bigger than 1. 2.75 has two decimal places, so it is 275/100. The GCF is 25, which gives 11/4. As a mixed number that is 2 3/4.
A negative decimal. -0.6 is -6/10. Dividing by 2 gives -3/5. The minus sign simply stays with the numerator.
One of the common ones. 0.125 is 125/1000. The GCF is 125, so the fraction is 1/8. It is worth memorizing 0.5 = 1/2, 0.25 = 1/4, 0.75 = 3/4, 0.2 = 1/5 and 0.125 = 1/8.
A decimal with a zero after the point. 0.04 has two decimal places, so it is 4/100. The GCF is 4, and the answer is 1/25. The zero matters: 0.04 is not 1/4.
A larger decimal. 12.5 is 125/10. The GCF is 5, so the fraction is 25/2, or the mixed number 12 1/2.
Common mistakes
- Counting the digits wrong. The number of zeros in the denominator must match the number of digits after the point. 0.04 has two digits, so the denominator is 100, not 10.
- Forgetting to simplify. 375/1000 is correct but unfinished. Teachers expect 3/8.
- Ignoring leading zeros after the point. 0.05 is 5/100 = 1/20, which is not the same as 0.5 = 1/2.
- Treating a rounded repeating decimal as exact. 0.667 is 667/1000, not 2/3. For repeating decimals, learn the algebra trick or use the fraction you recognize.
- Dropping the whole number. With 2.75, the 2 does not vanish. Either keep it as a mixed number, 2 3/4, or convert the whole thing to 11/4.
When to use it
Converting a decimal to a fraction is a core skill in middle school and a regular part of tests. It turns up when you read a measurement such as 0.625 inches on a ruler marked in eighths and sixteenths (that is 5/8), or when a recipe calls for 0.75 cup.
It is also the quickest way to check whether an answer from a calculator makes sense. If a computer gives 0.4375 as the result of a fraction problem, converting it back to 7/16 lets you compare it with your working on paper.
Common questions
How do I convert a decimal to a fraction by hand?
Count the places after the point, write the digits over 1 followed by that many zeros, then divide the top and bottom by their greatest common factor. For 0.6, that is 6/10, which becomes 3/5.
What about repeating decimals like 0.333...?
They need a different method. Let x = 0.333..., multiply by 10 to get 10x = 3.333..., and subtract: 9x = 3, so x = 1/3. This calculator is built for decimals that stop.
How many decimal places can I use?
Up to nine digits after the point. That is more than any school problem needs and keeps the whole numbers inside the range where the arithmetic is exact.
How do I turn a fraction back into a decimal?
Divide the top by the bottom. 3/8 is 3 ÷ 8 = 0.375. The fraction calculator on this site shows the decimal for every answer.
Why is 0.5 the same as 1/2?
0.5 is five tenths, which is 5/10. Dividing top and bottom by 5 gives 1/2. Both describe the same point on the number line, halfway between 0 and 1.
What does the percent card show?
It multiplies the decimal by 100. So 0.375 is 37.5%, and 2.75 is 275%. A percent is just a fraction whose denominator is 100.
You might also need
- Fraction CalculatorAdd, subtract, multiply or divide fractions and mixed numbers, with the answer simplified.
- Percentage CalculatorPercent of a number, what percent one number is of another, and percent change.
- GCF and LCM CalculatorThe greatest common factor and least common multiple of two to four numbers, by prime factors.
Need a quick calculation instead? The free scientific calculator on the homepage handles roots, powers, trig and logs, and the math guides explain each method step by step.