Decimal to Fraction Calculator
Use this Decimal to Fraction Calculator to convert terminating decimals, negative decimals, percentages, mixed numbers, and repeating decimals into simplified fractions. The tool shows the exact fraction, mixed number form, percentage form, GCD simplification, and step-by-step math.
Convert Decimal to Fraction
Enter a decimal such as 0.75, 2.125, -0.4, 12.5%, or a repeating decimal such as 0.333 with the repeating option enabled.
What Is a Decimal to Fraction Calculator?
A Decimal to Fraction Calculator is a math tool that converts a decimal number into a fraction in simplest form. It helps users move between decimal notation, fraction notation, improper fractions, mixed numbers, and percentages. This is useful for arithmetic, algebra, geometry, measurement, money, cooking, construction, science, probability, statistics, test prep, and classroom learning.
Decimals and fractions are two ways to describe the same value. The decimal \(0.75\) and the fraction \(\frac{3}{4}\) represent the same quantity. The decimal \(0.5\) and the fraction \(\frac{1}{2}\) represent the same quantity. The calculator makes this conversion quickly and also shows the reasoning behind the answer.
Many students can use a decimal but struggle to write it as a fraction. The standard method is to place the decimal over a power of ten and simplify. For example, \(0.75\) has two decimal places, so it can be written as \(\frac{75}{100}\). Then the numerator and denominator are divided by their greatest common divisor, 25, to get \(\frac{3}{4}\).
This calculator handles ordinary terminating decimals, negative decimals, percent values, and repeating decimals. It also shows a mixed number when the value is greater than 1. For example, \(2.125\) becomes \(\frac{17}{8}\), which can also be written as \(2\frac{1}{8}\).
The tool is designed to be more than a quick converter. It explains how the fraction is built, how simplification works, why powers of ten matter, and how repeating decimals require a different algebraic method. The result can be used for homework checking, lesson planning, worksheets, standardized test preparation, or general math practice.
How to Use the Decimal to Fraction Calculator
Enter the decimal value in the input box. You can enter a number such as 0.75, 1.25, 2.5, -0.125, or 12.5%. If the number includes a percent sign, choose the percent mode or let the calculator interpret the percent symbol. The calculator will convert the value into a fraction and simplify it.
For a terminating decimal, use the default mode. A terminating decimal is a decimal that stops after a finite number of digits, such as \(0.4\), \(0.25\), \(1.875\), or \(-3.125\). The calculator counts the digits after the decimal point, places the number over \(10^n\), and then reduces the fraction.
For a repeating decimal, choose the repeating decimal mode and enter the repeating block. For example, to convert \(0.\overline{3}\), enter 0.3 as the decimal value and enter 3 as the repeating digits. To convert \(0.1\overline{6}\), enter 0.16 and enter 6 as the repeating digits. To convert \(2.\overline{45}\), enter 2.45 and enter 45 as the repeating digits. The calculator uses the repeating block to build the exact fraction.
The mixed number option controls whether the calculator displays a mixed number when the absolute value is greater than 1. An improper fraction such as \(\frac{17}{8}\) is mathematically correct, but many elementary and middle school problems also expect the mixed form \(2\frac{1}{8}\). This calculator shows both when useful.
Decimal to Fraction Calculator Formulas
For a terminating decimal with \(n\) digits after the decimal point, multiply by \(10^n\) to remove the decimal point:
For example, \(0.75\) has two decimal places, so \(n=2\):
Then simplify by dividing the numerator and denominator by their greatest common divisor:
For a repeating decimal, use algebra. If \(x=0.\overline{3}\), then multiply by 10 because one digit repeats:
Subtract the original equation:
For percentages, divide by 100 first:
Terminating Decimals to Fractions
A terminating decimal is a decimal that has a finite number of digits after the decimal point. Examples include \(0.2\), \(0.75\), \(1.125\), and \(4.0625\). These decimals can always be written as a fraction with a denominator that is a power of ten before simplification.
The number of decimal places determines the first denominator. One decimal place uses 10. Two decimal places use 100. Three decimal places use 1000. Four decimal places use 10000. After the first fraction is created, it should be reduced to lowest terms.
For example, \(0.625\) has three decimal places, so it starts as \(\frac{625}{1000}\). The greatest common divisor of 625 and 1000 is 125. Dividing both parts by 125 gives \(\frac{5}{8}\). Therefore, \(0.625=\frac{5}{8}\).
This method works because place value is based on powers of ten. The digit 6 in \(0.625\) represents tenths, the digit 2 represents hundredths, and the digit 5 represents thousandths. Writing the full decimal as \(625\) thousandths gives the fraction \(\frac{625}{1000}\).
Repeating Decimals to Fractions
A repeating decimal has a digit or group of digits that continues forever. Examples include \(0.333\ldots\), \(0.666\ldots\), \(0.121212\ldots\), and \(2.454545\ldots\). Repeating decimals are rational numbers, which means they can be written as fractions.
The conversion uses place-value algebra. The idea is to create two versions of the same repeating decimal so the repeated part lines up. When the equations are subtracted, the infinite repeating tail disappears. This leaves a finite equation that can be solved as a fraction.
For example, let \(x=0.\overline{6}\). Multiply by 10 because one digit repeats. Then \(10x=6.\overline{6}\). Subtract the original equation: \(10x-x=6.\overline{6}-0.\overline{6}\). This gives \(9x=6\), so \(x=\frac{6}{9}=\frac{2}{3}\).
If two digits repeat, multiply by 100. If three digits repeat, multiply by 1000. The number of repeating digits controls the power of ten used. This calculator allows users to enter the repeating block, which improves accuracy for values such as \(0.1\overline{6}\), where only the 6 repeats after a non-repeating digit.
Improper Fractions and Mixed Numbers
When a decimal is greater than 1 or less than -1, the result may be an improper fraction. An improper fraction has a numerator whose absolute value is greater than or equal to the denominator. For example, \(2.25\) can be written as \(\frac{225}{100}\), which simplifies to \(\frac{9}{4}\). That is an improper fraction.
A mixed number separates the whole-number part from the fractional remainder. The fraction \(\frac{9}{4}\) becomes \(2\frac{1}{4}\). Both forms are correct. Algebra often prefers improper fractions because they are easier to multiply, divide, and combine. Elementary arithmetic and measurement contexts often prefer mixed numbers because they are easier to read.
This calculator shows both forms when useful. For negative decimals, the negative sign applies to the full value. For example, \(-2.25=-\frac{9}{4}=-2\frac{1}{4}\). The calculator keeps the sign consistent and avoids writing confusing forms such as \(2\frac{-1}{4}\).
Percentages to Fractions
A percentage means “per hundred.” Therefore, converting a percentage to a fraction starts by placing the number over 100. For example, \(25\%=\frac{25}{100}\), which simplifies to \(\frac{1}{4}\). The calculator can handle percent signs and decimal percentages such as \(12.5\%\).
For a decimal percent, first write it over 100, then remove the decimal from the numerator if needed. For example, \(12.5\%=\frac{12.5}{100}\). Multiplying numerator and denominator by 10 gives \(\frac{125}{1000}\). Simplifying gives \(\frac{1}{8}\). This is why \(12.5\%\) equals \(0.125\) and \(\frac{1}{8}\).
Percent-to-fraction conversion is useful in probability, grades, discounts, finance, tax rates, statistics, interest rates, and data interpretation. It helps users understand that percentages, decimals, and fractions are connected representations of the same value.
Decimal to Fraction Examples
Example 1: Convert \(0.75\) to a fraction.
Example 2: Convert \(0.125\) to a fraction.
Example 3: Convert \(2.5\) to a fraction and mixed number.
Example 4: Convert \(0.\overline{3}\) to a fraction.
Example 5: Convert \(12.5\%\) to a fraction.
Common Decimal to Fraction Mistakes
The first common mistake is using the wrong denominator. A decimal with two places should first be placed over 100, not 10. For example, \(0.75\) is \(\frac{75}{100}\), not \(\frac{75}{10}\). The number of decimal places controls the power of ten.
The second mistake is forgetting to simplify. The fraction \(\frac{75}{100}\) is correct, but it is not in simplest form. Most math assignments expect \(\frac{3}{4}\). Simplifying requires dividing the numerator and denominator by the greatest common divisor.
The third mistake is treating a rounded decimal as exact. For example, \(0.333\) as a terminating decimal equals \(\frac{333}{1000}\). But \(0.333\ldots\) as a repeating decimal equals \(\frac{1}{3}\). These are not the same. Use repeating mode when the decimal continues forever.
The fourth mistake is mishandling negative signs. The sign belongs to the entire fraction, so \(-0.75=-\frac{3}{4}\). The calculator normalizes signs so the denominator stays positive and the negative sign is easy to read.
Decimal to Fraction Calculator FAQs
What does a decimal to fraction calculator do?
It converts a decimal number into a simplified fraction and can also show mixed number, improper fraction, percentage, and step-by-step work.
How do you convert a decimal to a fraction?
Write the decimal over a power of 10 based on the number of decimal places, then simplify using the greatest common divisor.
What is 0.75 as a fraction?
\(0.75=\frac{75}{100}=\frac{3}{4}\).
What is 0.125 as a fraction?
\(0.125=\frac{125}{1000}=\frac{1}{8}\).
Can repeating decimals be converted to fractions?
Yes. Repeating decimals are rational numbers and can be converted using algebra. For example, \(0.\overline{3}=\frac{1}{3}\).
Can percentages be converted to fractions?
Yes. A percentage is divided by 100 first, then simplified. For example, \(25\%=\frac{25}{100}=\frac{1}{4}\).
Important Note
This Decimal to Fraction Calculator is for educational and general math use. It provides exact results for terminating decimals entered directly and supports repeating decimal conversion when the repeating block is specified correctly. For homework, exams, or official math work, follow the required rounding and notation rules given by your teacher or curriculum.
