Decimal to Fraction Calculator

Convert any decimal to a simplified fraction. The calculator gives the exact fraction and mixed number, the closest fraction up to a denominator you choose, and the nearest 1/8, 1/16, 1/32 and 1/64, which is useful for rulers, drill bits and woodworking plans.

By Rashid MehmoodLast updated and reviewed Free, no sign-up

Decimal to fraction calculator

–

How to use the decimal to fraction calculator – exact and closest fractions

  1. Enter the decimal. Type a decimal such as 0.625, 1.375 or 0.3125.
  2. Choose the largest denominator. Pick eighths, sixteenths, thirty-seconds, sixty-fourths, or up to 100 or 1,000 for the closest fraction.
  3. Read the exact fraction. The result shows the simplified fraction and mixed number when there is one.
  4. Use the nearest rule marks. The list gives the nearest 1/8, 1/16, 1/32 and 1/64 and the rounding error for each.
Embed this calculator

Paste this iframe on your own site. The embed view already includes a visible “Calculator by CalcTen” credit, which must stay visible. See the developers page for the conditions.

How it works

0.d₁d₂…dₖ = (digits as a whole number) ÷ 10ᵏ, then divide both by their greatest common divisor

Worked examples

0.125. 125/1000 divided by 125 on both sides is 1/8.

1.375. 1375/1000 reduces to 11/8, or 1 3/8 as a mixed number.

0.3125. 3125/10000 reduces to 5/16.

0.3333. The exact fraction is 3333/10000, but the closest simple fraction is 1/3, with an error of 0.00003.

Common decimal and fraction pairs

FractionDecimalFractionDecimal
1/160.06259/160.5625
1/80.1255/80.625
3/160.187511/160.6875
1/40.253/40.75
5/160.312513/160.8125
3/80.3757/80.875
7/160.437515/160.9375
1/20.511.0

Rulers, drill bits and woodworking

Imperial rulers are divided into halves, quarters, eighths, sixteenths and sometimes thirty-seconds, so a measurement of 0.4375 in reads as 7/16. One sixteenth of an inch is 1.5875 mm. When a plan gives a decimal such as 0.30 in, the nearest 1/16 is 5/16, and the tool shows how far off it is. For metric conversions, use the inches to cm converter.

Terminating and repeating decimals

A fraction in lowest terms gives a terminating decimal only when its denominator has no prime factors other than 2 and 5, so 1/8 and 3/20 terminate but 1/3 and 1/7 repeat. To go the other way, use the fraction to decimal calculator, and to add or multiply the results use the fraction calculator.

Frequently asked questions

How do I convert a decimal to a fraction?

Write the decimal digits over a power of 10, one zero per decimal place, then divide top and bottom by their greatest common divisor. 0.125 = 125/1000 = 1/8.

What is 0.75 as a fraction?

0.75 = 75/100 = 3/4. Other common ones: 0.5 = 1/2, 0.25 = 1/4, 0.2 = 1/5 and 0.125 = 1/8.

How do I convert a decimal above 1?

Convert the part after the point and keep the whole number. 1.375 = 1 375/1000 = 1 3/8, or 11/8 as an improper fraction.

How do I convert a repeating decimal such as 0.333…?

Let x = 0.333…, so 10x = 3.333…. Subtract to get 9x = 3, and x = 1/3. Enter more digits, such as 0.3333, and use the closest-fraction result for repeating decimals.

How do I turn a decimal inch into a fraction of an inch?

Multiply the decimal by the denominator you want, such as 16, and round to the nearest whole number. 0.4375 × 16 = 7, so 0.4375 in = 7/16 in.

Why does the calculator show an exact and a closest fraction?

A terminating decimal like 0.667 is exactly 667/1000, but you probably want the simple fraction 2/3. The closest-fraction result gives the simple form with its error.

What is the decimal-to-fraction rounding error?

It is the difference between your decimal and the fraction shown, in the same units. A smaller error needs a larger denominator.

Sources and references

About this calculator

Written and maintained by Rashid Mehmood, founder of CalcTen. The formulas are unit-tested against hand-worked examples, and the content is reviewed whenever product sizes or guidance change. Last updated and reviewed 14 November 2026. See our editorial policy. If you spot a mistake, report it.

Results are calculated from the numbers you enter and shown with the working. Rounding is applied only when displaying results. Grade and GPA scales, and weighting rules, vary by school, so confirm with your institution. Read the disclaimer.

Calculator by CalcTen — free online calculators.