Fraction to Decimal Calculator
Convert any fraction or mixed number to a decimal with step-by-step long division. Detects repeating decimals and shows them in bar notation.
How to use this calculator
The calculator has three input fields. Fill in only what your problem needs:
- Whole — the integer part of a mixed number. Leave blank for a pure fraction like or .
- Numerator — the top number of the fraction (how many parts you have).
- Denominator — the bottom number (how many equal parts the whole is split into). Must be greater than zero.
Three common cases:
- Pure fraction (e.g. ): leave Whole blank, type
3and4. → 0.75 - Mixed number (e.g. ): type
2,3,8. → 2.375 - Negative value: put the minus sign on either Whole or Numerator — never on both, and never on Denominator. . (If both Whole and Numerator are negative, the signs cancel and the result is positive.)
The calculator converts mixed numbers to improper fractions automatically — becomes before dividing. You'll see the improper form displayed next to the result.
How to convert a fraction to a decimal
A fraction is just division. To get the decimal form, divide the numerator by the denominator:
decimal = numerator ÷ denominator
For mixed numbers like , first rewrite them as improper fractions, then divide.
Terminating vs. repeating decimals
Some divisions stop neatly — , . Others repeat forever — , . Which kind you get depends entirely on the denominator of the fraction in lowest terms.
A fraction terminates if and only if its reduced denominator has only the prime factors 2 and 5. So:
- terminates because .
- terminates because .
- terminates because .
- repeats because — the 3 is the problem.
- repeats because 7 is neither 2 nor 5.
Mixed numbers
A mixed number combines a whole part and a fraction: , , . To convert one to a decimal:
- Convert to an improper fraction: , over the original denominator.
- Divide as usual.
For : .
Sign rules for mixed numbers: a negative sign on either the whole part or the numerator (but not both) makes the result negative. . If both are negative the signs cancel.
Worked examples
Example 1 —
- Divide: .
- Long-divide: remainder 2. Then remainder 0.
- Result: 0.75 (terminating).
Example 2 —
- Divide: .
- Long-divide: remainder 1. The remainder repeats → cycle "3".
- Result: = 0.333…
Example 3 —
- Convert: .
- Divide: remainder 5. Then r 2, r 4, r 0.
- Result: 2.625 (terminating).
Common fractions reference
| Fraction | Decimal | Terminating? |
|---|---|---|
| 0.5 | yes | |
| repeats | ||
| 0.25 | yes | |
| 0.2 | yes | |
| repeats | ||
| repeats | ||
| 0.125 | yes | |
| repeats | ||
| 0.1 | yes | |
| repeats | ||
| repeats | ||
| 0.75 | yes | |
| 0.625 | yes | |
| 0.875 | yes |
Frequently asked questions
- What is as a decimal?
- = 0.333… — the digit 3 repeats forever. In bar notation it's written . Any rounded form (0.33, 0.333) is an approximation, not the exact value.
- Why does repeat infinitely?
- A fraction terminates only when its reduced denominator has just 2 and 5 as prime factors. 7 is prime and isn't 2 or 5, so must repeat — and its cycle is six digits long: 0.142857142857….
- Which fractions give a terminating decimal?
- A fraction (in lowest terms) terminates exactly when q has no prime factor other than 2 or 5. So , , all terminate; , , do not.
- Is a repeating decimal exact?
- Yes — the repeating decimal and the original fraction are the same number, exactly. The notation just makes the infinite tail explicit. Only rounded decimals (0.333 instead of ) lose precision.
- How is a repeating decimal written?
- Two common notations: a horizontal bar over the repeating digits (, ) or parentheses around them (0.(3), 0.(142857)). Both mean the digits inside repeat forever.