Decimal to Fraction Calculator
Write the decimal over 1 followed by as many zeros as it has decimal places, then simplify: 0.375 = 375/1000 = 3/8. To go the other way, divide the numerator by the denominator: 3 ÷ 8 = 0.375.
Last updated by Ultra Calculator
Decimal to Fraction
How to calculate it
Decimal to fraction: d = N ÷ 10^k, then divide N and 10^k by their greatest common divisor Fraction to decimal: d = a ÷ b Nearest 1/D: round(d × D) ÷ D
- d
- the decimal
- N
- the decimal written without its decimal point (0.375 becomes 375)
- k
- the number of digits after the decimal point
- a
- the numerator (top number) of the fraction
- b
- the denominator (bottom number) of the fraction
- D
- the denominator you round to: 2, 4, 8, 16, 32 or 64 for inch fractions
The 'denominator up to' options find the closest fraction whose denominator is no bigger than the limit, using continued fractions, so 0.3333 with a limit of 100 gives 1/3.
Worked example
1.3 inches as a fraction
1.3 is exactly 13/10, or 1 3/10. On a tape measure marked in sixteenths, the nearest mark is 1 5/16 (1.3125), which is 0.0125 inches longer.
| Convert | Decimal to fraction |
|---|---|
| Decimal | 1.3 |
| Also round to | Nearest 1/16 |
| Fraction in lowest terms | 13/10 |
|---|---|
| As a mixed number | 1 3/10 |
| Rounded fraction | 1 5/16 |
| Rounded fraction as a decimal | 1.3125 |
| Rounded fraction minus your decimal | +0.0125 |
Inch fractions to decimals and millimetres
| Fraction of an inch | Decimal (inches) | Millimetres |
|---|---|---|
| 1/16 | 0.0625 | 1.5875 |
| 1/8 | 0.125 | 3.175 |
| 3/16 | 0.1875 | 4.7625 |
| 1/4 | 0.25 | 6.35 |
| 5/16 | 0.3125 | 7.9375 |
| 3/8 | 0.375 | 9.525 |
| 7/16 | 0.4375 | 11.1125 |
| 1/2 | 0.5 | 12.7 |
| 9/16 | 0.5625 | 14.2875 |
| 5/8 | 0.625 | 15.875 |
| 11/16 | 0.6875 | 17.4625 |
| 3/4 | 0.75 | 19.05 |
| 13/16 | 0.8125 | 20.6375 |
| 7/8 | 0.875 | 22.225 |
| 15/16 | 0.9375 | 23.8125 |
| 1 | 1 | 25.4 |
How to use this calculator
- Under Convert, choose Decimal to fraction or Fraction to decimal.
- For a decimal, type it in Decimal, for example 0.375 or 2.6875.
- Pick Also round to: a ruler fraction such as Nearest 1/16, or the closest fraction with a denominator up to 10, 100 or 1,000.
- For a fraction, enter the Numerator and Denominator, plus the Whole number if it is a mixed number such as 2 3/8.
- Read the results: the exact fraction or decimal first, then the rounded version and how far it is from your number.
Frequently asked questions
How do you convert a decimal to a fraction?
Count the digits after the decimal point, write the decimal without its point over 1 followed by that many zeros, then simplify. 0.625 has three decimal places, so it is 625/1000, and dividing both numbers by 125 gives 5/8.
How do I convert a fraction to a decimal?
Divide the top number by the bottom number: 3/8 is 3 ÷ 8 = 0.375. For a mixed number such as 2 3/8, convert the fraction and add the whole number to get 2.375.
How do I convert a decimal to the nearest 1/16 of an inch?
Multiply the decimal part by 16, round to the nearest whole number and put it over 16, then simplify. For 1.3 inches, 0.3 × 16 = 4.8, which rounds to 5, so the nearest mark is 1 5/16 inches. If the rounding gives 16/16, add 1 to the whole number instead.
What is 0.3333 as a fraction?
Exactly, it is 3333/10000. It is very close to 1/3, which is 0.3333… with the 3 recurring. The calculator treats what you type as exact, so choose Closest fraction with a denominator up to 100 to get 1/3.
Why do some fractions give recurring decimals?
A fraction in lowest terms gives a decimal that stops only when its denominator has no prime factors other than 2 and 5. 3/8 stops because 8 = 2 × 2 × 2, but 5/12 recurs because 12 has a factor of 3: 5/12 = 0.41666…, written 0.41(6).
Can every decimal be written as a fraction?
Every decimal that stops, and every recurring decimal, can. Irrational numbers such as π and √2 never settle into a repeating pattern, so they have no exact fraction; the closest-fraction options give good approximations, such as 22/7 for π with a limit of 10 and 355/113 with a limit of 1,000.
Learn more
Simplifying a fraction
Dividing the top and bottom by their greatest common divisor gives the same value in lowest terms. 375/1000 and 3/8 are equal, because 125 is the largest number that divides both 375 and 1000.
Mixed numbers and improper fractions
13/10 and 1 3/10 are the same number. An improper fraction has a numerator at least as big as its denominator; a mixed number splits off the whole part, which is how measurements are usually written.
Inch fractions
Imperial rulers and tape measures are marked in halves, quarters, eighths and sixteenths of an inch, and finer rules go down to 1/32 or 1/64. Rounding to one of these gives a length you can mark, and the calculator shows how much the rounding changed it.
Recurring decimals
Brackets mark the digits that repeat forever, so 0.41(6) means 0.41666… and 0.(142857) is 1/7. Some textbooks put a dot over the repeating digits instead.
- Turning a decimal measurement into a mark on an imperial tape measure
- Converting fractional drill bit or spanner sizes to decimals and millimetres
- Checking homework that asks for an answer in lowest terms
- Changing a recipe quantity such as 0.75 cup into 3/4 cup
- Turning a fraction into a decimal before typing it into a spreadsheet
Stopping before the fraction is simplified
625/1000 is correct but not finished. Divide the top and bottom by their greatest common divisor, here 125, to get 5/8.
Rounding down to the mark below
1.3 inches is closer to 1 5/16 than to 1 1/4. Round to the nearest mark, then check the difference shown.
Typing a recurring decimal as if it were exact
0.33 is 33/100, not 1/3. Use a closest-fraction option if you mean a third.
Putting the minus sign on the fraction part
−1 3/8 means −(1 + 3/8), which is −1.375. Enter the minus sign on the whole number only.
Methodology and sources
The calculator converts with whole-number arithmetic, so the simplified fraction is exact for the decimal as your browser stores it, which keeps about 15 significant digits. Rounding to a ruler fraction (1/2 to 1/64) picks the nearest mark, and a value exactly halfway between two marks rounds away from zero. The 'denominator up to' options use continued fractions to find the closest fraction within the limit. For fractions, the decimal is shown to 10 decimal places; the exact form puts the repeating digits in brackets when the repeating block is 24 digits or shorter. The millimetre column in the table uses the exact definition 1 inch = 25.4 mm.