Decimal to fraction calculator
Use parentheses for repeating digits. Example: 0.(3) or 1.2(34).
Formula used
Terminating decimal: fraction = integer digits without the point ÷ 10d.
Repeating decimal: fraction = (A − B) ÷ (10m+n − 10m).
Here, d is the number of decimal places. For repeating values, m counts non-repeating places and n counts repeating places. A includes digits through one repeat. B includes digits before the repeat.
How to use this calculator
- Type a decimal value in the first field.
- Use parentheses around digits that repeat forever.
- Choose automatic detection or declare the decimal type.
- Select your preferred result display and method visibility.
- Press Convert decimal to view the simplified fraction above.
- Use CSV or PDF options to save the finished result.
Example conversions
| Decimal entry | Type | Initial fraction | Simplified result |
|---|---|---|---|
| 0.75 | Terminating | 75/100 | 3/4 |
| 2.125 | Terminating | 2125/1000 | 17/8 or 2 1/8 |
| -0.04 | Terminating | -4/100 | -1/25 |
| 0.(3) | Repeating | 3/9 | 1/3 |
| 1.2(34) | Repeating | 1222/990 | 611/495 |
Understanding decimal fraction conversion
Reading decimal places
Decimals and fractions describe the same quantity in different ways. A decimal uses place value. A fraction compares a numerator with a denominator. Reading the digits carefully makes conversion much easier. Each digit after the decimal point has a known value. Tenths use ten as a denominator. Hundredths use one hundred. Thousandths use one thousand. This pattern continues for every additional place.
Converting terminating values
A terminating decimal ends after a finite number of digits. Start by removing the decimal point. Put the resulting whole number over a denominator of one followed by zeros. The number of zeros matches the decimal places. For example, 0.75 becomes 75 over 100. Then reduce both values by their greatest common divisor. Dividing by 25 gives 3 over 4. The value remains unchanged.
Handling whole numbers
Whole numbers can also appear before the decimal point. Treat every visible digit as part of the initial numerator. For instance, 12.5 becomes 125 over 10. Reduce that fraction to 25 over 2. You may also write it as 12 and 1 over 2. A mixed number can make the answer easier to read. An improper fraction is still exact and often suits algebra work.
Solving repeating decimals
Repeating decimals need a different method. A repeated digit or group continues forever. Use parentheses to mark the repeating block. For example, 0.(3) means 0.333 and continues. Let x equal the decimal. Multiply x by ten when one digit repeats. Subtract the original equation. The repeating pieces cancel, leaving 9x equals 3. Therefore x equals 3 over 9, or 1 over 3.
Using longer patterns
For longer repeating patterns, account for digits before and inside the repeat. In 1.2(34), one digit appears before the repeating pair. Multiply the number to align the repeated groups. Subtract a second shifted expression. The denominator becomes a difference between powers of ten. This process produces an exact fraction. It avoids rounding and preserves the original repeating value. The calculator follows this same place-value logic.
Reducing and checking
Always simplify the final fraction. Find the greatest common divisor of the numerator and denominator. Divide both values by that shared factor. Check the answer by dividing the numerator by the denominator. The decimal should match the original entry. Use repeating notation when the decimal never ends. Manual conversion builds confidence with place value, equivalence, and algebraic reasoning. It also helps you spot rounded values in measurements, prices, and reports.
Working with negative values
Negative decimals follow these rules. Keep the negative sign with the numerator. For example, negative 0.125 becomes negative 125 over 1000. Reducing gives negative 1 over 8. A denominator stays positive. This keeps fraction signs consistent. It makes comparison and multiplication easier.
Avoiding common confusion
Do not confuse repeating decimals with rounded decimals. A rounded value stops because information was omitted. A repeating value continues in a predictable cycle. Mathematical parentheses indicate exact repeating patterns. Enter known digits. Then inspect steps and verify every place-value decision carefully.
Frequently asked questions
1. How do I convert 0.5 to a fraction?
Write 0.5 as 5/10 because one decimal place uses ten. Divide both terms by 5. The simplified fraction is 1/2.
2. What does a terminating decimal mean?
A terminating decimal has a final digit. Examples include 0.4, 2.75, and -0.125. Its denominator starts as a power of ten.
3. How should I enter a repeating decimal?
Put parentheses around the digits that repeat. Enter 0.(6) for 0.666..., or 1.2(34) when only 34 repeats.
4. Can the calculator handle negative decimals?
Yes. Enter the minus sign before the value, such as -0.625. The simplified result keeps a negative numerator and positive denominator.
5. Why do I simplify a fraction?
Simplifying removes common factors without changing value. It creates the standard form, which is easier to compare, use in equations, and communicate.
6. What is the greatest common divisor?
It is the largest positive number dividing both numerator and denominator exactly. Dividing both terms by it produces a fully reduced fraction.
7. Is 0.(9) equal to 1?
Yes. The repeating decimal 0.(9) equals 9/9 after conversion. Since 9/9 simplifies to 1, both notations represent the same value.
8. When should I use a mixed number?
Use a mixed number when the absolute numerator is larger than the denominator and a whole-number part improves readability. Improper fractions remain equally exact.
9. Does a rounded decimal have an exact fraction?
The written rounded decimal has an exact fraction, but that fraction represents the displayed approximation. It may not equal the original unrounded measurement.
10. Why does the denominator use powers of ten?
Base-ten decimal places represent tenths, hundredths, thousandths, and beyond. Powers of ten precisely express those place values before simplification.
11. Can I save my result?
Yes. After conversion, use the CSV button for spreadsheet data or the PDF button for a printable result summary.