ThisCalculator

Conversions

Decimal to Fraction Calculator: How It Works

Updated · Standard formula, shown below

Fraction 0.7500
Decimal number
0.75
You entered

Decimal to Fraction Calculator: How It Works

This calculator converts a decimal number into its simplest fraction form. You enter any decimal value (for example, 0.75, 1.25, or 3.142857), and it returns the equivalent fraction reduced to lowest terms, along with the numerator and denominator. The conversion is exact for terminating decimals and uses a standard approximation for repeating decimals.

Formula

For a terminating decimal, the fraction is built by placing the decimal digits over the corresponding power of 10, then simplifying. For a decimal with n digits after the decimal point:

  • Numerator = the decimal number with the decimal point removed
  • Denominator = 10n

Then divide both numerator and denominator by their greatest common divisor (GCD). For a repeating decimal with a repeating block of length k, the formula is:

Fraction = (number formed by all digits − number formed by non-repeating digits) / (10n − 10m)

where n is the total number of digits after the decimal point and m is the number of digits before the repeating block starts. This calculator handles terminating decimals exactly and uses a rational approximation for repeating decimals based on the repeating block length.

Worked Example

Using the default value 0.75:

  1. Count digits after the decimal: 2 (7 and 5).
  2. Write 0.75 as 75/100.
  3. Find the GCD of 75 and 100, which is 25.
  4. Divide both by 25: 75 ÷ 25 = 3, 100 ÷ 25 = 4.
  5. Result: 3/4.

The calculator shows 3/4, confirming the simplification.

When to Use This Calculator

You might need decimal-to-fraction conversion in several everyday situations:

  • Cooking and baking – recipes often list measurements in fractions (e.g., 1/2 cup), but you might have a decimal from scaling a recipe.
  • Woodworking and DIY – tape measures show fractions of an inch, but digital tools give decimals.
  • Math homework – converting between forms is a common middle-school and high-school exercise.
  • Engineering and design – specifications may require fractions for tolerances or dimensions.

Any time you need a precise fraction rather than a rounded decimal, this tool saves the manual GCD calculation.

How to Read the Result

The output shows the fraction in its simplest form. For example, 0.5 becomes 1/2, not 2/4 or 5/10. The numerator and denominator are always integers with no common factor other than 1. If the decimal is greater than 1, the fraction is an improper fraction (e.g., 1.25 becomes 5/4). You can convert that to a mixed number (1 1/4) if needed, but the calculator gives the improper form because it is the standard mathematical result.

For repeating decimals like 0.333…, the calculator detects the repeating pattern and returns 1/3. For decimals that do not terminate or repeat (irrational numbers like π), the calculator cannot give an exact fraction; it will show an approximation based on the digits you enter.

Common Mistakes and Misconceptions

  • Forgetting to simplify – 0.50 as 50/100 is correct but not simplified; the calculator always reduces to lowest terms.
  • Mixing up repeating and terminating decimals – 0.125 terminates (1/8), while 0.125125… repeats (125/999). The calculator distinguishes them automatically.
  • Assuming every decimal has a simple fraction – decimals that are irrational, like 0.1010010001…, have no exact fraction. The calculator gives a rational approximation, which is useful for practical purposes but not exact.
  • Unit errors – if you enter a decimal that includes a unit (like “0.75 inâ€�), the calculator treats it as a number. Convert units separately.

How to Choose a Decimal-to-Fraction Calculator

Not all calculators are equal. Look for these features:

  • Exact simplification – the tool should reduce fractions using GCD, not just show a decimal approximation.
  • Repeating decimal support – some calculators only handle terminating decimals; if you need to convert 0.333…, make sure it recognizes repeating patterns.
  • Mixed number output – for values over 1, you may want a mixed number option (e.g., 1 1/2 instead of 3/2).
  • Step-by-step explanation – helpful for learning or verifying your own work.

This calculator offers exact simplification and handles repeating decimals with a clear formula, making it suitable for both quick conversions and educational use.

Limitations of the Formula

The standard formula works perfectly for terminating decimals. For repeating decimals, the method assumes the repeating block is exactly the last digits you enter. If you enter a non-terminating, non-repeating decimal, the calculator treats it as a terminating decimal, which gives an approximate fraction. For example, entering 0.3333333333 (ten 3s) will give 3333333333/10000000000, which simplifies to 1/3 only if the number of 3s is infinite. In practice, you must know the repeating pattern to get the exact fraction.

Also, very large decimal numbers may produce fractions with huge numerators and denominators, which can be unwieldy. The calculator still reduces them, but the output may be long.

Frequently Asked Questions

How do I convert a decimal to a fraction manually?

Write the decimal over 1, then multiply numerator and denominator by 10 for each digit after the decimal point. For 0.375, multiply by 1000 to get 375/1000, then simplify by dividing by 125 to get 3/8.

What is 0.75 as a fraction?

0.75 is 75/100, which simplifies to 3/4. Divide both numbers by 25.

How do I convert a repeating decimal like 0.666… to a fraction?

Let x = 0.666…, multiply by 10 to get 10x = 6.666…, subtract x from 10x to get 9x = 6, so x = 6/9, which simplifies to 2/3.

Can every decimal be converted to a fraction?

Only terminating and repeating decimals can be expressed as exact fractions. Irrational decimals, like 0.1010010001…, cannot be written as a simple fraction; they require an approximation.

What is the difference between a proper and improper fraction?

A proper fraction has a numerator smaller than the denominator (e.g., 3/4). An improper fraction has a numerator larger than or equal to the denominator (e.g., 5/4). Improper fractions can be written as mixed numbers (1 1/4).

Why does my calculator show 1/2 for 0.5 but my teacher wants 0.5 as 50/100?

Both are correct, but 1/2 is the simplified form. Teachers often want the simplest fraction, so 1/2 is the standard answer. 50/100 is an equivalent fraction but not reduced.

Related

Formula used
in d | Decimal number | - | 0.75 | 0
out frac | Fraction | - | d | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.