Fraction to decimal
Convert a fraction such as 3/8 into a decimal such as 0.375. When the decimal goes on forever, like 1/3, the tool rounds it to the number of places you choose and labels it as rounded.
- Runs in your browser
- Free, no account needed
- Copy or download the result
Result
The short answer
Divide the numerator by the denominator to turn a fraction into a decimal. In lowest terms, if the denominator has any prime factor other than 2 or 5, the decimal repeats forever.
FormulaDecimal = numerator / denominator
Worked exampleThe fraction 5/12 is 0.416666666667 rounded to 12 places, written 0.41(6) with the 6 repeating, and it equals 41.666666666667%.
Example
5/12
- Rounded to
- 12 decimal places
- Repeating form
- 0.41(6)
- Percent
- 41.666666666667%
- Simplified fraction
- 5/12
The digits in parentheses repeat forever.
How to use the fraction to decimal
- Type a fraction in the box, such as 5/12, -7/8 or 1 3/8.
- Pick 6, 12, 20 or 40 places under Decimal places.
- The result updates as you type, or press Run. Use Copy result or Download to keep it.
How it works
The tool divides the top number by the bottom number using whole-number arithmetic, so there is no floating point error.
The Exact line appears when the decimal ends within your chosen places. Otherwise a Rounded to line shows how many places were kept.
Rounding goes to the nearest digit, and exact halves round away from zero. Trailing zeros are removed.
Repeating decimals are rounded in the headline, and the Repeating form line shows which digits repeat, in parentheses. For example, 1/3 is 0.(3) and 5/12 is 0.41(6). Repeats longer than 200 digits are not shown.
A zero denominator is rejected. Each part of the fraction can have up to 80 digits.
Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.
Questions and answers
How do you convert a fraction to a decimal?
Divide the numerator, the top number, by the denominator, the bottom number. 3/8 means 3 divided by 8, which is 0.375.
Why does 1/3 not give an exact decimal?
1/3 is 0.3333... with 3s that never end. Any fraction in lowest terms whose denominator has a prime factor other than 2 or 5 repeats forever, so the tool rounds it.
What is 2/3 as a decimal?
It is 0.6666... repeating. Rounded to 6 places, this tool shows 0.666667.
Can I enter an improper fraction or a negative?
Yes. 7/4 gives 1.75 and -1/8 gives -0.125.
Last updated November 1, 2026. Maintained by SnowRock. How our tools work
All 220 SnowRock tools