Home/Calculators/Decimal to fraction calculator
Decimal to fraction calculator: closest fraction and mixed number
You have a decimal measurement from a drawing or a tool, and you need to turn it into a fraction you can actually use on the job site. Decimal to fraction calculator. Nothing was tested for this page; the numbers come from the formula shown below and the inputs you enter.
You enter a decimal, the largest denominator you want, and a fraction style. The calculator returns the closest fraction, a mixed number, an improper fraction, the decimal value of that fraction, and the difference from your original decimal.
The automatic calculation needs JavaScript. With scripting off, the fields above do nothing and the result area stays empty. The formula is written out below, so you can do the same arithmetic on paper.
Decimal to fraction calculator: what to enter
- Type the decimal value you need to convert.
- Set the largest denominator allowed, from one to one thousand.
- Choose tape-measure fractions or any denominator.
- Read the fraction and the related results below the fields.
Decimal to fraction calculator formula, written out
- whole part = decimal rounded down; the rest is the fractional part
- for each allowed denominator d: numerator = fractional part x d, rounded to a whole number
- pick the denominator with the smallest difference; the smallest denominator wins a tie
- exact fraction = the digits you typed over 10, 100, 1,000 and so on, reduced
Decimal to fraction calculator worked example
With the inputs already in the form (decimal 5.4375, largest denominator allowed 16, denominators allowed tape-measure fractions) the result is: closest fraction, mixed number: 5 7/16; same as an improper fraction: 87/16; fraction as a decimal: 5.4375; difference from your decimal: 0.000000; exact fraction of the digits you typed: 5 7/16.
- Whole part = 5; fractional part = 0.437500
- Closest fraction with a power-of-two denominator up to 16: 7/16 (the smallest denominator wins a tie)
- Answer = 5 7/16 = 87/16 = 5.437500 as a decimal
- Difference from your decimal = 0.000000
- Exact value of the digits you typed = 5 7/16 (digits over a power of 10, reduced)
For tape measure readings, use the inches to feet converter with fractions.
What the decimal to fraction calculator assumes
- The decimal can be zero or positive, but negative numbers are not supported.
- The largest denominator must be between one and one thousand.
- Tape-measure style uses power-of-two denominators such as two, four, eight, sixteen, thirty-two, and sixty-four.
- The calculator picks the denominator with the smallest difference, and the smallest denominator wins a tie.
Decimal to fraction calculator questions people ask
What does the calculator output?
It gives a mixed number, an improper fraction, the fraction as a decimal, the difference from your decimal, and the exact fraction of the digits you typed. The exact fraction uses the digits over ten, one hundred, or one thousand, reduced, up to nine decimal places.
How does it choose the fraction?
It picks the denominator with the smallest difference from your decimal. If two denominators give the same difference, the smaller denominator wins.
What is tape-measure style?
Tape-measure style limits denominators to powers of two, such as two, four, eight, sixteen, thirty-two, and sixty-four. Any denominator style allows any denominator up to your chosen maximum.
Can I convert a negative decimal?
No, the calculator does not handle negative numbers. Use a positive decimal or zero.
This calculator belongs to the measuring and geometry calculators. To price the whole job, not just this part, use the job costing calculator and the pricing guide below.
How this site makes money. Affiliate links on this site are marked before you click them, and a commission will never change a price, a test result or a ranking. Details in the affiliate disclosure.