Decimal to Fraction Converter

Turn any decimal, including repeating ones, into a simplified fraction.

Decimal to Fraction Converter tool

Put repeating digits in brackets, 0.(3) or 0.1(6), or end with three dots: 0.1666...

—
Fraction
—
Mixed number
—
Percent
—
Closest simple fraction

About the Decimal to Fraction Converter

Measurements, recipes and maths problems sometimes need a decimal written as a fraction: 0.375 is 3/8 and the repeating decimal 0.1666… is exactly 1/6. This decimal to fraction converter handles both kinds, letting you mark the repeating part in brackets, and gives the simplified fraction, the mixed number and the percentage with the steps used.

A terminating decimal becomes a fraction over a power of ten: 0.75 is 75/100, and dividing top and bottom by their greatest common divisor, 25, gives 3/4. For a repeating decimal the trick is to multiply by powers of ten so the repeating tails line up and cancel. For x = 0.1(6), 100x = 16.666… and 10x = 1.666…, so 90x = 15 and x = 15/90 = 1/6. The calculator works with exact whole numbers, so long inputs stay precise.

Example: 0.75 = 3/4, 2.125 = 17/8 = 2 1/8, 0.(3) = 1/3, 0.1(6) = 1/6 and 0.(142857) = 1/7. Every repeating decimal is a fraction, and every fraction is either a terminating or a repeating decimal, which is why repeating decimals count as rational numbers. Numbers such as π and √2 never repeat, so they can only be approximated, as with 22/7 or 355/113 for π.

To go the other way, use the fraction to decimal converter. For reducing an existing fraction there is the simplify fractions calculator, and for working with whole-number parts the mixed number calculator.

How to use the Decimal to Fraction Converter

  1. Type the decimalEnter it as written, such as 0.75, 2.125 or -0.4.
  2. Mark any repeatPut the repeating digits in brackets, 0.1(6), or end with three dots, 0.1666…
  3. Read the fractionSee the fraction in lowest terms, the mixed number and the percentage.
  4. Check the stepsFollow the power-of-ten and GCD working, and the closest simple fraction.

Decimal to Fraction Converter features

  • Terminating decimals to fractions
  • Repeating decimals with brackets or three dots
  • Fractions always in lowest terms
  • Mixed numbers for values above 1
  • Closest simple fraction to what you typed
  • Exact arithmetic for long decimals
  • Step-by-step algebra

Common uses

  • Homework on fractions and decimals
  • Converting measurements to inch fractions
  • Recipes that use fractional cups
  • Checking calculator decimals against exact answers
  • Understanding why repeating decimals are rational

Decimals to fractions in practice: tape measures, recipes, π and stock prices

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Decimals are convenient for calculators, but fractions are often more practical: tape measures, recipes, gear ratios and exact arithmetic all work better with fractions. Converting a decimal to a fraction is straightforward for terminating decimals, and approximating difficult decimals with simple fractions is a skill with a long history. This guide covers practical rounding to tape-measure fractions, famous approximations of π, continued fractions and the old fractional stock prices.

Terminating decimals

A terminating decimal converts by writing its digits over the matching power of ten and simplifying. The decimal 0.875 is 875/1000, which simplifies to 7/8 after dividing both numbers by 125. For a mixed number, keep the whole part separate: 2.375 is 2 and 375/1000, which is 2 3/8.

Rounding to tape-measure fractions

Imperial tape measures and rulers are marked in sixteenths of an inch, so a decimal must often be rounded to the nearest sixteenth. Multiply the decimal part by 16 and round: 0.3 inch becomes 4.8 sixteenths, so about 5/16 inch. For eighths, multiply by 8 instead. Choosing the denominator to match your tool turns an awkward decimal into a mark you can actually find.

A worked example: a woodworking plan

A plan converted from metric lists a shelf as 23.62 inches deep, and the carpenter needs a tape-measure reading. The whole part is 23 inches, and 0.62 × 16 = 9.92, so the nearest sixteenth is 10/16, which simplifies to 5/8. The shelf is cut at 23 5/8 inches, which is 23.625 inches, only 0.005 inch from the target.

Simplifying 10/16 to 5/8 matters, because 5/8 is the mark printed on most tapes, while the sixteenth marks are shorter and harder to read.

Recipes and cups

Cup measures come in fractions: 1/4, 1/3, 1/2, 2/3 and 3/4. A converted recipe amount such as 0.66 cup is easiest to measure as 2/3 cup, and 0.4 cup is close to 1/3 cup plus a little. Rounding to the nearest common fraction keeps a recipe practical without changing it noticeably.

