🧮 Decimal to Fraction Calculator

Loading... Thanks for your rating!
Updated: 2026-07-11

Enter a Decimal

Supports terminating and repeating decimals. Use parentheses for repeating parts, e.g., 0.3(3) = 0.333...

Try these examples:

Enter a decimal and click "Convert"

📖 About Decimal to Fraction Conversion

Converting decimals to fractions is a fundamental math skill. This tool handles both types:

All results are reduced to simplest form using the Euclidean algorithm (GCD).

Advertisement

How to Use the Decimal to Fraction Calculator

Using the Decimal to Fraction Calculator is straightforward:

  1. Enter Your Values
    Input the required numbers and parameters into the calculator fields. Each field is clearly labeled — simply type your values or use the spinner controls to adjust them.
  2. Configure Options
    Select any additional options such as computation mode, currency, time period, or precision level. The calculator updates automatically as you change values.
  3. View the Results
    The calculated result is displayed instantly with clear formatting. You can Copy the result to your clipboard or adjust input values to see how different scenarios affect the outcome.

❓ FAQ

How do I input a repeating decimal?

Use parentheses around the repeating digit(s). Examples: 0.3(3) = 0.333..., 0.1(428571) = 0.142857142857..., 1.2(7) = 1.2777.... Both pure and mixed repeating decimals work.

Input format rules

Input must be a valid number. Can start with + or -. Must have at most one decimal point. Parentheses must be properly matched for repeating parts. Examples: 0.25 (terminating), 0.(142857) (pure repeating), 0.16(6) (mixed repeating).

How does simplification work?

The tool uses the Euclidean algorithm (GCD) to find the greatest common divisor of the numerator and denominator, then divides both by the GCD. For example, 42/56 has GCD 14, simplifying to 3/4.

What are mixed numbers?

When a fraction's value exceeds 1, it can be expressed as a mixed number (whole number + proper fraction). For example, 7/4 = 1¾. The tool displays both forms for convenience.

Is the result exact?

Yes, completely exact. The tool uses JavaScript BigInt for precise integer arithmetic — no floating-point rounding errors. Repeating decimals are solved via algebraic equations. Every result is mathematically exact.