Free math calculator

Decimal to Fraction Calculator

Convert a decimal to a simplified fraction, or switch to convert any fraction or mixed number back to a decimal. Both directions include calculation steps, repeating decimals and copyable answers.

Convert a decimal

Enter a decimal number. Write repeating digits in parentheses, such as 0.(3) or 0.1(6).

Examples: 0.125, -2.75, 0.(3), 0.1(6)

Conversion method

Exact mode uses integer arithmetic, not floating-point approximations. The calculator supports up to 80 non-repeating decimal places and 20 repeating digits.

Simplified fraction

3/4

Mixed number / whole number3/4 (proper fraction)
Conversion typeExact result
Calculator initializing…

Step-by-step solution

  1. Write 0.75 as 75/100.
  2. Divide both parts by 25.
  3. The simplified fraction is 3/4.

How to convert a decimal to a fraction

A two-way decimal and fraction calculator helps express the same value in whichever format you need. The first tab changes decimals into simplified fractions; the second tab divides a fraction to give its decimal form. A decimal to fraction calculator changes a decimal number into a ratio of whole numbers. For example, 0.75 means seventy-five hundredths. You can write it as 75/100, then divide the numerator and denominator by 25 to get 3/4. Both numbers express the same quantity. A fraction can be easier to use when following a recipe, measuring materials, checking schoolwork or comparing exact mathematical values.

To use the calculator, enter your decimal and choose Exact simplified fraction. Click Convert Decimal to see the fraction, a mixed-number form where applicable, and a breakdown of the steps. Negative values work in the same way: -0.625 becomes -5/8. For decimals with endlessly repeating digits, enclose the repeating block in parentheses. Type 0.(3) for one third, not 0.333 unless you really mean exactly three digits after the decimal point.

Decimal to fraction formula

A terminating decimal has a fixed number of digits after the decimal point. Count those digits, remove the decimal point, and put the result over a power of ten. Then reduce the fraction by dividing both parts by their greatest common divisor (GCD).

Fraction = decimal without its point / 10number of decimal places

Consider 0.125. There are three decimal places, so the starting fraction is 125/1000. The GCD of 125 and 1000 is 125. Dividing both values by 125 gives 1/8. This process works even if the decimal contains many digits. Unlike guessing a nearby simple fraction, exact conversion preserves the precise decimal entered.

How to simplify a decimal fraction

A fraction is in simplest form when its numerator and denominator have no common factor greater than one. For 0.45, the initial fraction is 45/100. Both values are divisible by 5, giving 9/20. The denominator should always be positive; a negative result is written with the minus sign in front of the fraction. Whole numbers are also rational numbers, so the decimal 4 converts to 4/1, usually displayed simply as 4.

You can reduce fractions manually by finding the GCD, or by factoring numerator and denominator. The calculator performs that reduction automatically. It also handles a value such as 2.75: first write 275/100, reduce to 11/4, then divide 11 by 4 to express the answer as the mixed number 2 3/4. The improper fraction and mixed number represent exactly the same value.

Converting repeating decimals to fractions

Repeating decimals need a different denominator because they never terminate. In 0.(3), the digit 3 repeats forever: 0.3333… Let x = 0.3333… and multiply by ten. Then 10x = 3.3333…. Subtract x from 10x to remove the repeating tail. This gives 9x = 3, so x = 3/9 = 1/3.

For a repeating block of two digits, such as 0.(27), use 99 as the denominator: 27/99 simplifies to 3/11. If there is a non-repeating portion first, the method adjusts. For example, 0.1(6) means 0.16666…, not 0.166. Its exact fraction is 1/6. Our calculator uses the repeating block you enter to construct the correct fraction without relying on rounded decimal approximations.

Exact fractions and nearest simple fractions

Exact conversion and approximation answer different questions. The decimal 0.333, with three digits written, is exactly 333/1000. That is not the same as the repeating decimal 0.(3), which equals 1/3. In practice, someone measuring or estimating a quantity may prefer 1/3 because it is easier to recognize, even though it is only an approximation of 0.333.

Select Nearest simple fraction to place an upper limit on the denominator. With a maximum denominator of 16, the tool considers fractions whose denominators are at most 16 and picks a nearest value. It tells you when the answer is approximate and shows the size of the absolute difference. Use exact mode for mathematics, finance, or any task where changing the original value would cause an error; use approximation only when a simpler fraction is helpful and the difference is acceptable.

Common decimal-to-fraction examples

DecimalFractionNotes
0.51/2Five tenths reduced
0.753/4Three quarters
0.1251/8One eighth
0.21/5Two tenths reduced
0.6255/8Five eighths
1.255/4Mixed number: 1 1/4
0.(3)1/3Repeating 3
0.1(6)1/6Non-repeating 1, then repeating 6

Common mistakes to avoid

  • Using the wrong denominator: 0.07 is 7/100, not 7/10, because it has two decimal places.
  • Confusing finite and repeating notation: 0.33 is 33/100, while 0.(3) equals 1/3.
  • Forgetting to simplify: 50/100 is correct for 0.5, but 1/2 is the simplest form.
  • Confusing mixed numbers with improper fractions: 7/4 and 1 3/4 have equal values, but different forms.
  • Rounding too early: use exact values during multi-step calculations and round only for presentation if needed.

Frequently asked questions

Can every terminating decimal become a fraction?

Yes. Any decimal with finitely many digits is a rational number. Place its digits over a suitable power of ten and simplify. For instance, 0.004 equals 4/1000, which reduces to 1/250.

