Decimal to Fraction
Calculator
Convert any decimal — terminating, repeating, or mixed — into its simplest fraction form with full step-by-step workings.
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.
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.
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:
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.”
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
| Step | Working | Result |
|---|---|---|
| Count decimals | 3 decimal places | n = 3 |
| Write fraction | 625 / 1000 | Unsimplified |
| Find GCD | GCD(625, 1000) = 125 | — |
| Divide both | 625÷125 / 1000÷125 | 5/8 ✓ |
| Verify | 5 ÷ 8 = 0.625 | ✓ Correct |
Example 2 — Repeating Decimal: 0.1666…
| Step | Working | Result |
|---|---|---|
| Non-repeating part | 1 digit: “1” | — |
| Repeating part | 1 digit: “6” | — |
| Multiply by 100 | 100x = 16.666… | — |
| Multiply by 10 | 10x = 1.666… | — |
| Subtract | 90x = 15 | x = 15/90 |
| Simplify | GCD(15, 90) = 15 | 1/6 ✓ |
Example 3 — Mixed Number: 3.14159 (π approximation)
| Step | Working | Result |
|---|---|---|
| Whole part | 3 | Carry forward |
| Decimal part | 0.14159 → 14159/100000 | — |
| GCD | GCD(14159, 100000) = 1 | Already simplified |
| Mixed form | 3 + 14159/100000 | 3 14159/100000 |
| Improper form | (3×100000+14159)/100000 | 314159/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:
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
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.