Skip to content
FiftyCalc Free calculators for all 50 states

Decimal to Fraction Calculator

Test cases replayed : 5 of 5 match · Methodology · No outside source listed

Type a decimal number to get the equivalent fraction in simplest form and as a mixed number.

Result

Sample figures

Numerator (top of the fraction)—

Denominator (bottom of the fraction) —

  • Mixed number: whole part—
  • Mixed number: remaining numerator (over the same denominator)—
  • As a percent—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Decimal to Fraction Calculator

Decimal number (up to 9 decimal places): enter a number from -1,000,000 to 1,000,000. Prefilled example: 2.625.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Decimal number (up to 9 decimal places): enter a number from -1,000,000 to 1,000,000.
  2. Read the result: Numerator (top of the fraction); the panel also shows Denominator (bottom of the fraction), Mixed number: whole part, Mixed number: remaining numerator (over the same denominator) and As a percent.

How this calculator works

A decimal with k digits after the point equals that number of k-digit units over 10^k: 2.625 = 2625/1000. The fraction is then divided by the greatest common divisor of top and bottom: 2625/1000 ÷ 125 = 21/8.

Because 10^k = 2^k × 5^k, the only common factors to remove are 2s and 5s; the calculator counts how many of each divide the numerator.

A repeating decimal such as 0.333… is read only to 9 places here (333333333/1000000000); its exact value 1/3 needs the repeating-decimal method x = 0.333…, 10x − x = 3.

Worked example

Decimal number (up to 9 decimal places)2.625
Denominator (bottom of the fraction)8
Numerator (top of the fraction)21
Mixed number: whole part2
Mixed number: remaining numerator (over the same denominator)5
As a percent262.5%

Frequently asked questions

How do I convert 0.75 to a fraction?

0.75 = 75/100. Divide top and bottom by 25 to get 3/4.

What is 2.625 as a mixed number?

2.625 = 21/8 = 2 5/8.

Why is my repeating decimal not exact?

A decimal you type has a limited number of digits, so it is converted exactly as typed. 0.333 is 333/1000, not 1/3.

Questions answered

Related calculators