Decimal to Fraction Calculator tool

Decimal to Fraction Calculator

Decimals and fractions are two views of the same number.

What is a decimal to fraction calculator?

A decimal to fraction calculator turns a decimal into a ratio p/q in lowest terms. Enter the decimal and an optional max denominator for long repeating values. It uses place-value logic for terminating decimals and continued-fraction search for close rationals.

How to use the Decimal to Fraction Calculator

  1. Enter the decimal you want as a fraction.
  2. Set max denominator if you need a close rational.
  3. Read numerator and denominator in lowest terms.
  4. Check the mixed number form when |value| > 1.
  5. Raise max denominator for stubborn repeating decimals.

About this calculator

Decimals and fractions are two views of the same number. 0.375 is three eighths — 3/8 — once you place the digits over the right power of ten and simplify.

Enter any decimal and the calculator finds a fraction in lowest terms. Adjust the max denominator when you need a close rational for a long repeating decimal.

Works well for measurements, test scores, and recipe scaling. Reverse the direction with the [[fraction-to-decimal]] calculator. For mixed numbers try the [[mixed-numbers]] calculator. For simplification alone see [[simplify-fractions]].

Formula for decimal to fraction conversion

Move decimal n places → numerator over 10ⁿ
Reduce by GCD(numerator, denominator)
  • Terminating decimals use a power-of-ten denominator first
  • GCD division yields lowest terms
  • Max denominator caps best approximations for repeats

Decimal to fraction example: 0.375 and 1.25

Enter 0.375. Three decimal places mean 375/1000. Divide top and bottom by 125 to get 3/8.

Enter 1.25. Split whole and fraction: 1 + 25/100 = 1 + 1/4 = 5/4. The calculator should show 5/4 or 1 1/4 depending on display mode.

For 0.333… with a high max denominator, expect a fraction near 1/3 rather than an exact repeating form.

Convert 0.125: three decimal places give 125/1000 = 1/8 after dividing by 125. Enter 0.125 to match 1/8 in lowest terms on the converter.

Enter 0.625. Three decimal places give 625/1000. Divide by 125 to get 5/8 in lowest terms.

Enter 2.75. Whole part 2 plus 0.75 = 3/4 yields 11/4. Mixed form is 2 3/4.

For 0.875, write 875/1000 = 7/8 after dividing by 125. These terminating decimals come from denominators that are powers of two times five.

Enter 0.125 to get 1/8. That value shows up in cup measures and in probability as one-eighth. The converter reduces 125/1000 automatically before you copy the fraction into homework.

Marks out of 100: 0.375 equals 3/8. Enter 0.375 to read 3/8 in lowest terms, the same ratio as scoring 37.5 on a hundred-point test before you simplify by hand.

GST-style share: 0.05 equals 1/20. Enter 0.05 to see the reduced fraction without counting decimal places twice in your notebook.

Common uses

  • Convert calculator decimals to fractional answers
  • Express measurements like 0.125 inches as 1/8
  • Approximate repeating decimals for homework
  • Prepare fraction inputs for further algebra

Frequently asked questions

What is 0.375 as a fraction?

3/8. Three digits after the decimal over 1000 gives 375/1000, which reduces by 125 to 3/8.

How do you convert 1.25 to a fraction?

1 + 25/100 = 1 + 1/4 = 5/4, or 1¼ as a mixed number.

What about repeating decimals like 0.333…?

Exact repeating decimals need algebraic tricks; this tool finds a close fraction within your max denominator — often 1/3 for 0.333.

Why set a max denominator?

It bounds the search for best approximations. Higher caps give closer matches for awkward decimals at the cost of larger fractions.

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026