Decimal to Fraction Calculator

Convert a decimal to a fraction in lowest terms, with the nearest 16ths, 32nds and 64ths for tape-measure work.

Fraction in lowest terms 3/8
search every denominator up to the limit and keep the numerator that minimises |x − n/d|
As a mixed number 3/8
search every denominator up to the limit and keep the numerator that minimises |x − n/d|
Nearest 1/16 3/8
search every denominator up to the limit and keep the numerator that minimises |x − n/d|
Nearest 1/32 3/8
Nearest 1/64 3/8
Error of the lowest-terms fraction 0
Is it exact? Exact — this fraction equals your decimal precisely.

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Decimal to Fraction Calculator does

The decimal to fraction calculator on this page will convert a decimal to a fraction in lowest terms, with the nearest 16ths, 32nds and 64ths for tape-measure work. Fill in all 2 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for converting a CAD or calculator decimal to a tape-measure fraction. More utilities in this area are collected on FreeToolsWorld.org.

How to use it

  1. Enter your decimal value.
  2. Set the largest denominator you are willing to accept — 64 suits tape-measure work, 1000 or more for a close mathematical approximation.
  3. Read the fraction in lowest terms, and the mixed-number form if the value exceeds 1.
  4. Check the exactness row to see whether the fraction is precise or an approximation.

How it works

Some decimals are exactly fractions and some are not. A terminating decimal always is: 0.375 is exactly 375/1000, which reduces to 3/8. A repeating decimal is too, though the fraction is less obvious — 0.333… is exactly 1/3 while the decimal you can actually type is not. And an irrational number such as π has no fractional form at all, only better and better approximations.

This page finds the best fraction with a denominator up to your chosen limit by testing every denominator and keeping the closest. That is slower than the continued-fraction algorithm but it is transparent and it never misses a better candidate within the range. The exactness row tells you plainly which case you are in, and raising the limit will usually improve a near miss — 355/113 approximates π to seven decimal places, which you can see by entering 3.14159265 with a limit of 150.

The 16ths, 32nds and 64ths rows exist for practical work. Tape measures, drill bits, spanner sets and timber dimensions in the imperial system are all graduated in binary fractions of an inch, so a CAD figure of 0.4375 in is useful only once you know it is exactly 7/16. Those rows always round to the stated grid regardless of your denominator limit, because that is what the physical tool can actually measure.

When to use it

  • Converting a CAD or calculator decimal to a tape-measure fraction.
  • Turning a decimal answer into the fraction a homework question expects.
  • Finding a simple rational approximation to an awkward constant.
  • Reading a machining dimension in 64ths of an inch.

Common mistakes to avoid

  • Expecting an exact fraction for a repeating or irrational decimal. 0.3333 entered as four digits is 3333/10000, not 1/3.
  • Leaving the denominator limit too low and treating the approximation as exact. The exactness row flags this.
  • Using the lowest-terms fraction where a workshop needs a binary fraction. A fifth of an inch is not marked on any tape measure; the 16ths row is what you can actually cut to.

Frequently asked questions

What is 0.375 as a fraction?

Exactly 3/8. As a decimal it is 375/1000, and dividing both parts by 125 gives 3/8 with no approximation involved.

Why does 1/3 not come out exactly?

Because you can only type a finite decimal. 0.333 is 333/1000 and 0.3333333333 is closer but still not 1/3. If you set the denominator limit to 3 or more, the search will find 1/3 as the closest fraction to what you typed.

How do I convert a decimal inch to a tape-measure fraction?

Use the 16ths, 32nds or 64ths row depending on how fine your measurement needs to be. 0.4375 in is exactly 7/16; 0.42 in is closest to 27/64, about 0.4219.

Related tools

See all math & statistics calculators →