COC

Free Math Tool

Decimal to Fraction Calculator

Convert any decimal into a simplified fraction, turn a fraction back into a decimal, resolve mixed numbers, or convert repeating decimals like 0.(3) into an exact fraction — instantly, with every simplification step shown.

✓ Four conversion modes   ✓ Automatic GCD simplification   ✓ Works on mobile

Decimal ⇄ Fraction Calculator

Enter a valid decimal number
Enter a valid whole number
Enter a non-zero whole number
Enter a valid whole number
Enter a valid whole number
Enter a non-zero whole number
Enter the repeating digit(s)

Example: for 1.2(34) — meaning 1.2343434... — enter Integer Part = 1, Non-Repeating = 2, Repeating = 34.

1/2 shaded 3/8 pie

What Is a Decimal to Fraction Calculator?

A decimal is a number written using a point to separate whole units from fractional parts — 0.25, 1.75, and 3.5 are all decimals. A fraction expresses the same kind of value as one whole number divided by another, such as 1/4 or 7/2. They are two different ways of writing exactly the same quantity, and converting between them is one of the most common tasks in mathematics, from a fifth-grade homework assignment to a structural engineer's load calculation. Decimals are convenient for arithmetic and calculators; fractions are often more precise, easier to visualize, and required by trades like carpentry and machining where a tape measure is marked in eighths and sixteenths, not tenths.

Converting a decimal to a fraction matters because many real-world tools and standards are fraction-based. A woodworker cutting a board to 0.625 inches has to translate that into 5/8 inch to read a standard ruler. A recipe calling for 0.75 cups is really asking for 3/4 cup. A machinist's technical drawing might specify a tolerance in decimal inches, but the stock material comes in fractional sizes. Getting the conversion wrong — or skipping the simplification step — leads to measurement errors that compound in construction, manufacturing, and engineering contexts where precision is non-negotiable.

This calculator instantly converts decimals into simplified fractions, and it works the other direction too. Enter a decimal like 0.375 and it returns the simplified fraction 3/8, the unsimplified version 375/1000, the equivalent percentage, and the exact steps used to get there. Enter a fraction like 5/8 and it returns the decimal 0.625. Enter a mixed number like 2 1/2 and it converts it to the improper fraction 5/2 and the decimal 2.5. Enter a repeating decimal like 0.(3) — meaning the 3 repeats forever — and it applies the algebraic subtraction method to return the exact fraction 1/3, rather than a rounded approximation.

Every result is automatically simplified using the Greatest Common Divisor, computed with Euclid's Algorithm, so you always get a fraction in its lowest terms rather than an unreduced one like 50/100 instead of 1/2. Calculations update live as you type, with no page reloads, and each result shows the intermediate steps — the unsimplified fraction, the GCD found, and the final simplified form — so you can follow the logic rather than just trusting a number. That transparency makes this tool useful well beyond a single answer: it's built for students learning fraction simplification, teachers demonstrating the process on a projector, engineers and architects converting decimal measurements into fractional tolerances, carpenters and woodworkers reading a tape measure, surveyors converting decimal readings, and anyone working through cooking, finance, or manufacturing measurements that mix decimal and fractional units.

The Complete Guide to Decimals and Fractions

Everything students, tradespeople, and engineers ask about how decimals and fractions relate — and how to convert between them accurately.

What is a decimal?

A decimal number uses a decimal point to separate a whole-number part from a fractional part expressed in powers of ten. Each digit after the point represents tenths, hundredths, thousandths, and so on — so 0.25 means 2 tenths plus 5 hundredths, or 25/100. Decimals are the standard format for calculators, currency, and most scientific measurement because they're easy to add, subtract, and compare digit by digit.

What is a fraction?

A fraction expresses a value as one integer (the numerator) divided by another (the denominator), written numerator/denominator. Fractions represent the same values as decimals but describe them as a ratio of whole numbers rather than place values, which is why they map naturally onto physical measuring tools like rulers, measuring cups, and tape measures that are marked in halves, quarters, eighths, and sixteenths.

Proper fractions, improper fractions, and mixed numbers

A proper fraction has a numerator smaller than its denominator, such as 3/4, and represents a value less than one whole. An improper fraction has a numerator equal to or larger than its denominator, such as 7/4, representing a value of one or more. A mixed number combines a whole number and a proper fraction, such as 1 3/4, and is simply a more readable way of writing the same improper fraction. Converting between improper fractions and mixed numbers is a matter of division: divide the numerator by the denominator to get the whole number, and the remainder becomes the new numerator over the same denominator.

