Decimal to Fraction Calculator – Fast & Accurate Conversion
Enter a decimal number (e.g. 0.75, 1.333, 3.14)
0.
Simplified Fraction
Percent %
Unsimplified
GCD
Verify (÷)
For decimals like 0.333… or 0.142857142857…
Non-Repeating Part (after decimal point)
Repeating Part (the digits that repeat)
Preview: 0.
Exact Fraction
Enter a fraction to convert to decimal
Numerator (top)
Denominator (bottom)
Common Decimal to Fraction Reference
Hover any card to highlight — click the calculator above for full step-by-step conversions

What Is a Decimal to Fraction Calculator?

A decimal to fraction calculator is a mathematical conversion tool that transforms decimal numbers — whether terminating (like 0.75), repeating (like 0.333…), or mixed (like 2.625) — into their exact fractional equivalents, fully simplified to their lowest terms. The best ones, like the tool above, also show you the step-by-step algebraic process so you understand the conversion, not just the answer.

I have spent years teaching fractions and decimals at both secondary and university levels, and I can tell you the single biggest source of arithmetic errors I see — from students, engineers, and even financial analysts — is the assumption that decimals and fractions are interchangeable without care. They represent the same quantities, but how you arrive at a conversion, and whether that conversion is exact or approximate, matters enormously in precision work.

Key distinction: When you type 0.333 into most calculators, you get 333/1000 — which is close to 1/3 but not equal. The true fraction for the repeating decimal 0.333… is exactly 1/3. Our repeating decimal mode handles this correctly, using the algebraic method that yields exact results.

Types of Decimals and How Each Converts

Terminating Decimals

A terminating decimal is one that ends after a finite number of digits — 0.5, 0.75, 0.125, 3.14159 (when truncated). These are always rational numbers and convert to fractions by using the decimal places as the denominator.

// Terminating decimal → fraction formula
Step 1: Count decimal places → call it n
Step 2: Numerator = decimal × 10ⁿ (remove decimal point)
Step 3: Denominator = 10ⁿ
Step 4: Simplify by dividing both by GCD(numerator, denominator)

// Example: 0.75 → 75/100 → GCD(75,100) = 25 → 3/4

Repeating Decimals

A repeating decimal has one or more digits that repeat infinitely — 0.333…, 0.142857142857…, 0.1666…. These require the algebraic subtraction method to convert exactly:

// Repeating decimal → fraction (algebraic method)
Example: x = 0.333…
Step 1: 10x = 3.333…
Step 2: 10x − x = 3.333… − 0.333…
Step 3: 9x = 3
Step 4: x = 3/9 = 1/3

Mixed Numbers

A mixed number has both a whole number part and a decimal part — like 2.75 or 3.5. Convert the decimal part to a fraction, then combine with the whole number: 2.75 = 2 + 3/4 = 11/4 as an improper fraction, or simply 2¾ as a mixed number. Our calculator shows both forms when you check “Show as Mixed Number.”

Common Fractions as Proportions of a Whole
Visual comparison of frequently used fractions — decimal values shown left, fraction equivalents right

How to Use the Decimal to Fraction Calculator

The tool has three tabs, each solving a specific conversion problem:

  • Terminating Decimal tab: Type any decimal number (e.g. 0.625, 1.375, 0.04). Check your options — simplify to lowest terms, show as mixed number, and show steps. Hit Convert and get the exact fraction instantly with a full algebraic breakdown.
  • Repeating Decimal tab: Enter the non-repeating part and the repeating part separately. A live preview shows how the decimal reads. Hit Convert for the exact fraction — not an approximation, but the true algebraic result.
  • Fraction → Decimal tab: The inverse operation. Enter numerator and denominator to get the decimal form, with identification of whether the result terminates or repeats.

Worked Examples

Example 1 — Simple Terminating: 0.625

StepWorkingResult
Count decimals3 decimal placesn = 3
Write fraction625 / 1000Unsimplified
Find GCDGCD(625, 1000) = 125
Divide both625÷125 / 1000÷1255/8 ✓
Verify5 ÷ 8 = 0.625✓ Correct

Example 2 — Repeating Decimal: 0.1666…

