Decimal to Fraction

Turn any terminating decimal into an exact simplified fraction.

What does this calculator do?

This calculator converts a decimal like 0.375 into the exact fraction it represents — for measurements, recipes, drill sizes and math homework where fractions are the expected form.

Formula

The decimal is written over a power of ten and then simplified:

0.375 = 375/1000 = 3/8

How to use it

Type the decimal (up to 9 decimal places, both separators accepted). Whole numbers return themselves; negatives keep their sign.

Worked example

0.375 = 375/1000; dividing by the GCD 125 gives 3/8.

Formula version1.0.0
Formula0.375 = 375/1000 = 3/8

Frequently asked questions

Does this work for repeating decimals like 0.333…?

No — a typed decimal is treated as exact, so 0.333 gives 333/1000, not 1/3. Repeating decimals need the fraction they came from.

What about mixed numbers?

Values above 1 come back as improper fractions: 1.25 = 5/4. Written as a mixed number that is 1 1/4.

How precise can the input be?

Up to 9 decimal places — enough for everyday measurements. Longer tails are rejected rather than silently rounded.

Sources

Related calculators

Last updated: 2026-07-29 · v1.0.0 · Report an error