This Decimal to Fraction Calculator, provided by Hesapstan, converts finite and repeating decimals into simplified fractions using structured fields, so the repeating part is entered clearly instead of being guessed from a free-form expression.
What does this decimal to fraction calculator do?
The calculator turns decimal numbers into simplified fractions. It supports both finite decimals, such as 0.125, and repeating decimals, such as 0.(3) or 0.1(6).
- Converts finite decimals to simplified fractions.
- Converts repeating decimals using separate non-repeating and repeating digit fields.
- Supports negative decimals through the sign control.
- Shows a mixed number when it is useful.
- Shows a short step explanation.
The calculator is not designed to parse every possible typed expression. For a repeating decimal, enter the integer part, the non-repeating digits, and the repeating digits in their own fields.
Finite decimals to fractions
A finite decimal has a fixed number of digits after the decimal point. To convert it, write the digits over a power of 10, then simplify the fraction.
For example, 0.125 has three decimal digits, so it becomes 125/1000. After simplification, the result is 1/8.
For 1.75, the first fraction is 175/100. It simplifies to 7/4, which can also be written as the mixed number 1 3/4.
How to enter repeating decimals
A repeating decimal has one or more digits that repeat forever. The calculator asks for those repeating digits separately, so the meaning is clear.
The notation 0.1(6) means 0.1666... . In the calculator, that means integer part 0, non-repeating decimal digits 1, and repeating digits 6.
- 0.(3): integer part 0, no non-repeating digits, repeating digits 3.
- 0.1(6): integer part 0, non-repeating digits 1, repeating digits 6.
- 2.1(6): integer part 2, non-repeating digits 1, repeating digits 6.
- -0.(6): negative sign, integer part 0, repeating digits 6.
How repeating decimals are converted
For repeating decimals, the calculator uses the length of the non-repeating part and the repeating part to build the fraction, then simplifies it.
For example, 0.(3) equals 0.333... and becomes 1/3. The value 0.1(6) equals 0.1666... and becomes 1/6.
A single text input can make repeating notation ambiguous. Separate fields make it clear which digits repeat and are easier to use on mobile.
Negative decimals and mixed numbers
Negative decimals are entered with the sign control. For example, -0.5 is converted to -1/2. The sign applies to the whole number.
When the simplified fraction is greater than 1 in absolute value, the calculator may also show a mixed number. For example, 2.1(6) becomes 13/6, or 2 1/6 as a mixed number.
Examples
- 0.125 = 125/1000 = 1/8.
- 1.75 = 175/100 = 7/4 = 1 3/4.
- -0.5 = -5/10 = -1/2.
- 0.(3) = 1/3.
- 0.1(6) = 1/6.
- 2.1(6) = 13/6 = 2 1/6.
- -0.(6) = -2/3.
How to use the calculator
- Choose finite decimal or repeating decimal mode.
- Select the sign if the number is negative.
- Enter the integer part.
- In finite mode, enter the decimal digits.
- In repeating mode, enter the non-repeating digits and the repeating digits separately.
- Read the simplified fraction, mixed number if shown, and the steps.
Letters, unclear signs, or values that do not fit the field structure are invalid. Repeating digits also have a practical runtime length limit.
Common mistakes
- Trying to type 0.1(6) into one main input field.
- Putting the non-repeating and repeating digits in the same field.
- Using repeating mode for a finite decimal.
- Expecting π, √2, or other irrational numbers to convert exactly.
- Expecting the tool to search for the nearest approximate fraction.
- Putting negative signs into separate number parts instead of using the sign control.
Limitations
This tool converts finite and repeating decimal inputs into fractions. It does not handle irrational numbers, algebraic expressions, symbolic math, or every possible free-form notation.
There is a practical limit for the repeating digit length. The calculator also does not approximate any arbitrary decimal to the nearest fraction; it converts the entered decimal structure.
Frequently Asked Questions
How do I convert 0.125 to a fraction?
0.125 has three decimal digits, so it is written as 125/1000 and then simplified to 1/8.
How do I enter 0.1 repeating 6?
Use repeating decimal mode. Enter integer part 0, non-repeating digits 1, and repeating digits 6. This represents 0.1666... and converts to 1/6.
What is a repeating decimal?
A repeating decimal has one digit or a group of digits that repeats forever after the decimal point, such as 0.(3) = 0.333... .
Why does 0.(3) become 1/3?
Because 1/3 written as a decimal is 0.333... with the digit 3 repeating forever.
Can I convert negative decimals?
Yes. Use the sign control for a negative value. For example, -0.5 becomes -1/2.
Does the calculator support π or √2?
No. The calculator is for finite and repeating decimal inputs, not irrational numbers such as π or √2.
Why is the repeating part entered separately?
Separate fields remove ambiguity. The calculator needs to know exactly which digits repeat.