SuperDevTools

Fraction to decimal converter, and decimal to fraction

Type in any box and the other two update. For a repeating decimal, put the repeating digits in brackets (0.1(6)), end with an ellipsis (0.333...) or select them and click “Repeat”.

Result —
Examples

Closest fraction

For a number that doesn't come out exactly (π, a square root, a measurement), the tool finds the closest fraction whose denominator stays within the limit you set.

    Inch fractions

    The decimal is read as a length in inches and rounded to the nearest marking on an inch tape measure or ruler.

    Common fractions

    Click a fraction to convert it and see the working.

    FractionDecimalPercent

    Everything is worked out on your device. Your last entry is kept in this browser.

    One number, three ways to write it

    3/4, 0.75 and 75% are the same number. This converter links all three. Type in the “Fraction”, “Decimal” or “Percent” box and the other two fill in straight away. Use it as a fraction to decimal converter, as a decimal to fraction calculator, or to turn a percent to a fraction when you want to see what a discount really means.

    The math is exact. The tool works with whole numbers and spots repeating decimals, so 1/3 gives 0.(3) and 0.(3) gives back 1/3, with no rounding along the way.

    How to use it

    1. Type a fraction (3/4), a mixed number (1 3/4) or a negative value (-5/8) in “Fraction”.
    2. Or type a decimal in “Decimal”. If some digits repeat, put them in brackets: 0.1(6). You can also end with an ellipsis (0.333...) or select the digits and click “Repeat”.
    3. Or type a rate in “Percent”, without the % sign: 2.5 for 2.5%.
    4. Read the result, then the “Working” below it. “Copy result” copies the whole line.

    Further down, “Closest fraction” finds a simple fraction near a decimal that doesn't come out exactly, “Inch fractions” rounds to tape measure markings, and the “Common fractions” table lists the conversions people look up most.

    Decimal to fraction: the method

    For a terminating decimal, count the decimal places. 0.75 has two, so 0.75 = 75/100. The greatest common factor of 75 and 100 is 25, and 75/100 = 3/4. In the same way, 0.375 = 375/1000 = 3/8.

    For a repeating decimal, shift the decimal point so the repeats line up. With x = 0.1(6): 10x = 1.(6) and 100x = 16.(6). Subtract and you get 90x = 15, so x = 15/90 = 1/6. For 0.(3), 10x − x = 3, so x = 3/9 = 1/3. The working shown by the tool follows exactly these steps.

    Fraction to decimal: does it end or repeat?

    Divide the numerator by the denominator. The division ends only if the denominator of the simplified fraction has no prime factors other than 2 and 5. That's the case for 3/8 = 0.375 and 7/4 = 1.75. Otherwise a remainder comes back and the digits repeat: 1/7 = 0.(142857), a block of six digits. The tool shows the block in brackets and underlined.

    Percent to fraction

    A percent is a fraction of 100. 2.5% = 2.5/100 = 25/1000 = 1/40. A 25% off sale takes 1/4 off the price, and a 12.5% tip rate is 1/8 of the bill. The other way round, 1 3/4 = 7/4 = 1.75 = 175%, and 1/3 = 33.(3)%.

    FractionDecimalPercent
    1/80.12512.5%
    3/40.7575%
    1/60.1(6)16.(6)%
    1/400.0252.5%

    Closest fraction and inch fractions

    Some numbers have no simple exact fraction, π for example. Enter 3.14159265 and keep 1000 as the “Largest denominator”: the tool suggests 355/113, within 0.00000027. With a limit of 10 you get the classic 22/7. The method uses continued fractions, and the convergents are listed: 3, 22/7, 333/106, 355/113.

    “Show as fractions of an inch” helps with drill bits, lumber and plans in inches. Choose 1/16, 1/32 or 1/64: 0.3 in rounds to 5/16 in on a 1/16 scale, and 2.7 in rounds to 2 11/16 in.

    Frequently asked questions

    Why doesn't 0.333 give 1/3?

    Because 0.333 stops after three digits, so it's 333/1000. To say the 3 goes on forever, type 0.(3) or 0.333..., or click “Repeat”.

    What is 0.(9) equal to?

    Exactly 1. Using the method: 10x − x = 9, so x = 9/9 = 1. It isn't rounding, just another way of writing the same number.

    How do I enter a mixed number?

    Leave a space between the whole number and the fraction: 1 3/4. The tool turns it into 7/4, which is 1.75.

    How is this different from the fraction calculator?

    This page changes how one number is written, with percent, inch fractions and approximations. To add or multiply two fractions, use the fraction calculator on this site.