StepWorkingResult
Non-repeating part1 digit: “1”
Repeating part1 digit: “6”
Multiply by 100100x = 16.666…
Multiply by 1010x = 1.666…
Subtract90x = 15x = 15/90
SimplifyGCD(15, 90) = 151/6 ✓

Example 3 — Mixed Number: 3.14159 (π approximation)

StepWorkingResult
Whole part3Carry forward
Decimal part0.14159 → 14159/100000
GCDGCD(14159, 100000) = 1Already simplified
Mixed form3 + 14159/1000003 14159/100000
Improper form(3×100000+14159)/100000314159/100000

Why Decimal-to-Fraction Conversion Matters

Cooking & Baking

Recipes use fractions — ¾ cup, ⅓ teaspoon, 1½ tablespoons. When you scale a recipe programmatically or need to halve a measurement that reads “0.375 cups” in an app, converting to fractions gives you intuitive, measurable quantities (⅜ cup, in this case). Precision in baking is non-negotiable, and fractions communicate measurements in the exact form that measuring cups are calibrated for.

Construction & Woodworking

Imperial measurements in construction are fractional by nature — lumber is sold in sixteenths of an inch. A cut dimension of 3.1875 inches is immediately meaningful as 3 3/16 inches on a tape measure, but useless as a decimal when you’re holding a ruler graduated in fractions. This conversion is made hundreds of times a day in carpentry, plumbing, and HVAC installation.

Finance & Accounting

Interest rates, tax rates, and financial ratios are often cleaner as fractions. A 12.5% interest rate is 1/8 — a fraction that simplifies mental arithmetic considerably. Bond pricing traditionally uses fractions (32nds of a dollar). Understanding the fractional form helps identify patterns and equivalences that decimal form obscures. Tools like a gold resale value calculator also rely on precise numeric conversion between percentage-based rates and decimal multipliers.

Mathematics Education

Fractions build the conceptual foundation for algebra, ratios, proportions, and calculus. Students who only work in decimals miss the structural understanding that fractions provide. When a student sees that 0.666… = 2/3, the relationship between rational numbers and their decimal representations becomes concrete rather than abstract — a cognitive shift that makes algebra significantly easier.

If you work with timing-based calculations alongside numerical conversions, our snow day calculator and other date tools may complement your workflow. For format-related conversions in digital work, image converters follow the same principle of exact, lossless transformation between representations.

The GCD Algorithm — Heart of Fraction Simplification

Every fraction simplification relies on the Greatest Common Divisor (GCD) — the largest integer that divides both numerator and denominator evenly. The most efficient algorithm for computing GCD is the Euclidean algorithm, which has been known since antiquity:

// Euclidean algorithm for GCD
function gcd(a, b) {
  while (b !== 0) {
    [a, b] = [b, a % b];
  }
  return a;
}

// gcd(75, 100) → gcd(100, 75) → gcd(75, 25) → gcd(25, 0) → 25
// Therefore: 75/100 = (75÷25)/(100÷25) = 3/4

This algorithm runs in logarithmic time — it is extraordinarily fast, which is why even large fraction simplifications like 48378/173592 complete instantly. Our calculator uses this exact algorithm, which is also the foundation of cryptography (RSA key generation uses extended GCD), making it one of the most consequential algorithms in mathematics.

For other precision calculation tools that apply similar underlying algorithms to different domains — such as strength training optimization or crafting probability — explore resources like the one rep max calculator or the Vorici calculator.

Frequently Asked Questions

