Skip to content
Calcipedia
Decimal to Fraction Calculator instructional illustration

Decimal to Fraction Calculator

Convert decimals to fractions, mixed numbers, repeating-decimal fractions, and nearest common denominators with exact simplification, GCD steps.

Last updated

Decimal to fraction calculator Convert a finite decimal or a trailing repeating decimal into a simplified fraction, improper fraction, and mixed number with the exact reduction steps shown.

Decimal input

Convert a decimal to a fraction or mixed number

Enter a decimal such as 0.125 or 2.375. If the last decimal digits repeat forever, enter how many trailing digits repeat so the calculator can convert the recurring decimal exactly.

Quick examples

Use 0 repeating digits for ordinary terminating decimals. For 0.333..., enter decimal 0.3 and repeating digits 1; for 0.142857142857..., enter 0.142857 and repeating digits 6.

Finite decimal

1/8

0.125 converts exactly to 1/8.

Simplified fraction
1/8
Mixed number
1/8
Greatest common divisor
125
Before reduction
125/1000
Decimal value0.13
Numerator1
Denominator8
Fractional part1/8
Denominator rule10^3

Step-by-step work

  1. Count 3 digits after the decimal point, so the denominator starts as 10^3 = 1000.
  2. Remove the decimal point to get the unreduced fraction 125/1000.
  3. The greatest common divisor of 125 and 1000 is 125.
  4. Divide numerator and denominator by 125 to get 1/8.
  5. The simplest fraction is 1/8.

Nearest common denominator checks

Use this as a measurement sanity check when you need halves, quarters, eighths, sixteenths, thirty-seconds, or sixty-fourths. The exact simplified fraction above remains the authoritative result.

DenominatorNearest fractionDecimalFit
200Nearest 2ths approximation; exact difference 0.125.
41/40.25Nearest 4ths approximation; exact difference 0.125.
81/80.13Exact match at this denominator.
162/160.13Exact match at this denominator.
324/320.13Exact match at this denominator.
648/640.13Exact match at this denominator.

Common decimal-to-fraction checkpoints

Use these anchors to spot-check eighths, thirds, and repeating cycles.

  • 0.125 = 1/8 Common inch and recipe checkpoint.
  • 0.375 = 3/8 Useful for eighth-based measurements.
  • 0.(3) = 1/3 Classic one-digit repeating decimal.
  • 0.(142857) = 1/7 Long repeating cycle sanity check.
← All Fractions calculators

Decimal Conversion

Converting decimals to fractions, mixed numbers, and simplest form

A decimal to fraction calculator converts a finite decimal or a clearly marked trailing repeating decimal into an exact fraction, then simplifies the result and shows the mixed-number form when useful. It is a practical maths calculator, decimal converter, and free online calculator for school work, measurement, recipes, construction, and everyday number conversion.

What a decimal to fraction calculator is doing

A decimal is another way of writing a fraction with a denominator based on powers of ten. For example, 0.5 means five tenths, 0.25 means twenty-five hundredths, and 3.125 means three and one hundred twenty-five thousandths. A decimal to fraction calculator turns that place-value structure back into a fraction, then reduces the result to simplest terms.

This matters because decimal notation is often easier to enter, while fractions are often easier to interpret in maths, measurement, construction, and recipe-style contexts. That is why a decimal to fraction calculator online is a useful conversion calculator and everyday maths tool rather than just a classroom exercise.

This calculator also lets you mark a trailing repeating pattern. For example, entering 0.3 with one trailing digit repeating treats the value as 0.333... and returns 1/3, while entering 1.83 with one trailing digit repeating treats the value as 1.8333... and returns 11/6 or 1 5/6.

Core decimal-to-fraction formulas

The basic method is exact for finite decimals. First count how many digits appear after the decimal point. That determines the denominator as a power of ten. Then remove the decimal point to form the numerator, and finally reduce the fraction by dividing numerator and denominator by their greatest common divisor.

This calculator uses that exact place-value approach for terminating decimals, not an approximation routine. That means decimals such as 0.125 and 2.375 are converted directly into precise rational values, then shown as both improper fractions and mixed numbers.

When trailing repeating digits are provided, the denominator changes from a simple power of ten to the repeating-decimal denominator. The calculator shows the unreduced fraction, greatest common divisor, simplified fraction, mixed number, and the step-by-step work so you can see exactly how the answer was produced.

Decimal with n places = Integer over 10^n

If a decimal has n digits after the point, the first fraction form uses a denominator of 10 to the power n.

0.125 = 125/1000 = 1/8

After the decimal is rewritten over a power of ten, numerator and denominator are reduced to lowest terms.

Mixed number = Whole part + Proper fraction

Improper fractions greater than one can also be written as mixed numbers to make the whole-number portion easier to read.

0.(3) = 3/9 = 1/3

A repeating tail uses 9s in the denominator rather than a power of ten.

1.8(3) = 183 - 18 over 90 = 165/90 = 11/6

A non-repeating decimal part before the repeating digit adds zeros after the 9s in the denominator.

Why simplification matters

A raw conversion such as 375/1000 is correct, but it is not usually the most useful final answer. Simplifying the fraction to 3/8 makes the relationship easier to recognize and easier to compare with other fractional values. That is why a good decimal to fraction calculator always reduces the fraction before presenting the result.

Mixed-number output is also important for everyday use. Someone reading 19/8 may prefer to see 2 3/8 because that matches the way many people think about measurements, lengths, and other practical quantities. A strong online conversion calculator therefore shows more than one mathematically equivalent format.

