Fraction to Decimal Calculator

Exact decimal value of any fraction, with the repeating block marked.

Calculator

Quick examples

Example Result

1/4 = 0.25

Enter a fraction above and click Convert

How to Convert a Fraction to a Decimal

  1. Enter the numerator (top number of the fraction).
  2. Enter the denominator (bottom number of the fraction).
  3. Click Convert.
  4. The result shows the decimal value and whether it terminates or repeats.
Example: 3/4 → 3 ÷ 4 = 0.75 (terminating)
Example: 1/3 → 1 ÷ 3 = 0.(3) = 0.333… (repeating)
Example: 5/12 → 0.41(6) — only the 6 repeats

How the Conversion Works

Step 1 reduces the fraction by the greatest common divisor (GCD). Step 2 looks at the reduced denominator: only factors 2 and 5 means the decimal terminates; any other prime means it repeats. Step 3 is exact long division — divide, bring down a zero, record each remainder. Step 4: when a remainder comes back, the digits produced since its first appearance repeat forever. For 5/12 the remainder 8 returns, so 5/12 = 0.41(6).

Why the denominator decides: a terminating decimal is a fraction over 10, 100, 1000…, and powers of 10 contain only the primes 2 and 5. So 7/16 (16 = 2⁴) and 7/40 (40 = 2³ × 5) terminate, while 1/3, 5/12 and 1/7 repeat. This is why reducing first matters: 3/6 reduces to 1/2 = 0.5.

How many digits: for a terminating decimal, the number of decimal places is the larger of the powers of 2 and 5 in the reduced denominator (16 = 2⁴ → 4 places: 0.4375). For a repeating decimal the same count gives the digits before the cycle (12 = 2² × 3 → two: 0.41), and the cycle length depends on the remaining factor: 1/3 repeats every digit, 1/7 every 6, 1/97 every 96. For a prime denominator p the cycle length always divides p − 1.

SymbolMeaning
NumeratorTop number; a whole number, up to 30 digits
DenominatorBottom number; a whole number other than 0
GCDGreatest common divisor, used to reduce the fraction first
0.41(6)Non-repeating digits, then the repeating block in brackets

Worked Examples

  1. 1A 7/16 in drill size.

    16 = 2⁴ → four decimal places; 7 ÷ 16; × 25.4 for millimetres

    7/16 = 0.4375 in = 11.1125 mm

    Likewise 5/32 in = 0.15625 in = 3.96875 mm (1 inch is exactly 25.4 mm).

  2. 25/12, a repeating decimal with a non-repeating start.

    12 = 2² × 3 → two digits before the cycle; 5 ÷ 12 = 0.41666…

    5/12 = 0.41(6) ≈ 0.4167

    Only the 6 repeats; the factor 3 in the denominator makes it repeat.

  3. 3Why 22/7 is not π.

    22 ÷ 7 = 3.142857142857…; π = 3.14159265…

    22/7 = 3.(142857)

    The familiar approximation is too large from the third decimal place. 355/113 = 3.1415929… matches π to six decimal places — and its repeating block is 112 digits long.

Which Values Can I Enter?

  • Whole numbers onlyPositive or negative, up to 30 digits each. For a mixed number such as 2 3/8 enter the improper fraction 19/8 (= 2.375).
  • No decimals inside a fraction1.5/2 is not accepted; multiply both parts by 10 first (15/20 = 0.75).
  • SignsThe denominator cannot be 0. A negative sign can go on either number; the result carries it (−3/8 = −0.375).
  • Very long cyclesRepeating blocks longer than 2,000 digits are cut off and marked.

Reading the Result

The repeating block is marked with a bar on screen and with brackets when copied: 0.1(6) means 0.1666…, 0.(142857) means 0.142857142857….

The 20-place expansion writes the cycle out so you can copy a rounded value. Round to the precision you need: two decimals for money, three or four for inch measurements (7/16 in ≈ 0.438 in), more for engineering.

For the inverse, the Decimal to Fraction Calculator also rounds to the nearest 1/16, 1/32 or 1/64 inch.

Common Fractions as Decimals

FractionDecimalFractionDecimal
1/20.51/30.(3)
1/40.252/30.(6)
3/40.751/60.1(6)
1/80.1255/60.8(3)
3/80.3751/70.(142857)
5/80.6251/90.(1)
7/80.8751/110.(09)
1/160.06251/120.08(3)

Common Mistakes

  • Dividing the wrong way3/4 is 3 ÷ 4 = 0.75, not 4 ÷ 3.
  • Judging the unreduced fraction3/6 terminates (= 0.5).
  • Trusting a rounded display0.3333333333 is not exactly 1/3.
  • Marking too many digits as repeatingIn 1/6 = 0.1(6) only the 6 repeats, not "16".
  • Joining a mixed number's digits2 3/8 is 2.375, not 2.38.

Sources

  1. OEIS Foundation — A051626, Period of decimal representation of 1/n — e.g. a(7) = 6
  2. NIST SP 811, Appendix B.9 — conversion factors — inch = 2.54 × 10⁻² m (exact)
  3. G. H. Hardy and E. M. Wright — An Introduction to the Theory of Numbers, chapter IX "The representation of numbers by decimals" — terminating and recurring decimals (book reference)

Frequently Asked Questions