What is 0.333 as a fraction?

Exactly 0.333 equals 333/1000. If the 3 repeats forever, write 0.(3); that repeating decimal equals 1/3. A nearest-fraction setting may also approximate 0.333 as 1/3.

How do I convert a negative decimal?

Convert the absolute value as usual, then put a minus sign before the answer. For example, -1.25 becomes -5/4, or -1 1/4 as a mixed number.

Why does the calculator show an improper fraction?

An improper fraction has a numerator whose absolute value is at least as large as its denominator. It is useful for multiplication and other arithmetic. You can also read the same quantity as a mixed number when it is not a whole number.

Why is my nearest fraction different from the exact fraction?

The nearest mode deliberately restricts the denominator. If the exact denominator is larger than the selected limit, another fraction may be closer than any other allowed choice. The tool displays the approximation error so you can judge whether it is suitable.

Can I enter a fraction like 3/8 as the input?

Yes. Select the Fraction → Decimal tab, enter the numerator and denominator, and calculate the decimal result. The tool also accepts a mixed-number whole part.

How to convert a fraction to a decimal

The second tab performs the reverse operation without leaving this page. A fraction shows a numerator above a denominator, and its decimal is found by dividing the numerator by the denominator. Enter 3 in the numerator field and 4 in the denominator field, then select Convert Fraction. The result is 0.75 because 3 ÷ 4 = 0.75. You can use positive or negative fractions, improper fractions such as 11/4, and mixed numbers such as 2 3/4.

Decimal value = Numerator ÷ Denominator

A denominator tells you how many equal parts make one whole. It can never be zero: dividing by zero has no defined numerical answer. An improper fraction, where the numerator is larger than the denominator, can produce a decimal greater than one. For example, 11/4 = 2.75. The tool reduces the fraction and shows the division steps so you can check your work rather than accept an unexplained answer.

Convert mixed numbers into decimals

For a mixed number, enter the whole-number component separately from its fractional part. Suppose you want to convert 2 3/8 to a decimal. Enter whole number 2, numerator 3, and denominator 8. First, rewrite it as (2 × 8 + 3)/8 = 19/8. Then divide 19 by 8 to obtain 2.375. For a negative mixed number, enter the negative sign in the whole-number field; −2 1/8 equals −2.125. Do not enter a negative numerator as well when you are using the mixed-number field.

If you already have a signed improper fraction, leave the whole-number field blank and enter the signed numerator directly. For example, −17/8 converts to −2.125. The fraction does not need to be simplified before you enter it: 6/8 and 3/4 both produce 0.75. Reducing a fraction changes its appearance, not the value it represents.

Terminating versus repeating decimals

Some fractions divide evenly after a finite number of decimal digits. These are called terminating decimals. Examples include 1/2 = 0.5, 3/8 = 0.375, and 7/20 = 0.35. When a fraction has been simplified, its decimal terminates only if the denominator contains no prime factors other than 2 or 5. This gives you a quick way to predict what kind of decimal you will get before doing long division.

Other fractions have digits that repeat forever. The fraction 1/3 gives 0.3333…, which the tool writes as 0.(3). The fraction 1/6 is 0.16666…, written as 0.1(6). And 1/7 is 0.(142857), because the six-digit block 142857 repeats. Parentheses make the repeating part unmistakable. The calculator detects the repeating pattern when it is short enough to display, and separately supplies a rounded decimal for convenient copying.

Decimal precision and rounding

Choosing 4, 8, 12, 16 or 20 decimal places affects only the rounded display, not the exact fraction. For example, 1/6 rounded to four decimal places is 0.1667; rounded to eight places it is 0.16666667. In both cases the exact recurring decimal remains 0.1(6). Rounding is useful for measurements, spreadsheets and reports, but it introduces a small difference from the original exact value. Keep fractions or recurring notation when an exact answer matters.

The rounding method used here rounds to the nearest displayed decimal, with ties rounded away from zero. It avoids converting large whole-number fractions to floating-point numbers before division. Extremely long repeating cycles may be summarized rather than fully printed, so use the rounded result or the original fraction when the repeating notation is too long.

Common fraction-to-decimal conversions

FractionDecimalType
1/20.5Terminating
3/40.75Terminating
3/80.375Terminating
1/30.(3)Repeating
1/60.1(6)Repeating
7/80.875Terminating
11/42.75Terminating

When should you use fractions or decimals?

Fractions can preserve exact ratios in mathematics and make shared quantities easier to understand. Decimals are often more practical when comparing measurements, entering numbers into spreadsheets, or reading digital displays. Neither format is automatically more accurate; the difference is whether the number is represented exactly or rounded. If you convert 1/3 to 0.33 and then back to a fraction, the exact value of 0.33 is 33/100, not 1/3. Use recurring notation or keep the original fraction whenever you need to preserve its value.

Fraction to decimal frequently asked questions

How do I convert 3/4 to a decimal?

Divide 3 by 4. The result is 0.75. You can also think of 3/4 as 75/100, which means seventy-five hundredths.

What is the decimal for 1/8?

One divided by eight is 0.125. It terminates after three decimal places.

Can a fraction have a repeating decimal?

Yes. Fractions such as 1/3, 1/6 and 1/7 have repeating decimal digits. The tool marks a repeating group with parentheses whenever the pattern is within its display limit.

What happens if I put zero in the denominator?

The calculator shows an error because division by zero is undefined. Use a nonzero denominator.