The result table includes the numerator, denominator, unreduced fraction, and greatest common divisor. Those details make the simplification auditable instead of asking you to trust a single final answer.

  • Finite decimals can be converted exactly using powers of ten.
  • Simplest form is found by dividing by the greatest common divisor.
  • Mixed numbers are another readable form of improper fractions greater than one in magnitude.
  • Negative decimals convert the same way, with the sign carried onto the fraction.

Exact fractions vs common-denominator approximations

The simplified fraction is the mathematically exact answer for the decimal or repeating pattern entered. That is the value to use for homework, algebra, percentage conversion, and any situation where the exact rational number matters.

Practical measurement work sometimes needs a nearby denominator instead. A carpenter, cook, machinist, or student may want to know the nearest halves, quarters, eighths, sixteenths, thirty-seconds, or sixty-fourths even when the exact fraction has a different denominator. The common-denominator check in the calculator keeps those approximations separate from the exact simplified fraction so the page can answer measurement-style searches without pretending the approximation is exact.

For example, 0.375 is exactly 3/8, so it also matches 6/16 and 24/64. A decimal such as 0.1 is exactly 1/10, but its nearest eighth is 1/8 and its nearest sixteenth is 2/16. That distinction is useful when comparing a decimal to fraction chart with a precise decimal to fraction conversion.

Limits and practical use

This decimal to fraction calculator is designed for finite decimals and trailing repeating decimals where you can identify the repeating block. Non-repeating irrational decimals, algebraic expressions, and unmarked calculator approximations cannot be converted into a unique exact fraction from the typed digits alone.

Used alongside a fraction calculator, percentage calculator, or scientific calculator, this tool helps bridge number formats quickly. It is especially useful when you need to convert a typed decimal into a simplified fraction for homework, checking a measurement, adjusting a recipe, reading an inch mark, or comparing one number representation with another.

The input intentionally limits the number of decimal places so the exact numerator and denominator stay reliable in the browser. If you need symbolic algebra, arbitrary-precision proof work, or a full recurring-decimal notation parser, use a dedicated algebra system.

Repeating decimals and exact conversion

Repeating decimals are still rational numbers, but they do not convert cleanly by counting decimal places alone because the repeating pattern never ends. For that reason, searches such as repeating decimal to fraction, convert 0.333 to fraction, or how to turn a recurring decimal into a fraction need a repeating-tail method rather than the finite-decimal method.

This page handles that common case by asking how many trailing decimal digits repeat. Enter 0.3 with one repeating digit for 0.333..., 0.36 with two repeating digits for 0.363636..., or 0.857142 with six repeating digits for 0.857142857142....

If the decimal is just a rounded approximation such as 0.333333 typed from a calculator screen, decide whether you mean the finite decimal 333333/1000000 or the exact repeating decimal 1/3 before converting. The answer depends on that interpretation.

Further reading

Common decimal to fraction examples

Some decimal-to-fraction conversions appear constantly in school work and measurement. 0.125 is 1/8, 0.25 is 1/4, 0.375 is 3/8, 0.5 is 1/2, 0.625 is 5/8, and 0.75 is 3/4.

Repeating decimal examples are different but just as useful. 0.333... is 1/3, 0.666... is 2/3, 0.090909... is 1/11, and 0.142857142857... is 1/7.

The quick-example buttons in the calculator include both finite and repeating examples so you can test the two conversion modes before entering your own value.

Frequently asked questions

How does the calculator convert a decimal to a fraction?

For an ordinary finite decimal, it counts the decimal places, writes the digits over a power of ten, and reduces by the greatest common divisor. For a trailing repeating decimal, it uses the repeating-tail denominator rule before reducing the fraction.

Why might the result depend on whether I mark digits as repeating?

A finite decimal and a repeating decimal are different values. For example, 0.3 is exactly 3/10, but 0.333... is exactly 1/3. Use the repeating-digits input only when the trailing pattern repeats forever.

How do I convert a mixed number like 2.75?

Enter 2.75 directly. The calculator returns the improper fraction 11/4 and the mixed number 2 3/4, then shows the unreduced 275/100 form and the greatest common divisor used to simplify it.

Can repeating decimals be converted exactly?

Yes, when the repeating block is known and it appears at the end of the entered decimal. Enter the shortest decimal that contains the repeating block once, then enter how many trailing digits repeat.

What does trailing repeating digits mean?

It means the repeated part is at the end of the decimal you typed. For 0.3 repeating, enter decimal 0.3 and repeating digits 1. For 0.142857 repeating, enter decimal 0.142857 and repeating digits 6.

Can I use this as a decimal to mixed number calculator?

Yes. Every valid result shows both the improper fraction and the mixed number when the value is greater than one in magnitude.

Does it round to the nearest common fraction?

The main answer is exact for the digits and repeating-tail setting you provide. The common-denominator table also shows the nearest halves, quarters, eighths, sixteenths, thirty-seconds, and sixty-fourths as a measurement sanity check, but those rows are approximations unless the row says it is an exact match.

Why does the nearest sixteenth sometimes differ from the simplified fraction?

A simplified fraction uses the exact denominator that best represents the decimal after reduction. A nearest-sixteenth result forces the value onto a denominator of 16, which can be useful for measurement but may introduce a small difference when the exact denominator is not compatible with sixteenths.

Can negative decimals be converted?

Yes. The calculator converts the absolute value and then carries the negative sign onto the simplified fraction and mixed number.

Also in Fractions

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.