Approximating π

The number π cannot be written exactly as a fraction, but some fractions come remarkably close. The familiar 22/7 is 3.142857, accurate to about 0.04%. The fraction 355/113, known to Chinese mathematicians in the 5th century, gives 3.1415929, correct to six decimal places. These approximations were essential before calculators, and 22/7 is still used for quick mental estimates.

Continued fractions

The best simple fractions for a decimal come from continued fractions, a method that repeatedly takes whole parts and reciprocals. For π, the steps produce 3, 22/7, 333/106 and 355/113, each a better approximation than any fraction with a smaller denominator. Engineers use the same method to choose gear tooth counts that approximate a required ratio.

Fractional stock prices

Until 2001, share prices on the New York Stock Exchange were quoted in fractions of a dollar, latterly in sixteenths. A price of 25 3/8 meant 25.375 dollars. The switch to decimals made prices easier to read and narrowed the gap between buying and selling prices. The history shows how fractions and decimals each suit different eras and tools.

Repeating decimals

Decimals that repeat forever, such as 0.333… or 0.1666…, also convert to exact fractions, 1/3 and 1/6, using a short algebraic method. A calculator that shows 0.3333333 has already rounded, so converting its display gives a fraction close to 1/3 but not exactly equal; entering the repeating part explicitly gives the exact result.

Common mistakes

  • Forgetting to simplify, leaving 10/16 instead of 5/8.
  • Converting a rounded calculator display as if it were exact.
  • Rounding to sixteenths when a tool is marked only in eighths.
  • Treating 22/7 as the exact value of π.

Related tools

To convert the other way, use Fraction to Decimal Converter. For fraction arithmetic, try Fraction Calculator, and to reduce fractions, Simplify Fraction Calculator.

Decimals that are really ratios

Many decimals in everyday life are ratios in disguise. A screen aspect ratio of 1.333 is 4/3, and 1.777… is 16/9, the widescreen standard. Cinema formats are often described with decimals such as 2.35:1, which as a fraction is 47/20. Converting such decimals to fractions reveals the simple whole-number relationships behind them, which is often how they were designed in the first place.

When decimals are better

Fractions suit tape measures and recipes, but machinists and engineers in the United States usually work in decimal inches, measured to thousandths with callipers and micrometers. A dimension of 0.312 inch is more practical than 5/16 on a precision drawing, because the drawing also states a tolerance in thousandths. Choose fractions or decimals according to the tools that will be used to make or measure the item.

Checking a conversion

To check a conversion, divide the fraction back into a decimal: 5/8 should give 0.625. If the result differs from the original decimal, either the fraction was simplified incorrectly or the decimal was rounded. For approximations, such as rounding to the nearest sixteenth, the check also shows how large the rounding error is, which tells you whether the approximation is good enough for the job.

Limits

Conversions of terminating and marked repeating decimals are exact; approximations are labelled as such.

Frequently asked questions

How do I convert a decimal to a fraction?

Write the digits after the point over 10, 100 or 1,000, matching the number of decimal places, then simplify. 0.625 = 625/1000, and dividing by the GCD 125 gives 5/8.

How do I convert a repeating decimal to a fraction?

Let x be the decimal, multiply by powers of ten so the repeating parts line up, and subtract. For x = 0.(45), 100x = 45.(45), so 99x = 45 and x = 45/99 = 5/11.

What is 0.333 repeating as a fraction?

Exactly 1/3. If x = 0.333…, then 10x = 3.333…, so 9x = 3 and x = 1/3. By contrast 0.333 with exactly three digits is 333/1000, which is close to 1/3 but not equal.

What is 0.75 as a fraction?

3/4. 0.75 is 75/100, and both numbers divide by 25. As a percentage it is 75%. Similarly 0.25 is 1/4 and 0.5 is 1/2.

Is 0.999 repeating equal to 1?

Yes. If x = 0.999…, then 10x = 9.999…, so 9x = 9 and x = 1. The two notations name the same number, and the converter returns 1 for 0.(9).

How do I write a decimal as a mixed number?

Keep the whole number part and convert only the decimal part. 3.2 is 3 and 2/10, which simplifies to 3 1/5. As an improper fraction that is 16/5.

Can every decimal be written as a fraction?

Every terminating or repeating decimal can. Decimals that never end and never repeat, such as π = 3.14159… or √2, are irrational and can only be approximated by fractions such as 22/7.