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.
Calculator
Adjust values & calculateStep-by-Step Conversion
Common Conversions Reference
Formula
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.
Last reviewed: December 2025
Worked Examples
Example 1: Converting a Terminating Decimal
Example 2: Converting a Repeating Decimal
Background & Theory
The Decimal to Fraction Calculator applies the following established principles and formulas. Mathematics rests on a hierarchy of number systems, each extending the previous. The natural numbers (1, 2, 3, ...) support counting and ordering. The integers add negative values and zero, enabling subtraction without restriction. The rational numbers, expressible as p/q where p and q are integers and q is nonzero, close the system under division. The real numbers fill the gaps left by irrationals such as the square root of 2 or pi, forming a complete ordered field. The complex numbers, written as a + bi where i is the square root of negative one, complete the algebraic closure of the reals and allow every polynomial to have a root. Prime factorization states that every integer greater than one is uniquely expressible as a product of primes, a result known as the Fundamental Theorem of Arithmetic. Computing the greatest common divisor (GCD) of two integers relies most efficiently on the Euclidean algorithm: repeatedly replace the larger number with the remainder when it is divided by the smaller, until the remainder is zero. The last nonzero remainder is the GCD. The least common multiple (LCM) follows from the identity LCM(a, b) = |a * b| / GCD(a, b). Modular arithmetic defines equivalence classes of integers that share the same remainder under division by a modulus n. Fermat's Little Theorem and Euler's Theorem arise from this structure and underpin modern cryptography. Logarithms are the inverses of exponential functions. If b raised to the power x equals y, then the logarithm base b of y equals x. The natural logarithm uses base e, approximately 2.71828. Combinatorics counts arrangements and selections. The number of ordered arrangements (permutations) of r objects from n distinct objects is nPr = n! / (n - r)!. The number of unordered selections (combinations) is nCr = n! / (r! * (n - r)!). Pascal's triangle arranges these binomial coefficients so that each entry equals the sum of the two entries directly above it. The Fibonacci sequence, defined by F(1) = 1, F(2) = 1, and F(n) = F(n-1) + F(n-2), appears throughout nature and connects deeply to the golden ratio via Binet's formula.
History
The history behind the Decimal to Fraction Calculator traces back through the following developments. Mathematics as a systematic discipline traces to ancient Mesopotamia. Babylonian clay tablets dating to around 1800 BCE demonstrate knowledge of quadratic equations, Pythagorean triples, and base-60 arithmetic, suggesting a practical mathematical tradition far preceding Greek formalism. Euclid of Alexandria compiled the Elements around 300 BCE, establishing the axiomatic method that would define rigorous mathematics for over two thousand years. His work organized plane geometry, number theory, and proportion into logically chained propositions derived from a small set of postulates. The algorithm bearing his name for computing GCDs appears in Book VII and remains in use today. In the 9th century, the Persian scholar Muhammad ibn Musa Al-Khwarizmi wrote Al-Kitab al-mukhtasar fi hisab al-jabr wal-muqabala, the treatise whose title gave algebra its name. He systematized the solution of linear and quadratic equations and described procedures that operated on unknowns as objects, a conceptual leap away from purely numerical calculation. Rene Descartes introduced coordinate geometry in 1637 by uniting algebra and Euclidean geometry, allowing curves to be studied through equations. This synthesis set the stage for calculus. Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus during the 1660s and 1670s, triggering a priority dispute that lasted decades and divided British and Continental mathematicians. Carl Friedrich Gauss proved the Fundamental Theorem of Algebra in 1799, showing that every nonconstant polynomial has at least one complex root. His Disquisitiones Arithmeticae of 1801 established modern number theory. David Hilbert's formalist program at the turn of the 20th century sought to place all of mathematics on an explicit axiomatic foundation, a project that Kurt Godel's incompleteness theorems of 1931 showed to be fundamentally limited. Alan Turing's work in the 1930s on computability introduced the theoretical model of the stored-program computer and linked mathematical logic directly to the limits of algorithmic calculation. His proof that no algorithm can decide in general whether an arbitrary program will halt or run forever placed fundamental boundaries on what mathematics can mechanically determine, and it opened the discipline now known as theoretical computer science.
Frequently Asked Questions
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\nStep 2: Write as fraction: 375/1000\nStep 3: Find GCD(375, 1000)\n375 = 3 x 5 x 5 x 5\n1000 = 2 x 2 x 2 x 5 x 5 x 5\nGCD = 5 x 5 x 5 = 125\nStep 4: Simplify: 375/1000 = 3/8\nVerification: 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...\nMultiply by 10: 10x = 6.6666...\nSubtract: 10x - x = 6.6666... - 0.6666...\n9x = 6\nx = 6/9\nSimplify by GCD(6,9) = 3: x = 2/3\nVerification: 2/3 = 0.6666...
Result: 0.666... = 2/3
Frequently Asked Questions
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.
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.
Why might my result differ from another tool or reference?
Differences typically arise from rounding conventions, the specific version of a formula (for example, simple vs compound interest), or unit inconsistencies between inputs. Check that both tools are using the same formula variant and the same units. The References section links to the authoritative source behind the formula used here.
How do I verify Decimal to Fraction Calculator's result independently?
The Formula section on this page shows the equation used. You can reproduce the calculation manually or in a spreadsheet using those steps. Compare your answer against the worked examples in the Examples section, which use known reference values so you can confirm the calculator is behaving as expected.
References
Reviewed by Manoj Kumar, Mathematics Educator ยท Editorial policy