Decimal to Fraction Calculator
Convert any decimal into an exact fraction in its simplest form. Handle terminating and repeating decimals, view the calculation steps, and learn how each conversion works.
Decimal to Fraction Calculator
What Is a Decimal to Fraction Calculator?
A decimal to fraction calculator converts a number written with a decimal point into an equivalent fraction. The result shows the same value using a numerator and denominator instead of decimal notation.
For example, the decimal 0.75 can be written as 75/100. After reducing both numbers by their greatest common factor (GCF), the fraction becomes 3/4.
The conversion process depends on the type of decimal. A terminating decimal has a fixed number of digits after the decimal point, while a repeating decimal contains a digit or group of digits that continues forever. Both can be represented as exact fractions when the decimal is rational.
This calculator helps you convert decimal numbers into fractions, simplify the results, and understand the mathematics behind each step.
How to Use the Decimal to Fraction Calculator
Follow these steps to convert a decimal into a fraction:
- Enter your decimal number: Type the value you want to convert, such as 0.625, 1.75, or 3.125.
- Choose the decimal type: Select a terminating decimal for a number that stops, or a repeating decimal if a digit or group of digits continues indefinitely.
- Enter repeating digits when needed: If your calculator includes a repeating-digits field, specify how many digits repeat at the end of your entered decimal.
- Calculate the result: Click the Calculate button to convert the decimal into a fraction.
- Review the working: Check the original fraction, greatest common factor, division steps, and final simplified answer.
For example, entering 0.625 produces 625/1000. Dividing the numerator and denominator by 125 gives the simplified fraction 5/8.
Important: A finite decimal such as 0.6 and a repeating decimal such as 0.666… are different numbers. If digits repeat forever, make sure you identify the repeating part correctly.
How to Convert a Terminating Decimal Into a Fraction
A terminating decimal is a decimal number that ends after a fixed number of digits. Examples include 0.5, 0.25, 1.375, and 2.625.
The easiest way to convert a terminating decimal into a fraction is to use place value. Count the digits after the decimal point, write the number without its decimal point as the numerator, and use the corresponding power of 10 as the denominator.
| Decimal places | Denominator |
|---|---|
| 1 decimal place | 10 |
| 2 decimal places | 100 |
| 3 decimal places | 1,000 |
| 4 decimal places | 10,000 |
| 5 decimal places | 100,000 |
Step-by-Step Method
- Count the digits after the decimal point.
- Remove the decimal point and use the remaining digits as the numerator.
- Write 1 followed by the same number of zeros as the denominator.
- Find the greatest common factor of the numerator and denominator.
- Divide both numbers by the GCF to get the fraction in lowest terms.
Example 1: Convert 0.75 Into a Fraction
The decimal 0.75 has two digits after the decimal point, so its initial denominator is 100.
- Write the decimal as a fraction: 75/100.
- Find the GCF of 75 and 100: GCF = 25.
- Divide both numbers by 25: 75 ÷ 25 = 3 and 100 ÷ 25 = 4.
- Final answer: 0.75 = 3/4.
Example 2: Convert 0.375 Into a Fraction
There are three digits after the decimal point, so the denominator is 1,000.
- Initial fraction: 375/1000.
- GCF of 375 and 1000: 125.
- Divide the numerator and denominator by 125.
- Final answer: 0.375 = 3/8.
Example 3: Convert 2.625 Into a Fraction
A decimal greater than 1 can also be converted directly into an improper fraction.
- There are three decimal places, so write 2.625 as 2625/1000.
- The GCF of 2625 and 1000 is 125.
- Divide both numbers by 125: 2625 ÷ 125 = 21 and 1000 ÷ 125 = 8.
- Final answer: 2.625 = 21/8 = 2 5/8.
The fraction 21/8 is the improper fraction form, while 2 5/8 is its mixed number form. Both represent exactly the same value.
Example 4: Convert 0.0075 Into a Fraction
Leading zeros after the decimal point are important because they determine the denominator.
- There are four decimal places, so write 75/10,000.
- The GCF of 75 and 10,000 is 25.
- Divide both numbers by 25.
- Final answer: 0.0075 = 3/400.
Do not remove the zeros before counting the decimal places. Doing so would create an incorrect denominator.
How to Convert a Repeating Decimal Into a Fraction
A repeating decimal, also called a recurring decimal, is a decimal in which one digit or a group of digits repeats forever.
Examples include:
- 0.333… — the digit 3 repeats.
- 0.727272… — the group 72 repeats.
- 0.1666… — the digit 6 repeats after the non-repeating digit 1.
- 1.2343434… — the group 34 repeats after the non-repeating digits 1.2.
Unlike a terminating decimal, a repeating decimal cannot be converted by simply counting a fixed number of decimal places. Instead, use an algebra method: represent the decimal with a variable, multiply by an appropriate power of 10, and subtract the equations to remove the repeating part.
Method for a Pure Repeating Decimal
A pure repeating decimal has its repeating pattern immediately after the decimal point.
Example 5: Convert 0.333… Into a Fraction
Let:
x = 0.333…
Multiply both sides by 10:
10x = 3.333…
Subtract the original equation:
10x − x = 3.333… − 0.333…
9x = 3
Divide both sides by 9:
x = 3/9 = 1/3
Final answer: 0.333… = 1/3
The repeating decimal is exactly equal to one-third. It is not an approximation.
Example 6: Convert 0.272727… Into a Fraction
Here, two digits (27) repeat continuously. Therefore, multiply by 100 to move one complete repeating block to the left of the decimal point.
Let:
x = 0.272727…
Multiply by 100:
100x = 27.272727…
Subtract the original equation:
100x − x = 27.272727… − 0.272727…
99x = 27
Divide by 99:
x = 27/99 = 3/11
Final answer: 0.272727… = 3/11
When two digits repeat, the initial denominator is 99. The fraction may then need to be reduced.
How to Convert a Mixed Repeating Decimal Into a Fraction
A mixed repeating decimal contains two parts: a non-repeating section and a repeating section. For example, in 0.1666…, the digit 1 does not repeat, but the digit 6 continues forever.
This type of decimal requires two multiplication steps so that the repeating digits line up before subtraction.
Example 7: Convert 0.1666… Into a Fraction
Let:
x = 0.1666…
Multiply by 100 to move the repeating 6 one place to the left of the decimal point:
100x = 16.666…
Now multiply the original equation by 10:
10x = 1.666…
Subtract the second equation from the first:
100x − 10x = 16.666… − 1.666…
90x = 15
Divide both sides by 90:
x = 15/90 = 1/6
Final answer: 0.1666… = 1/6
Example 8: Convert 1.2343434… Into a Fraction
In this example, the digit 2 is non-repeating, while the group 34 repeats.
Let:
x = 1.2343434…
Multiply by 1,000:
1000x = 1234.343434…
Multiply the original equation by 10:
10x = 12.343434…
Subtract:
1000x − 10x = 1234.343434… − 12.343434…
990x = 1222
Divide by 990:
x = 1222/990 = 611/495
Final answer: 1.2343434… = 611/495
The important point is that both equations must have identical repeating decimal tails before subtraction. This allows the infinite repeating parts to cancel exactly.
Formula for Converting Repeating Decimals Into Fractions
The algebra method can also be expressed as a formula.
For a repeating decimal with a non-repeating prefix, use:
Fraction = (A − B) / (10^(n+r) − 10^n)
Where:
- A is the whole-number string formed by removing the decimal point from the number through one complete repeating block.
- B is the whole-number string formed by removing the decimal point from the number before the repeating block begins.
- n is the number of non-repeating digits after the decimal point.
- r is the number of digits in the repeating block.
For example, consider 0.1(6), which means 0.1666…
- A = 16
- B = 1
- n = 1
- r = 1
Substitute these values:
(16 − 1) / (10^2 − 10^1) = 15/90 = 1/6
This formula works for pure repeating decimals too. In that case, there are no non-repeating decimal digits, so n = 0.
How to Convert a Negative Decimal Into a Fraction
A negative decimal follows the same conversion rules as a positive decimal. First convert its absolute value into a fraction, simplify the fraction, and then place the negative sign in front of the result.
Example 9: Convert -0.625 Into a Fraction
- Remove the negative sign temporarily: 0.625.
- Write the decimal as a fraction: 625/1000.
- Find the GCF: 125.
- Divide both numbers by 125: 625 ÷ 125 = 5 and 1000 ÷ 125 = 8.
- Apply the negative sign.
Final answer: -0.625 = -5/8
The negative sign applies to the entire fraction. You can write it as -5/8 or (-5)/8.
Example 10: Convert -2.375 Into a Fraction
- Write the decimal without its sign: 2.375 = 2375/1000.
- Divide the numerator and denominator by their GCF, 125.
- The simplified fraction is 19/8.
- Apply the negative sign: -19/8.
Final answer: -2.375 = -19/8 = -2 3/8
How to Convert a Decimal Into a Mixed Number
When a decimal is greater than one, its fraction may be an improper fraction. An improper fraction has a numerator that is greater than or equal to its denominator.
You can express the same value as a mixed number, which combines a whole number with a proper fraction.
Example 11: Convert 3.75 Into a Mixed Number
First, convert the decimal into a fraction:
3.75 = 375/100
Simplify by dividing the numerator and denominator by 25:
375/100 = 15/4
Now divide 15 by 4:
- Quotient = 3
- Remainder = 3
- Denominator remains 4
Final answer: 3.75 = 15/4 = 3 3/4
A mixed number is often easier to read when describing measurements, quantities, or portions larger than one whole.
How to Convert a Fraction Back Into a Decimal
You can check a decimal-to-fraction conversion by dividing the numerator by the denominator. This process is called long division.
For example:
3/8 = 3 ÷ 8 = 0.375
Similarly:
1/3 = 1 ÷ 3 = 0.333…
The first result terminates because the division reaches a remainder of zero. The second repeats because the division continues with a repeating pattern of remainders.
This reverse check is useful when you want to confirm that your fraction represents the original decimal.
Why Do Some Fractions Have Terminating Decimals and Others Repeat?
Whether a fraction produces a terminating or repeating decimal depends on the prime factors of its denominator after the fraction has been simplified.
A terminating decimal has a denominator that contains only the prime factors 2 and 5. These factors can be combined to create a power of 10.
A repeating decimal has at least one other prime factor in its simplified denominator, such as 3, 7, or 11.
| Simplified fraction | Denominator factors | Decimal result |
|---|---|---|
| 1/2 | 2 | 0.5 — terminating |
| 3/4 | 2 × 2 | 0.75 — terminating |
| 5/8 | 2 × 2 × 2 | 0.625 — terminating |
| 1/5 | 5 | 0.2 — terminating |
| 1/3 | 3 | 0.333… — repeating |
| 2/7 | 7 | 0.285714… — repeating |
| 5/6 | 2 × 3 | 0.8333… — repeating |
| 4/11 | 11 | 0.363636… — repeating |
The rule: After reducing a fraction to lowest terms, check its denominator. If its only prime factors are 2 and 5, the decimal terminates. If another prime factor remains, the decimal repeats.
Common Decimal-to-Fraction Conversions
The following table provides useful decimal values and their equivalent fractions in simplest form. It can help with homework, measurements, recipes, and quick mathematical checks.
| Decimal | Fraction | Percentage |
|---|---|---|
| 0.05 | 1/20 | 5% |
| 0.1 | 1/10 | 10% |
| 0.125 | 1/8 | 12.5% |
| 0.2 | 1/5 | 20% |
| 0.25 | 1/4 | 25% |
| 0.3 | 3/10 | 30% |
| 0.333… | 1/3 | 33.333…% |
| 0.375 | 3/8 | 37.5% |
| 0.4 | 2/5 | 40% |
| 0.5 | 1/2 | 50% |
| 0.6 | 3/5 | 60% |
| 0.625 | 5/8 | 62.5% |
| 0.666… | 2/3 | 66.666…% |
| 0.75 | 3/4 | 75% |
| 0.8 | 4/5 | 80% |
| 0.875 | 7/8 | 87.5% |
| 1.25 | 5/4 | 125% |
| 1.5 | 3/2 | 150% |
| 2.5 | 5/2 | 250% |
Repeating percentages are also shown as repeating values. For example, 1/3 is exactly 33.333…%, not exactly 33.33%.
Practical Uses of Decimal-to-Fraction Conversion
Decimals are convenient for calculations, but fractions can make portions, measurements, and exact relationships easier to understand. Converting between the two formats is useful in many everyday situations.
Cooking and Recipe Measurements
Recipes often use fractions such as 1/2 cup, 1/4 teaspoon, or 3/4 tablespoon. If a digital recipe gives a decimal measurement, converting it into a fraction can make measuring easier.
For example, 0.75 cup is equal to 3/4 cup. If a recipe requires 0.375 cup, that amount is 3/8 cup.
Construction and Home Measurements
Fractions are commonly used for dimensions, lengths, and material measurements. A measurement of 0.5 inches is the same as 1/2 inch, while 0.25 inches is 1/4 inch.
Converting decimals into fractions can help when comparing measurements or following plans that use fractional units.
Shopping and Financial Calculations
Decimal values are frequently used in prices, discounts, and financial calculations. For example, 0.25 of a dollar represents 25 cents, while 0.75 represents 75 cents.
Fractions can also help explain proportional amounts. However, when working with money, keep the original currency precision and rounding rules in mind.
Schoolwork and Mathematics
Students use decimal-to-fraction conversion when studying rational numbers, equivalent fractions, percentages, ratios, and division.
For example, converting 0.625 into 5/8 makes it easier to compare the value with other fractions or use it in a fraction-based calculation.
Common Mistakes When Converting Decimals to Fractions
A small mistake in counting digits or identifying the repeating section can change the final answer. Watch for these common problems:
- Using the wrong denominator: A decimal with three places needs an initial denominator of 1,000, not 100. For example, 0.375 starts as 375/1000.
- Ignoring leading zeros: The decimal 0.0075 has four decimal places, so it starts as 75/10,000, not 75/100.
- Forgetting to simplify: A fraction such as 75/100 is equivalent to 3/4, but it is not in its lowest terms.
- Treating a repeating decimal as a terminating decimal: The value 0.333… is not the same as 0.333. The first repeats forever; the second stops after three decimal places.
- Identifying the wrong repeating block: In 0.1666…, only the 6 repeats. The digit 1 is part of the non-repeating section.
- Rounding before converting: Rounding a decimal can change its exact value. Keep the original digits when an exact fraction is required.
- Forgetting the negative sign: A negative decimal must produce a negative fraction.
- Using a denominator of zero: A fraction cannot have zero as its denominator.
Frequently Asked Questions
How do I convert a decimal into a fraction?
Count the digits after the decimal point, remove the decimal point, and use the resulting number as the numerator. Use 10, 100, 1,000, or another power of 10 as the denominator, depending on the number of decimal places. Then simplify the fraction by dividing both numbers by their greatest common factor.
For example, 0.625 = 625/1000 = 5/8.
What is 0.75 as a fraction?
0.75 is equal to 3/4. Write it as 75/100 and divide the numerator and denominator by their greatest common factor, 25.
What is 0.125 as a fraction?
0.125 is equal to 1/8. It has three decimal places, so the initial fraction is 125/1000. Dividing both numbers by 125 gives 1/8.
How do you convert a repeating decimal into a fraction?
Set the repeating decimal equal to a variable, such as x. Multiply the equation by a suitable power of 10 to align the repeating digits, subtract the original or appropriately shifted equation, and solve for x.
For example, 0.333… = 1/3.
What is the difference between a terminating and a repeating decimal?
A terminating decimal has a fixed number of digits after the decimal point, such as 0.25 or 1.375. A repeating decimal has a digit or group of digits that continues forever, such as 0.333… or 0.727272…
Can every terminating decimal be written as a fraction?
Yes. Every terminating decimal can be represented exactly as a fraction with a denominator that is a power of 10. The fraction can then be simplified if the numerator and denominator share a common factor.
Can every repeating decimal be converted into a fraction?
Every repeating decimal can be represented as an exact fraction. The repeating pattern can be converted using an algebraic method in which the matching infinite decimal portions cancel after subtraction.
What is 0.333… as a fraction?
0.333… is exactly equal to 1/3. Let x = 0.333…, multiply by 10 to get 10x = 3.333…, and subtract the original equation. This gives 9x = 3, so x = 1/3.
How do I convert a negative decimal into a fraction?
Convert the positive value into a fraction first, simplify it, and then apply the negative sign. For example, -0.75 = -75/100 = -3/4.
How do I convert a decimal greater than 1 into a fraction?
Treat the entire decimal as one number when forming the initial fraction. For example, 1.5 becomes 15/10, which simplifies to 3/2. You can also express it as the mixed number 1 1/2.
How can I tell whether a fraction produces a terminating decimal?
First reduce the fraction to its lowest terms. If the denominator contains only the prime factors 2 and 5, the decimal terminates. If it contains another prime factor, the decimal repeats.
Is 0.999… equal to 1?
Yes. The repeating decimal 0.999… is exactly equal to 1, not just approximately equal to it. The two expressions represent the same mathematical value.
Should I round a decimal before converting it into a fraction?
No, not when you need an exact fraction. Rounding changes the original value and may produce a different fraction. Use all the available decimal digits unless the question specifically asks for an approximation.
What is the simplest form of a fraction?
A fraction is in simplest form when its numerator and denominator have no common positive factor other than 1. For example, 6/8 is not in simplest form because both numbers are divisible by 2. Its simplest form is 3/4.