Decimal to Fraction Calculator
Free Decimal fraction Calculator for fractions. Enter values to get step-by-step solutions with formulas and graphs. Get results you can export or share.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Decimal to Fraction Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: decimal = numerator / (10^n), then simplify by GCD
Worked example โ 0.375 = 3/8
Formula
decimal = numerator / (10^n), then simplify by GCD
Write the decimal digits as the numerator over the appropriate power of 10 as denominator (10 for 1 decimal place, 100 for 2, etc.), then simplify by dividing both by their Greatest Common Divisor. For repeating decimals, use algebra: set x = decimal, multiply by 10^k to shift the repeating block, subtract to eliminate the repetition.
Worked Examples
Example 1: Converting a Terminating Decimal
Problem:Convert 0.375 to a fraction in simplest form.
Solution:Step 1: Count decimal places: 3 digits after decimal Step 2: Write as fraction: 375/1000 Step 3: Find GCD(375, 1000) 375 = 3 x 5 x 5 x 5 1000 = 2 x 2 x 2 x 5 x 5 x 5 GCD = 5 x 5 x 5 = 125 Step 4: Simplify: 375/1000 = 3/8 Verification: 3 / 8 = 0.375
Result:0.375 = 3/8
Example 2: Converting a Repeating Decimal
Problem:Convert 0.666... (repeating) to a fraction.
Solution:Let x = 0.6666... Multiply by 10: 10x = 6.6666... Subtract: 10x - x = 6.6666... - 0.6666... 9x = 6 x = 6/9 Simplify by GCD(6,9) = 3: x = 2/3 Verification: 2/3 = 0.6666...
Result:0.666... = 2/3
Frequently Asked Questions
What is the difference between terminating and repeating decimals?
Terminating decimals have a finite number of digits after the decimal point and stop (like 0.25 or 0.625), while repeating decimals have a pattern of digits that repeats infinitely (like 0.333... or 0.142857142857...). A fraction a/b produces a terminating decimal if and only if the denominator b (after simplification) has no prime factors other than 2 and 5. If the denominator contains any other prime factor (3, 7, 11, etc.), the decimal will repeat. For example, 1/8 = 0.125 terminates because 8 = 2 x 2 x 2, while 1/3 = 0.333... repeats because 3 is a prime factor other than 2 or 5. This relationship between fractions and decimals is fundamental to number theory.
Why do some fractions create repeating decimals?
Repeating decimals occur because of the relationship between the denominator and our base-10 number system. When you divide the numerator by the denominator using long division, the process can only produce remainders from 0 to (denominator-1). If the remainder ever becomes 0, the decimal terminates. If it does not reach 0, eventually a remainder must repeat (by the Pigeonhole Principle), causing the quotient digits to cycle. The length of the repeating cycle for 1/n divides the value of Euler totient function of n. For prime denominators, the cycle length divides (p-1). For example, 1/7 has a 6-digit cycle because 7-1=6. Understanding this explains why 1/3 repeats every 1 digit, 1/7 every 6 digits, and 1/11 every 2 digits.
How do you convert a negative decimal to a fraction?
Converting a negative decimal to a fraction follows the same process as positive decimals, with the negative sign preserved throughout. Simply ignore the negative sign, convert the absolute value to a fraction using the standard method, then apply the negative sign to the numerator of the final result. For example, -0.625: ignore the sign, convert 0.625 = 625/1000. Simplify by GCD(625,1000) = 125, giving 5/8. Then apply the sign: -5/8. The convention in mathematics is to place the negative sign in the numerator, writing -5/8 rather than 5/(-8), though both representations are mathematically equivalent. For mixed numbers, -2.75 becomes -2 3/4, meaning the entire quantity is negative.
What are the most common decimal-to-fraction conversions to memorize?
Memorizing common conversions speeds up mental math significantly. The essential ones are: 0.5 = 1/2, 0.25 = 1/4, 0.75 = 3/4, 0.333... = 1/3, 0.667... = 2/3, 0.2 = 1/5, 0.125 = 1/8, 0.375 = 3/8, 0.625 = 5/8, 0.875 = 7/8, 0.1 = 1/10, and 0.1667... = 1/6. These twelve conversions cover the vast majority of fractions encountered in everyday math, cooking, measurements, and standardized tests. From these base conversions, you can derive others: if 1/8 = 0.125, then 3/8 = 3 x 0.125 = 0.375. Building this mental reference table dramatically improves speed in fraction and decimal arithmetic without needing a calculator.
How do percentages relate to decimal-to-fraction conversions?
Percentages, decimals, and fractions are three representations of the same value. A percentage is simply a fraction with a denominator of 100, and a decimal is the result of dividing the numerator by the denominator. To convert: decimal to percent, multiply by 100 (0.75 = 75%). Percent to fraction, put the number over 100 and simplify (75% = 75/100 = 3/4). Decimal to fraction, use the power-of-10 method described above. These conversions are used constantly in finance (interest rates), statistics (probabilities), retail (discounts), and science (concentrations). Understanding the interchangeability helps in choosing the most convenient form for any calculation. For instance, finding 25% of a number is easiest using the fraction 1/4.
How do you handle very long or complex decimals?
For long decimals, the conversion process is the same but simplification becomes more important. With many decimal places, the initial fraction has a very large denominator. For example, 0.142857 gives 142857/1000000, which simplifies to approximately 1/7. For practical purposes, you can round to a desired precision first, or use continued fraction algorithms to find the closest simple fraction. The continued fraction method works by repeatedly taking the integer part and inverting the remainder: 0.142857... gives 1/(7.00001...) = approximately 1/7. This approach finds the simplest fraction within any desired tolerance. For scientific or engineering applications, specifying the maximum acceptable denominator helps balance precision with simplicity.
What role do decimal-to-fraction conversions play in measurement systems?
Decimal-to-fraction conversions are essential when working between metric (decimal-based) and imperial (fraction-based) measurement systems. Imperial measurements commonly use fractions of inches: 1/16, 1/8, 3/16, 1/4, 5/16, 3/8, 7/16, 1/2, and so on. When a metric measurement of 6.35mm needs to be expressed in inches (6.35/25.4 = 0.25 inches = 1/4 inch), the conversion is straightforward. Machinists regularly convert between decimal inches (from digital calipers) and fractional inches (for drill bit and tap sizes). Carpenters work almost exclusively in fractions for lumber dimensions. Understanding these conversions prevents costly measurement errors in construction, manufacturing, and engineering projects.
Can irrational numbers be converted to fractions?
No, irrational numbers cannot be exactly expressed as fractions of two integers. Numbers like pi (3.14159...), the square root of 2 (1.41421...), and Euler number e (2.71828...) have infinite, non-repeating decimal expansions and therefore have no exact fractional representation. However, they can be approximated by fractions to any desired accuracy. Famous approximations include 22/7 for pi (accurate to 0.04%), 355/113 for pi (accurate to 0.000008%), and 99/70 for the square root of 2 (accurate to 0.01%). The study of how well irrational numbers can be approximated by fractions is called Diophantine approximation and is an active area of number theory research with deep connections to continued fractions.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎFraction to Decimal Converter
Calculate fraction to decimal converter with inputs, formulas, and instant results.
๐งฎFraction to Decimal Calculator
Calculate fraction to decimal with inputs, formulas, and instant results.
๐งฎPartial Fraction Decomposition Calculator
Calculate partial fraction decomposition with inputs, formulas, and instant results.
๐งฎDecimal Calculator
Calculate decimal with inputs, formulas, and instant results.
๐งฎBinary Fraction Converter
Calculate binary fraction converter with inputs, formulas, and instant results.
๐งฎFraction Exponent Calculator
Calculate fraction exponent with inputs, formulas, and instant results.
๐งฎImproper Fraction to Mixed Number Calculator
Calculate improper fraction to mixed number with inputs, formulas, and instant results.
๐งฎMixed Number to Improper Fraction Calculator
Calculate mixed number to improper fraction with inputs, formulas, and instant results.