Terminating decimals vs. repeating decimals

A terminating decimal ends after a finite number of digits, like 0.375, and always converts to a fraction whose denominator's prime factors are only 2s and 5s. A repeating decimal has one or more digits that repeat forever, like 0.333... (written 0.(3)) or 1.2343434... (written 1.2(34)). Repeating decimals arise whenever the fraction's denominator, once fully reduced, contains a prime factor other than 2 or 5 — which is exactly why 1/3 never terminates but 1/8 does.

The Greatest Common Divisor and why it matters

The Greatest Common Divisor (GCD) of two integers is the largest number that divides both evenly. Dividing a fraction's numerator and denominator by their GCD produces the fraction in its simplest, lowest-terms form — for example, 50/100 has a GCD of 50, so dividing both parts by 50 gives 1/2. This calculator finds the GCD automatically using Euclid's Algorithm, which repeatedly replaces the larger number with the remainder of dividing it by the smaller number until the remainder reaches zero — a fast, reliable method that works on any pair of integers.

Simplifying fractions step by step

To simplify a fraction manually: find the GCD of the numerator and denominator, then divide both by that GCD. A fraction is fully simplified once its numerator and denominator share no common factor other than 1. Skipping this step is one of the most common errors in fraction arithmetic — an unsimplified answer like 6/8 is mathematically correct but should always be reduced to 3/4.

Decimal place values explained

Each position after the decimal point corresponds to a power of ten in the denominator: the first digit is tenths (denominator 10), the second is hundredths (denominator 100), the third is thousandths (denominator 1000), and so on. Converting a decimal to a fraction starts by writing the decimal's digits over the matching power-of-ten denominator, then simplifying — which is exactly the process automated in Decimal to Fraction mode above.

Fraction arithmetic basics

Adding or subtracting fractions requires a common denominator; multiplying fractions multiplies numerators and denominators directly; dividing a fraction means multiplying by its reciprocal. While this calculator focuses on decimal-fraction conversion rather than arithmetic between two fractions, understanding these operations helps explain why a simplified fraction is easier to work with than an unsimplified one — smaller numbers mean less arithmetic.

Converting decimals to fractions: the general method

Count the digits after the decimal point to determine the power of ten (n). Write the decimal's digits, without the point, over 10 raised to that power. Then divide both numerator and denominator by their GCD to simplify. For a repeating decimal, the process instead uses algebraic subtraction: set the repeating decimal equal to a variable, multiply by a power of ten to shift the repeating part, subtract the original equation, and solve — the exact method this calculator applies in Repeating Decimal mode.

Converting fractions to decimals

Simply divide the numerator by the denominator. If the division terminates, you get a terminating decimal; if it enters a repeating pattern, you get a repeating decimal, which this calculator will display rounded to your chosen precision.

Practical applications in engineering, construction, and beyond

Engineers convert decimal tolerances into fractional dimensions when specifying parts that must match standard fractional stock sizes. Architects and structural drafters move between decimal CAD measurements and fractional dimensions on printed plans. Carpenters and woodworkers read tape measures and rulers marked in fractional inches, so a decimal cut length has to be converted before it's usable on the job site. Surveyors convert decimal-degree or decimal-foot readings into fractional or sexagesimal formats for legal descriptions. In finance, stock prices were historically quoted in fractions before decimalization, and some derivative and bond markets still use fractional pricing conventions. Cooking measurements routinely mix decimal scale readings with fractional cup and spoon sizes. Manufacturing drawings frequently specify both formats side by side, so a fast, accurate converter saves real time on the shop floor.

Common mistakes when converting decimals and fractions

The most frequent error is forgetting to simplify the resulting fraction, leaving an answer like 50/100 instead of 1/2. Another is confusing proper and improper fractions when reporting a mixed number result. Miscounting decimal places — treating 0.375 as three-tenths instead of three hundred seventy-five thousandths — produces the wrong denominator entirely. Treating a repeating decimal as if it terminates (rounding 0.333... to 0.33 and converting that instead of using the exact repeating-decimal method) introduces small but real errors. Forgetting a negative sign, using an incorrect or zero denominator, and rounding too early in a multi-step conversion are the remaining mistakes worth double-checking before trusting a result.

How the Calculator Works

