Skip to content
CalcShown

Popular

    Math & Percentages

    Decimal to Fraction Calculator

    Type a decimal to get the fraction in simplest form, as an improper fraction and a mixed number, with every step shown. Repeating decimals work too, written 0.1(6) or 0.1666…, and the other modes turn a fraction into a decimal with the repeat marked or find the closest simple fraction. The math is exact, so 0.1 is 1/10, never a rounding error.

    Verified · 18 tests · 5 sources · Updated

    What verified means on this page

    • Tested. 18 automated tests check this calculator against official examples, published tables or hand-worked answers every time the site changes (last run December 3, 2026).
    • Sourced. The formulas and data come from the 5 sources listed below, checked against a second source.
    • Shown. "Show the Math" lists every step with your own numbers, so you can check the answer yourself.
    • Open to correction. Spot an error? Tell us. We fix it, add a test so it can't come back, and log it.
    How we verify every calculator →
    Convert

    Mark digits that repeat with brackets, 0.1(6), or dots, 0.1666…

    Or say how many: 1.83 with 1 repeating is 1.8333…

    How to Convert a Decimal to a Fraction

    1. Count the decimal places. 1.625 has three.
    2. Put the digits over 1 with that many zeros. 1.625 = 1625/1000.
    3. Divide both by their greatest common divisor. The GCD of 1625 and 1000 is 125, so 1625/1000 = 13/8. Now the top and bottom share no factor, so the fraction is in simplest form.
    4. For a mixed number, divide. 13/8 is an improper fraction, with the top bigger than the bottom. 13 ÷ 8 = 1 remainder 5, so 13/8 = 1 5/8.
    Decimal Fraction Decimal Fraction
    0.1 1/10 0.125 1/8
    0.2 1/5 0.25 1/4
    0.3 3/10 0.375 3/8
    0.4 2/5 0.5 1/2
    0.6 3/5 0.625 5/8
    0.7 7/10 0.75 3/4
    0.8 4/5 0.875 7/8
    0.9 9/10 1.5 3/2

    Repeating Decimals to Fractions

    A repeating decimal is exactly a fraction too. To find it, subtract so the endless part cancels out:

    1. Let x = 1.8333… (the 3 repeats).
    2. Multiply to move one full repeat past the point: 100x = 183.333…
    3. Multiply to move just the part before the repeat: 10x = 18.333…
    4. Subtract: 100x − 10x = 183.333… − 18.333…, so 90x = 165.
    5. x = 165/90 = 11/6, or 1 5/6.

    In general, the number is (the digits through one repeat − the digits before the repeat) ÷ (10^(m+k) − 10^m), where m is the number of digits between the point and the repeat and k is the length of the repeat. In the calculator, type the repeat in brackets, like 1.8(3), or add dots, like 1.8333…, or enter 1.83 and set 1 repeating digit.

    A few to know: 0.(3) = 1/3, 0.(6) = 2/3, 0.1(6) = 1/6, 0.(09) = 1/11, 0.(142857) = 1/7, and 0.(9) = 1.

    Fractions to Decimals

    Divide the top by the bottom. The decimal either ends (a terminating decimal) or repeats forever (a repeating decimal), and the denominator in simplest form tells you which. If its only prime factors are 2 and 5, the decimal ends. Anything else, and it repeats.

    Fraction Decimal Fraction Decimal
    1/2 0.5 1/8 0.125
    1/3 0.(3) 3/8 0.375
    2/3 0.(6) 5/8 0.625
    1/4 0.25 7/8 0.875
    3/4 0.75 1/9 0.(1)
    1/5 0.2 1/10 0.1
    1/6 0.1(6) 1/11 0.(09)
    5/6 0.8(3) 1/12 0.08(3)
    1/7 0.(142857) 5/12 0.41(6)
    2/7 0.(285714) 7/12 0.58(3)

    The digits in brackets repeat. In print they’re often written with a bar over them instead. Some repeats are long: 1/17 repeats every 16 digits, and 1/97 every 96. The calculator finds the full block by long division, stopping when a remainder comes back.

    Sixteenths and Thirty-Seconds

    For measurements, here are the odd sixteenths and thirty-seconds. For whole lengths in feet and inches, use the feet and inches calculator.

    Fraction Decimal Fraction Decimal
    1/16 0.0625 1/32 0.03125
    3/16 0.1875 3/32 0.09375
    5/16 0.3125 5/32 0.15625
    7/16 0.4375 7/32 0.21875
    9/16 0.5625 9/32 0.28125
    11/16 0.6875 11/32 0.34375
    13/16 0.8125 13/32 0.40625
    15/16 0.9375 15/32 0.46875

    Rounded Decimals and the Nearest Fraction

    A decimal on a screen is often rounded. 0.333 is exactly 333/1000, but it probably came from 1/3. When you type a decimal with two or more places, the calculator also shows the simplest fraction that rounds to it, the one with the smallest denominator within half a unit of the last digit.

    To cap the denominator, use Nearest simple fraction. It expands the number as a continued fraction and picks the closest fraction whose denominator fits. 3.14159 under 100 is 311/99, under 1,000 is 355/113, and to the nearest sixteenth is 3 1/8. The answers match Python’s Fraction.limit_denominator.

    What Other Converters Get Wrong

    • Repeats. Several popular converters don’t take repeating decimals at all, and one worked example stops at 1167/990 without reducing it to 389/330.
    • Rounding shown as equals. One fraction-to-decimal page shows 20/24 as 0.833. It is 0.8333… forever, and here the repeat is marked.
    • No nearest-fraction option. Only one of the top pages rounds to a chosen denominator, and none explains how. This calculator uses continued fractions and shows how far off the answer is.

    Frequently Asked Questions

    How do you convert a decimal to a fraction?

    Write the digits after the point over 10, 100 or 1,000, one zero for each decimal place, then divide the top and bottom by their greatest common divisor. 1.625 has three decimal places, so it's 1625/1000. Both divide by 125, giving 13/8, which is 1 5/8 as a mixed number.

    How do you convert a repeating decimal to a fraction?

    Call the number x, multiply it by powers of 10 so two copies have the same repeating tail, and subtract so the tails cancel. For 0.1666…, 100x = 16.666… and 10x = 1.666…, so 90x = 15 and x = 15/90 = 1/6. The calculator does this for any repeat you mark with brackets, like 0.1(6).

    How do you convert a fraction to a decimal?

    Divide the top number by the bottom number. 3/8 is 3 ÷ 8 = 0.375. With long division, if a remainder comes up a second time, the digits from there repeat forever. 5/6 gives remainder 2 twice in a row, so it's 0.8333…, written 0.8(3) or with a bar over the 3.

    How can you tell if a fraction's decimal ends or repeats?

    Reduce the fraction, then look at the bottom number. If its only prime factors are 2 and 5, the decimal ends. 3/8 (8 = 2 × 2 × 2) is 0.375 and 7/20 is 0.35. Any other factor makes it repeat. 1/3, 5/6 and 1/7 all repeat.

    What is 0.333 as a fraction?

    Exactly, 0.333 is 333/1000. If the 3s go on forever, 0.333… is exactly 1/3. When 0.333 is a rounded value, 1/3 is the simplest fraction that rounds to it, and the calculator shows both.

    Is 0.999… equal to 1?

    Yes. With x = 0.999…, 10x = 9.999…, and subtracting gives 9x = 9, so x = 1. Type 0.(9) and the calculator returns 1.

    How do I convert a decimal to the nearest fraction with a small denominator?

    Use the Nearest simple fraction mode and set the largest denominator you'll accept. It uses continued fractions to find the closest one. For example, 3.14159 with denominators up to 100 gives 311/99, and up to 1,000 gives 355/113. It also shows the nearest 1/16, 1/32 and 1/64 for tape measures.

    How do you write 0.625 as a fraction?

    0.625 is 625/1000. The greatest common divisor of 625 and 1000 is 125, so it reduces to 5/8.

    What does simplest form mean?

    A fraction is in simplest form, also called lowest terms, when the top and bottom share no factor except 1. 625/1000 isn't, because both divide by 125. Dividing gives 5/8, and 5 and 8 share no factor, so 5/8 is in simplest form. Every answer the calculator gives is already reduced this way.

    Should I write an improper fraction or a mixed number?

    Either one. They're equal, with 13/8 the improper fraction and 1 5/8 the mixed number. Improper fractions are easier to multiply and divide, so algebra usually uses them. Mixed numbers are easier to picture and are the usual way to write a measurement, like 1 5/8 inches. The calculator shows both whenever the value is more than 1.

    What is a terminating decimal?

    A decimal that ends, like 0.375 or 2.5. Every terminating decimal is a fraction over 10, 100, 1,000 or another power of 10, and in simplest form its denominator has no prime factors except 2 and 5. A repeating decimal, like 0.333…, never ends but is still a fraction (1/3). A decimal that never ends and never repeats, like π, is irrational and can't be written as a fraction.

    How do you convert fractions to decimals without a calculator?

    Use long division. Divide the numerator by the denominator, add a zero to each remainder and keep dividing. 7/12 goes 70 ÷ 12 = 5 r 10, then 100 ÷ 12 = 8 r 4, then 40 ÷ 12 = 3 r 4. The remainder 4 came back, so the answer is 0.58333…, written 0.58(3).

    Sources

    1. OpenStax Prealgebra 2e, 5.1 Decimals, converting decimals to fractions by place value, then simplifying
    2. OpenStax Prealgebra 2e, 5.3 Decimals and Fractions, fraction to decimal by division; repeating decimals and bar notation
    3. Wolfram MathWorld, Decimal Expansion (a reduced fraction ends only if its denominator has no prime factors but 2 and 5; repeat length is the order of 10)
    4. Wolfram MathWorld, Decimal Period (how many digits repeat)
    5. Python documentation, fractions.Fraction.limit_denominator (closest fraction with a bounded denominator), used to check this calculator