Decimal to Fraction Calculator — Free Online Converter
Convert any decimal number into a fraction in simplest form instantly. Free decimal to fraction converter showing the reduced result and the working.
3/4
About this calculator
Decimal to Fraction Calculator
Comprehensive Guide to Decimal to Fraction Calculator
The Decimal to Fraction Calculator converts terminating and repeating decimal numbers into fully simplified, exact rational fractions ($\frac{p}{q}$) and mixed numbers. While digital electronic instruments, spreadsheets, and pocket calculators display quantities in decimal notation, industrial blueprints, mechanical manufacturing, woodworking, drill bit tooling, and architectural drawings routinely require exact fractional expressions (such as $\frac{5}{8}\text{ in}$ or $2\frac{3}{16}\text{ in}$).
Converting decimals to fractions prevents the cumulative rounding errors inherent in repeating decimals (like $0.333\dots = \frac{1}{3}$) and enables precision matching with standard manufacturing gauges, fastener specifications, and rational algebraic computations.
How to Use the Decimal to Fraction Calculator
- Enter the Decimal Value: Input the decimal number into the entry field (e.g.,
0.625,2.375, or0.6666). - Specify Repeating Digits (Optional): If the input represents a repeating decimal, wrap the repetend in parentheses or specify the repeat block (e.g.,
0.(3)for $0.\overline{3}$ or0.1(6)for $0.1\overline{6}$). - Choose Output Fraction Type: Select your preferred display mode: Improper Fraction (e.g., $\frac{19}{8}$) or Mixed Number (e.g., $2\frac{3}{8}$).
- Review Step-by-Step Reduction: Inspect the Greatest Common Factor (GCF) factorization steps used to reduce the numerator and denominator to lowest terms.
- Inspect Engineering Equivalents: Check the nearest workshop inch fraction (in 16ths, 32nds, or 64ths of an inch) and corresponding metric millimeters.
The Calculator Formulas
Algorithmic formulations for terminating and repeating decimal conversion:
1. Terminating Decimal Conversion:
Let decimal D have k decimal places.
Numerator = D × 10^k
Denominator = 10^k
Base Fraction = Numerator / Denominator
Simplified Fraction = (Numerator / GCF) / (Denominator / GCF)
Where GCF is the Greatest Common Factor computed via Euclid's algorithm.
2. Pure Repeating Decimal Conversion (e.g., 0.777...):
Let x = 0.ā with period k.
10^k × x = a.ā
10^k × x - x = a → (10^k - 1) × x = a
x = a / (10^k - 1) = a / [ 99...9 (k nines) ]
3. Mixed Repeating Decimal Conversion (e.g., 0.1666...):
Let non-repeating prefix have m digits, repeating period have k digits.
x = (Total_Number - NonRepeating_Prefix) / [ (10^k - 1) × 10^m ]
Denominator = (k nines) followed by (m zeros)
4. Mixed Number Representation:
Whole Number = floor(p / q)
Remainder = p mod q
Mixed Number = Whole_Number + (Remainder / q)
Practical Examples
Example 1: Converting Terminating Decimal 0.625 to Simplest Fraction
Convert $0.625$ into a reduced proper fraction.
Step 1: Count Decimal Places (k):
k = 3 decimal places (thousandths)
Step 2: Place Over 10^3:
Fraction = 625 / 1,000
Step 3: Compute GCF(625, 1,000) Using Euclidean Algorithm:
1,000 = 1 × 625 + 375
625 = 1 × 375 + 250
375 = 1 × 250 + 125
250 = 2 × 125 + 0 → GCF = 125
Step 4: Divide Numerator and Denominator by GCF:
625 / 125 = 5
1,000 / 125 = 8
Result: 0.625 = 5/8
Example 2: Converting Mixed Repeating Decimal 0.1666... to a Fraction
Convert $0.1\overline{6}$ into an exact rational fraction.
Let x = 0.1666...
Non-repeating prefix: m = 1 digit ('1')
Repeating period: k = 1 digit ('6')
Step 1: Multiply to Align Repeating Decimal Tails:
100x = 16.6666...
10x = 1.6666...
Step 2: Subtract Equations to Eliminate Repeating Tail:
100x - 10x = 16.6666... - 1.6666...
90x = 15.0
Step 3: Solve for x and Reduce:
x = 15 / 90 = (15 / 15) / (90 / 15) = 1/6
Result: 0.16̄ = 1/6
Key Concepts & Essential Terminology
Converting a decimal into a rational fraction ($rac{p}{q}$) is a foundational procedure in arithmetic, mechanical machining, carpentry, and financial precision accounting. Real numbers fall into two overarching categories: rational numbers ($mathbb{Q}$), which can be expressed exactly as the quotient of two coprime integers $rac{p}{q}$ ($q e 0$), and irrational numbers, which cannot be represented as simple ratios and exhibit non-terminating, non-repeating decimal expansions (such as $pi$, $e$, and $sqrt{2}$).
Rational decimals present either as terminating decimals (e.g., $0.375 = rac{3}{8}$) or repeating decimals (e.g., $0.overline{3} = rac{1}{3}$, $0.1overline{6} = rac{1}{6}$). Converting each demands specific algebraic algorithms and Greatest Common Factor (GCF) reduction.
Machining & Engineering Drill Bit Decimal-to-Fraction Reference Table
| Fraction of an Inch | Exact Decimal Inch | Metric Millimeter ($mm$) | Nearest Number / Letter Drill Gauge | Prime Factorization of Denominator |
|---|---|---|---|---|
| $1/64 ext{ in}$ | $0.015625 ext{ in}$ | $0.3969 ext{ mm}$ | Gauge 79 ($0.0145 ext{ in}$) | $2^6$ (Terminating) |
| $1/32 ext{ in}$ | $0.031250 ext{ in}$ | $0.7938 ext{ mm}$ | Gauge 68 ($0.0310 ext{ in}$) | $2^5$ (Terminating) |
| $1/16 ext{ in}$ | $0.062500 ext{ in}$ | $1.5875 ext{ mm}$ | Gauge 52 ($0.0635 ext{ in}$) | $2^4$ (Terminating) |
| $3/32 ext{ in}$ | $0.093750 ext{ in}$ | $2.3813 ext{ mm}$ | Gauge 42 ($0.0935 ext{ in}$) | $2^5$ (Terminating) |
| $1/8 ext{ in}$ | $0.125000 ext{ in}$ | $3.1750 ext{ mm}$ | Gauge 30 ($0.1285 ext{ in}$) | $2^3$ (Terminating) |
| $3/16 ext{ in}$ | $0.187500 ext{ in}$ | $4.7625 ext{ mm}$ | Gauge 12 ($0.1890 ext{ in}$) | $2^4$ (Terminating) |
| $1/4 ext{ in}$ | $0.250000 ext{ in}$ | $6.3500 ext{ mm}$ | Letter E ($0.2500 ext{ in}$) | $2^2$ (Terminating) |
| $5/16 ext{ in}$ | $0.312500 ext{ in}$ | $7.9375 ext{ mm}$ | Letter O ($0.3160 ext{ in}$) | $2^4$ (Terminating) |
| $1/3 ext{ in}$ (Non-standard) | $0.333333dots ext{ in}$ | $8.4667 ext{ mm}$ | Letter Q ($0.3320 ext{ in}$) | $3^1$ (Repeating: $0.overline{3}$) |
| $3/8 ext{ in}$ | $0.375000 ext{ in}$ | $9.5250 ext{ mm}$ | Letter W ($0.3860 ext{ in}$) | $2^3$ (Terminating) |
| $7/16 ext{ in}$ | $0.437500 ext{ in}$ | $11.1125 ext{ mm}$ | Letter Z ($0.4130 ext{ in}$) | $2^4$ (Terminating) |
| $1/2 ext{ in}$ | $0.500000 ext{ in}$ | $12.7000 ext{ mm}$ | Half-Inch ($12.7 ext{ mm}$) | $2^1$ (Terminating) |
| $9/16 ext{ in}$ | $0.562500 ext{ in}$ | $14.2875 ext{ mm}$ | $14.3 ext{ mm}$ Drill | $2^4$ (Terminating) |
| $5/8 ext{ in}$ | $0.625000 ext{ in}$ | $15.8750 ext{ mm}$ | $15.9 ext{ mm}$ Drill | $2^3$ (Terminating) |
| $3/4 ext{ in}$ | $0.750000 ext{ in}$ | $19.0500 ext{ mm}$ | $19.0 ext{ mm}$ Drill | $2^2$ (Terminating) |
| $7/8 ext{ in}$ | $0.875000 ext{ in}$ | $22.2250 ext{ mm}$ | $22.2 ext{ mm}$ Drill | $2^3$ (Terminating) |
| $1 ext{ in}$ | $1.000000 ext{ in}$ | $25.4000 ext{ mm}$ | Exact 1959 Agreement | $1$ (Integer) |
Periodicity & Denominator Prime Factor Classification
| Denominator Structure | Decimal Behavior | Length of Period (Repeating Digits) | Illustrative Fraction | Exact Decimal Value |
|---|---|---|---|---|
| $q = 2^a imes 5^b$ | Pure Terminating | $0$ (Terminates at $max(a, b)$ decimal places) | $7/40 = 7 / (2^3 imes 5^1)$ | $0.175$ (Exactly 3 places) |
| $gcd(q, 10) = 1$ (Prime 3) | Pure Repeating | Period 1 | $1/3$ | $0.333333dots = 0.overline{3}$ |
| $gcd(q, 10) = 1$ (Prime 7) | Pure Repeating | Period 6 | $1/7$ | $0.142857142857dots = 0.overline{142857}$ |
| $gcd(q, 10) = 1$ (Prime 11) | Pure Repeating | Period 2 | $4/11$ | $0.363636dots = 0.overline{36}$ |
| Mixed: $2^a imes 5^b imes r$ ($r=3$) | Delayed Repeating | Non-repeating prefix of length $max(a, b)$, then repeats | $1/6 = 1 / (2^1 imes 3^1)$ | $0.166666dots = 0.1overline{6}$ |
| Mixed: $2^a imes 5^b imes r$ ($r=7$) | Delayed Repeating | Non-repeating prefix of length $max(a, b)$, then repeats | $3/14 = 3 / (2^1 imes 7^1)$ | $0.2142857dots = 0.2overline{142857}$ |
Empirical Mathematical Axioms & Engineering Rules
- The $2^a imes 5^b$ Terminating Decimal Theorem: In base 10, a fully simplified fraction $rac{p}{q}$ produces a terminating decimal if and only if the prime factorization of the denominator $q$ contains no prime factors other than 2 and 5 ($q = 2^a imes 5^b$). If any other prime factor exists (such as 3, 7, 11, or 13), the decimal expansion is guaranteed to be infinitely repeating.
- Euclid's Algorithm for Fraction Simplification: To simplify $rac{625}{1000}$, the Euclidean algorithm computes $gcd(1000, 625)$:
1000 = 1 × 625 + 375
625 = 1 × 375 + 250
375 = 1 × 250 + 125
250 = 2 × 125 + 0 → GCF = 125
Dividing numerator and denominator by 125 gives $rac{625 / 125}{1000 / 125} = rac{5}{8}$. 3. The 1959 International Yard and Pound Agreement: On July 1, 1959, the metrology institutes of the United States, United Kingdom, Canada, Australia, New Zealand, and South Africa established that exactly $1 ext{ inch} = 25.4 ext{ millimeters}$. Because $25.4 = rac{127}{5}$, all imperial fractional conversions to metric millimeters are exact terminating decimals when scaled by $rac{127}{5,000}$.
How Decimal to Fraction Conversion Works
Converting decimal fractions into exact integer ratios involves number theory, continued fraction approximations, and floating-point normalization:
1. Geometric Series and Repeating Decimals
Repeating decimals are infinite geometric series. For example, $0.777dots$ is:
0.777... = 7/10 + 7/100 + 7/1000 + ... = Σ_{k=1}^∞ 7 × (1/10)^k
Applying the infinite geometric series sum formula $S = rac{a}{1 - r}$ with initial term $a = rac{7}{10}$ and common ratio $r = rac{1}{10}$:
S = (7/10) / (1 - 1/10) = (7/10) / (9/10) = 7/9
This rigorous algebraic foundation proves why repeating digits are placed over denominators composed entirely of nines ($9, 99, 999$).
2. Continued Fractions for Irrational Approximations
When converting non-repeating numbers (like $pi = 3.14159265dots$), continued fraction expansions provide the best possible rational approximations:
π = [3; 7, 15, 1, 292, ...]
Convergent 1: 3/1 = 3.0
Convergent 2: 3 + 1/7 = 22/7 ≈ 3.142857 (Accurate to 0.04%)
Convergent 3: 3 + 1/(7 + 1/15) = 333/106 ≈ 3.141509
Convergent 4: 355/113 ≈ 3.14159292 (Zu Chongzhi Milü, accurate to 6 decimal places)
3. Binary Floating-Point Imprecision in Computing
Modern computers store numbers in base-2 binary floating-point (IEEE 754). Because $0.1$ and $0.2$ cannot be represented as finite sums of powers of 2, digital calculations produce subtle inaccuracies (e.g., $0.1 + 0.2 = 0.30000000000000004$). Dedicated fractional algorithms apply integer rational arithmetic or arbitrary precision BigInt routines to avoid floating-point drift.
Common Decimal to Fraction Mistakes to Avoid
- Treating Repeating Decimals as Terminating Decimals: Entering $0.3333$ into a calculator as $rac{3333}{10000}$ instead of recognizing the infinite repetend $0.overline{3} = rac{1}{3}$.
- Forgetting to Reduce to Lowest Terms: Leaving fractions in unreduced form (e.g., reporting $rac{50}{100}$ instead of $rac{1}{2}$, or $rac{750}{1000}$ instead of $rac{3}{4}$).
- Misidentifying Repeating Blocks: Confusing mixed repeating decimals (where the repetend starts after non-repeating digits, like $0.1overline{6}$) with pure repeating decimals, leading to incorrect denominator selection.
- Attempting to Convert Irrational Numbers to Finite Fractions: Expecting irrational constants like $sqrt{2}$, $e$, or $pi$ to yield exact integer fractions rather than rational approximations.
- Rounding Intermediate Values Before Conversion: Truncating decimal inputs prematurely (e.g., entering $0.62$ instead of $0.625$), which converts to $rac{31}{50}$ instead of the true target fraction $rac{5}{8}$.
Frequently Asked Questions
How do you convert a decimal to a fraction?
Count the number of decimal places (k). Write the decimal digits as the numerator over 10^k as the denominator. Then, compute the Greatest Common Factor (GCF) of the numerator and denominator and divide both by the GCF to simplify to lowest terms.
Why does 0.999... equal 1?
Let x = 0.999... Multiplying by 10 gives 10x = 9.999... Subtracting the original equation (10x - x = 9.999... - 0.999...) yields 9x = 9, which proves x = 1. In real analysis, 0.999... and 1 are two identical representations of the same real number.
What determines whether a fraction creates a repeating or terminating decimal?
A simplified fraction p/q terminates in base 10 if and only if the prime factorization of denominator q contains only 2s and 5s (q = 2^a × 5^b). If q has any other prime factor (such as 3, 7, 11, or 13), it produces an infinitely repeating decimal.
How do you convert a repeating decimal into a fraction?
Place the repeating block of digits over a denominator composed of as many 9s as there are repeating digits. For example, 0.777... has one repeating digit (7), so it equals 7/9. For 0.3636..., there are two repeating digits (36), so it equals 36/99 = 4/11.
What is the difference between an improper fraction and a mixed number?
An improper fraction has a numerator greater than or equal to its denominator (e.g., 7/4). A mixed number expresses the same quantity as a whole number combined with a proper fraction (e.g., 1 3/4). Both are mathematically equal.
How do I convert fractional inches to millimeters?
Multiply the decimal inch value by exactly 25.4 (under the 1959 International Yard and Pound agreement). For example, 5/8 inch = 0.625 inches × 25.4 = 15.875 mm.
Conclusion
The Decimal to Fraction Calculator provides exact rational conversion for terminating and repeating decimals, eliminating rounding discrepancies in engineering, woodworking, and academic mathematics. By utilizing Euclidean GCF reduction and algebraic repetend subtraction, users obtain fully simplified fractions and mixed numbers instantly.
Related Calculators
Sources & References
Technical & General Calculation Disclaimer
This calculation tool applies standard mathematical, scientific, or engineering formulas. While designed for precision, output values are estimates and should be independently verified for commercial, structural, or safety-critical applications.
Comments
Loading comments…
Related Math Calculators
Explore more tools to continue your analysis
Fraction Calculator
Add, subtract, multiply, and divide fractions.
Significant Figures Calculator
Count significant figures and perform sig fig arithmetic.
Scientific Notation Calculator
Convert numbers to scientific notation.
Percentage Calculator
Calculate percentages, increases, and discounts.
Ratio Calculator
Solve ratio problems and find missing values.
Proportion Calculator
Calculate direct and inverse proportions.
Percent Error Calculator
Calculate experimental percent error.
Average Calculator
Calculate the average of a set of numbers.