Four steps from a raw number to a fully simplified answer.

1

Choose a Conversion Type

Select Decimal to Fraction, Fraction to Decimal, Mixed Number to Decimal, or Repeating Decimal to Fraction from the dropdown.

2

Enter Your Values

Type in a decimal, a numerator and denominator, a whole number with a fraction, or the repeating and non-repeating digits of a decimal.

3

Automatic Simplification

The calculator finds the Greatest Common Divisor using Euclid's Algorithm and reduces the fraction to its lowest terms automatically.

4

Instant, Accurate Results

Results update live with the precision you choose, alongside the exact steps used — the unsimplified fraction, the GCD, and the final answer.

Mathematical Formulas

The core equations behind every conversion mode on this page.

Decimal to Fraction

Fraction = Decimal × 10ⁿ ÷ 10ⁿ, then simplify by GCD

n = number of digits after the decimal point.

Fraction to Decimal

Decimal = Numerator ÷ Denominator

Example: 5 ÷ 8 = 0.625.

Mixed Number to Improper Fraction

Improper Fraction = (Whole × Denominator + Numerator) ÷ Denominator

Example: 2 1/2 → (2×2+1)/2 = 5/2.

Decimal to Percentage

Percentage = Decimal × 100

Example: 0.375 × 100 = 37.5%.

Repeating Decimal to Fraction (Algebraic Subtraction Method)

Let x = the repeating decimal. Multiply x by 10ᵏ to shift the repeating block left of the point, subtract the original x, then solve for x as a ratio of integers and simplify by GCD.

Example: x = 0.333..., 10x = 3.333..., 10x − x = 3, so 9x = 3, x = 3/9 = 1/3.

Step-by-Step Conversion Examples

Six worked examples covering every mode on this page.

Example 1 — Simple Terminating Decimal

0.25 ↓ (2 decimal digits → denominator 100) 25/100 ↓ (GCD of 25 and 100 is 25) 1/4

Example 2 — Three Decimal Places

0.375 ↓ (3 decimal digits → denominator 1000) 375/1000 ↓ (GCD of 375 and 1000 is 125) 3/8

Example 3 — Decimal Greater Than One

1.75 ↓ (2 decimal digits → denominator 100) 175/100 ↓ (GCD of 175 and 100 is 25) 7/4 ↓ (convert improper fraction to mixed number) 1 3/4

Example 4 — Fraction to Decimal

5/8 ↓ (divide numerator by denominator) 5 ÷ 8 = 0.625

Example 5 — Mixed Number to Decimal

2 1/2 ↓ (convert to improper fraction: (2×2+1)/2) 5/2 ↓ (divide numerator by denominator) 2.5

Example 6 — Repeating Decimal

0.(3) → x = 0.333... 10x = 3.333... 10x − x = 3.333... − 0.333... 9x = 3 x = 3/9 ↓ (GCD of 3 and 9 is 3) 1/3

Quick Reference Tables

Common decimal-fraction pairs and where fractions show up in everyday work.

Common Decimal to Fraction Conversions

DecimalFraction
0.51/2
0.251/4
0.753/4
0.21/5
0.1251/8
0.3753/8
0.6255/8
0.8757/8

Common Fraction to Decimal Conversions

FractionDecimal
1/20.5
1/30.333...
2/30.666...
3/40.75
5/80.625
7/80.875

Common Fraction Applications by Industry

IndustryExample
ConstructionLumber measurements
CarpentryCutting boards
EngineeringTechnical drawings
SurveyingLand measurements
CookingRecipe measurements
ManufacturingComponent dimensions

Benefits of Using This Calculator

Why students, tradespeople, and engineers reach for a dedicated converter instead of doing long division by hand.

🔢

Automatic Simplification

Every fraction is reduced to lowest terms using Euclid's Algorithm — no manual GCD hunting required.

🔁

Repeating Decimal Support

Convert decimals like 0.(3) or 1.2(34) into exact fractions using the algebraic subtraction method.

Mixed Number Conversion

Move freely between whole-plus-fraction notation and improper fractions or decimals.

Live Calculations

Every mode updates instantly as you type, with no page reloads or manual submission delays.

📊

Interactive Visual Learning

Fraction bars and pie charts make it easier to see what a result actually represents.

📱

Mobile-Friendly

Every field, table, and result card is fully responsive across phones, tablets, and desktops.

Practical Applications