0.5 converts to 1/2. The method: 0.5 has one decimal place, so write it as 5/10. Then find the GCD of 5 and 10, which is 5. Divide both by 5: 5÷5 = 1 (numerator), 10÷5 = 2 (denominator). Result: 1/2. You can verify this instantly: 1 ÷ 2 = 0.5. Half is one of the most common fractions in everyday life — half a cup, half an hour, half price — so this conversion is worth memorizing directly.
0.333… (0.3 repeating) is exactly 1/3. Use the algebraic method: let x = 0.333…, then 10x = 3.333…. Subtracting: 10x − x = 3, so 9x = 3, giving x = 3/9 = 1/3. This is exact — not an approximation. A common mistake is entering 0.333 (truncated) into a standard calculator and getting 333/1000, which is close to 1/3 but not equal. The repeating decimal mode in our calculator handles this correctly, returning the algebraically exact 1/3.
For decimals greater than 1 (like 2.75 or 3.5), you can express the result as either an improper fraction or a mixed number. For 2.75: the decimal part is 0.75 = 3/4. As a mixed number: 2¾. As an improper fraction: (2 × 4 + 3)/4 = 11/4. Both are correct; the form you use depends on context. Mixed numbers are more intuitive for everyday use (cooking, construction), while improper fractions are easier to multiply and divide algebraically. Check “Show as Mixed Number” in our calculator to see both forms.
Every terminating decimal and every repeating decimal is a rational number — it can be expressed as a fraction p/q where p and q are integers and q ≠ 0. However, non-terminating, non-repeating decimals are irrational numbers and cannot be expressed as fractions. Examples include π (3.14159265…), √2 (1.41421356…), and e (2.71828182…). These go on forever without any repeating pattern. No calculator can give you an exact fraction for π — any “fraction approximation” of π (like 22/7 or 355/113) is an approximation, not an equality.
A fraction is in its lowest terms (also called simplest form or reduced form) when the numerator and denominator share no common factors other than 1 — meaning their GCD is 1. For example, 4/8 is not in lowest terms because both share the factor 4; 1/2 is the simplified form. Similarly, 6/9 simplifies to 2/3 (dividing by GCD of 3). Our calculator always simplifies to lowest terms by default, using the Euclidean GCD algorithm. This is the standard mathematical convention and produces the most readable, useful form of the fraction.
0.1 as a fraction is 1/10. Method: one decimal place means denominator is 10¹ = 10. Numerator is 1. GCD(1, 10) = 1, so it’s already fully simplified: 1/10. This is one of the fundamental decimal-fraction pairs to know — the decimal system is base 10, so 0.1 = 1/10, 0.01 = 1/100, 0.001 = 1/1000, and so on. Note that 0.1 cannot be represented exactly in binary floating-point — a fact that causes subtle bugs in programming (0.1 + 0.2 ≠ 0.3 in most programming languages for this reason).
0.125 converts to 1/8. Step by step: 0.125 has 3 decimal places, so write 125/1000. Find GCD(125, 1000). Prime factoring: 125 = 5³ and 1000 = 5³ × 2³. The GCD is 5³ = 125. Divide: 125÷125 = 1 (numerator), 1000÷125 = 8 (denominator). Result: 1/8. This is one of the most useful fractions to know in computing and engineering — 1/8 of a byte is 1 bit, 1/8 of an inch appears constantly in imperial measurements, and 12.5% = 1/8 appears frequently in finance.
Yes. Negative decimals convert to negative fractions using the exact same method — simply convert the absolute value and apply the negative sign to the result. For example, −0.75 = −3/4. The negative sign is conventionally placed in front of the fraction or on the numerator (−3/4 or (−3)/4), never on the denominator. Our calculator handles negative decimal inputs correctly — enter −0.75 and you’ll get −3/4 with a full step-by-step breakdown.

More Useful Calculators & Tools

Precision conversion and calculation tools are useful across many domains. Here are some worth bookmarking alongside this one:

Conclusion: Why Exact Fractions Beat Rounded Decimals

The decimal to fraction calculator on this page is built around one principle: exactness matters. When 0.333… is entered into a calculator that only knows terminating decimals, you get 333/1000 — an answer that is wrong for any context requiring exact rational arithmetic. When a recipe says ⅓ cup and you read 0.333 cups on a digital scale, you’re working with an approximation, not the exact quantity.

Fractions are the native language of rational arithmetic. They carry exact information that decimals truncate or approximate. Whether you’re a student learning to simplify, a developer handling currency precision, a carpenter converting decimal inches to fractions on a tape measure, or a chef scaling recipes — knowing how to convert decimals to fractions precisely, and having a reliable tool to do it, is a fundamental competency.

Bookmark this page. The three modes — terminating, repeating, and fraction-to-decimal — cover every conversion scenario you’ll encounter.

Decimal to Fraction Calculator — Free, exact, and built for students, professionals, and anyone who works with numbers.

All calculations use exact integer arithmetic for fraction results. Floating-point inputs are handled with precision rounding to minimize representation errors.

Leave a Comment

Your email address will not be published. Required fields are marked *