Skip to content
LunaCalc

Math

Decimal to Fraction Calculator

Convert terminating or repeating decimals into simplest fractions.

About this calculator

This decimal to fraction calculator converts terminating decimals into their simplest exact fraction form.

Formula notes

Write the decimal as a fraction over a power of 10, then divide numerator and denominator by their greatest common divisor.

Worked examples

  1. Example: 0.375 = 375/1000, and dividing both by 125 gives the simplified fraction 3/8.
  2. The terminating decimal 0.375 equals 375/1000, which reduces by 125 to 3/8.

How to use it

  1. Enter the decimal value, such as 0.375.
  2. Read the simplified fraction and any mixed-number form.
  3. Use the fraction for recipes, measurements, or exact math.

Frequently asked questions

Does it handle repeating decimals?

Terminating decimals convert exactly. Repeating patterns like 0.333… are approximated by the entered digits.

Why does 0.5 become 1/2 and not 5/10?

The calculator reduces by the greatest common divisor, so 5/10 simplifies to 1/2.

Limits and interpretation

  • A displayed decimal may already be rounded, so the resulting fraction can represent the rounded value rather than the original quantity.
  • Repeating decimals need the repeating segment identified correctly; a finite digit limit can only approximate very long or irrational values.

References