Real situations where converting between decimals and fractions matters.

  • Mathematics education — students and teachers practicing and demonstrating fraction simplification.
  • Engineering — converting decimal tolerances into fractional dimensions for standard parts.
  • Carpentry & woodworking — translating decimal cut lengths into fractional tape-measure readings.
  • Construction — reading lumber and material measurements marked in fractional inches.
  • Architecture — moving between decimal CAD dimensions and fractional drawing annotations.
  • Surveying — converting decimal readings for land measurement documentation.
  • Manufacturing — matching decimal specifications to fractional component dimensions.
  • Finance — understanding legacy fractional pricing conventions still used in some markets.
  • Cooking — converting scale readings into fractional cup and spoon measurements.
  • DIY home improvement — measuring and cutting materials accurately without guesswork.
  • Scientific calculations — expressing results as exact fractions rather than rounded decimals.
  • Everyday problem solving — quickly checking a fraction or decimal answer on the go.
0 1/4" 1/2" 3/4"

Common Mistakes

Avoid these errors when converting between decimals and fractions.

Forgetting to simplify fractions

An unsimplified result like 50/100 is technically correct but should always be reduced to 1/2 using the GCD.

Confusing proper and improper fractions

Improper fractions (numerator ≥ denominator) should usually be reported as mixed numbers for readability.

Incorrect decimal place counting

Miscounting digits after the decimal point produces the wrong power-of-ten denominator and an incorrect fraction.

Mixing repeating and terminating decimals

Rounding a repeating decimal and converting the rounded value gives an approximate, not exact, fraction.

Ignoring negative signs

The negative sign belongs on the final fraction or decimal — dropping it changes the value entirely.

Using the wrong denominator

A denominator of zero or a non-integer denominator makes a fraction undefined or invalid.

Rounding decimals before conversion

Rounding early introduces error that carries through the rest of the calculation — convert first, round last.

Entering an invalid denominator

Denominators must be non-zero whole numbers; a zero or fractional denominator will not produce a valid result.

Frequently Asked Questions

Fifteen common questions about decimal-fraction conversion, answered directly.

How do you convert a decimal into a fraction?

Write the decimal's digits over a power of ten matching its number of decimal places, then divide both numerator and denominator by their Greatest Common Divisor to simplify.

How do you simplify a fraction?

Find the Greatest Common Divisor of the numerator and denominator, then divide both by that number until no common factor remains.

What is the GCD?

The Greatest Common Divisor is the largest whole number that divides two integers evenly. This calculator finds it using Euclid's Algorithm.

What is a mixed number?

A mixed number combines a whole number and a proper fraction, such as 1 3/4, representing the same value as the improper fraction 7/4.

What is an improper fraction?

A fraction where the numerator is equal to or greater than the denominator, such as 7/4, representing a value of one or more.

How do repeating decimals work?

A repeating decimal has one or more digits that repeat forever, such as 0.333... They convert to exact fractions using the algebraic subtraction method.

Can this calculator convert fractions to decimals?

Yes — the Fraction to Decimal mode divides the numerator by the denominator and displays the result to your chosen precision.

Does it support negative numbers?

Yes — negative decimals and fractions are handled correctly, with the sign preserved through simplification.

Can students use this calculator?

Yes — it shows the unsimplified fraction, the GCD, and the final simplified answer, making it useful for learning the process, not just getting an answer.

Is it suitable for engineering and technical work?

Yes — it handles precise decimal-to-fraction conversions needed for tolerances, technical drawings, and standard fractional part sizes.

Is this calculator accurate?

Yes — it uses exact integer math and Euclid's Algorithm for simplification, and the algebraic subtraction method for repeating decimals, rather than rounding approximations.

Is it free to use?

Yes, all four conversion modes are completely free with no sign-up required.

Does it work on mobile?

Yes — the layout and all input fields are fully responsive and work the same on phones, tablets, and desktops.

Why are fractions important?

Fractions map naturally onto physical measuring tools, express exact values that decimals sometimes can only approximate, and are the required format in trades like carpentry, engineering, and manufacturing.

What is the difference between terminating and repeating decimals?

A terminating decimal ends after a finite number of digits; a repeating decimal has a digit or digit group that repeats forever, arising when the fraction's denominator has prime factors other than 2 or 5.

Ready to Convert Decimals into Fractions?

Instantly convert decimals, fractions, mixed numbers, and repeating decimals using this professional calculator with automatic simplification and step-by-step explanations.