Decimal to Fraction Converter

Use a dot for the decimal point. Put repeating digits in brackets, e.g. 0.(3), or use the field below.
How many of the last decimal digits repeat forever (0 = none). Ignored if you used brackets. The other way: fraction to decimal →
Math Updated 31 Oct 2026

Converts a decimal into a fraction in lowest terms and a mixed number, exactly. It handles repeating decimals too: say how many digits at the end repeat, or type the repeating block in brackets, such as 0.(3) for 0.333… = 1/3 or 1.2(45) for 1.24545… = 137/110. The working shows the power of ten (or the 999… denominator) used and the common factor cancelled.

  • The decimal is taken exactly as typed; digits are not rounded or guessed to repeat unless you mark them.

Formula

0.F = F ÷ 10ᵏ (k digits); 0.F(R) = (FR − F) ÷ ((10ʳ − 1) × 10ᵏ); then divide top and bottom by their GCD
  • A terminating decimal with k digits after the point is that many-digit whole number over 10ᵏ: 0.375 = 375/1000 = 3/8.
  • For a repeating block of r digits, multiply by 10ʳ and subtract the original to cancel the endless tail; this gives a denominator of r nines (followed by a zero for each non-repeating digit).
  • Both are reduced to lowest terms by dividing by the greatest common divisor, so the result is exact (no floating-point rounding).
  • A mixed number splits off the whole part: 21/8 = 2 5/8.

0.375 as a fraction

Inputs
  • Decimal: 0.375
  • Repeating digits at the end: 0

0.375 = 375/1000. The greatest common divisor of 375 and 1,000 is 125, so 375/1000 = 3/8.

Sources & references

  • Converting Decimals to Fractions
    Math is Fun · Retrieved 31 Oct 2026

    Write the decimal over 1, multiply top and bottom by 10 for each digit after the point, then simplify.

Frequently asked questions

How do I convert a decimal to a fraction?
Write the digits after the point over 10, 100, 1,000… (one zero per digit) and simplify. 0.45 = 45/100 = 9/20.
How do I convert a repeating decimal to a fraction?
Put the repeating block over as many nines: 0.(3) = 3/9 = 1/3 and 0.(27) = 27/99 = 3/11. With digits before the repeat, 0.1(6) = (16 − 1)/90 = 15/90 = 1/6.
Is 0.999… really equal to 1?
Yes. 0.(9) = 9/9 = 1. Two different decimal expansions can name the same number.
How do I convert a decimal greater than 1?
Convert the whole thing: 2.625 = 2625/1000 = 21/8, which is the mixed number 2 5/8.
Why does 0.33 not give 1/3?
0.33 stops after two digits, so it is exactly 33/100. Only the repeating decimal 0.333… equals 1/3: mark it as 0.(3) or set 1 repeating digit.

Related calculators

Fraction to Decimal Converter Turns a fraction or a mixed number into a decimal, rounded to the number of decimal places you choose. It does the long division exactly, so you also see whether the decimal stops (like 3/8 = 0.375) or repeats forever (like 1/6 = 0.1666…), with the repeating block marked. The fraction in lowest terms and the value as a percentage are shown as well. Fraction Calculator Adds, subtracts, multiplies and divides two fractions, simplifies a fraction to lowest terms, and converts between fractions and decimals. Fractions can be entered as simple fractions (7/4) or as mixed numbers (1 3/4). Every answer is reduced to lowest terms and also given as a mixed number, an exact decimal with any repeating digits marked, and a decimal rounded to six places, together with the working: the common denominator for addition and subtraction or the reciprocal for division. GCD Calculator (Greatest Common Divisor) Finds the greatest common divisor (GCD), also called the greatest common factor (GCF) or highest common factor (HCF), of up to 15 whole numbers: the largest number that divides all of them without a remainder. Enter the numbers separated by commas or spaces and choose how to see the working: the Euclidean algorithm step by step, or the prime factorization of each number with the shared factors picked out. The least common multiple is shown too. Rounding Calculator Rounds a number to a chosen place value (thousands, tens, a whole number, tenths, hundredths and so on), to a number of significant figures, or to the nearest fraction such as a quarter or a sixteenth. Ten rounding rules are available, from everyday half up and banker's rounding (half to even) to ceiling, floor and truncation, and a comparison table shows what each rule gives for your number. Arithmetic is exact, so 2.675 rounds to 2.68, not 2.67 as some software gives.