🧮 Decimal to Fraction Calculator

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

❓ 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.