0
0
—
—
0
—
—
0
0
—
—
0
—
—
The Decimal to Fraction Calculator converts any decimal number into its equivalent fraction representation. Whether you are working with terminating decimals like 0.75 or longer decimals like 0.3333, this tool expresses the value as a ratio of two integers — a numerator over a denominator — making it easy to use in fraction-based arithmetic, algebra, and real-world applications.
Decimals and fractions are two ways of representing the same underlying quantity, but each form has advantages depending on the context. Fractions preserve exact values (1/3 is exact, while 0.333... is an approximation when truncated), and they are often easier to work with in algebraic manipulation, recipe scaling, and measurement systems that use fractional units like inches. Converting from decimal to fraction bridges these two worlds.
The conversion process works by recognizing that a decimal is inherently a fraction with a power of ten as the denominator. The number 0.75 is really 75/100, and 0.125 is 125/1000. This calculator formalizes that intuition: it multiplies the decimal by your chosen precision (10, 100, 1000, or 10000) and rounds to the nearest integer to get the numerator, then uses the precision as the denominator. The result is a fraction that closely approximates — or exactly equals — the original decimal.
Choosing the right precision is important. For a terminating decimal like 0.25, a precision of 100 gives the exact fraction 25/100 (which simplifies to 1/4). For a repeating decimal like 0.333..., no finite denominator that is a power of ten will give the exact value, but higher precision yields a closer approximation (333/1000 vs. 3333/10000). The calculator includes a decimal check output so you can verify how close the fraction is to the original decimal.
Students learning about number systems benefit from seeing the mechanical connection between decimals and fractions. Engineers and programmers who deal with floating-point arithmetic use this conversion to understand rounding behavior. Cooks and woodworkers use it to translate digital scale readings into fractional measurements that match their measuring tools. Financial professionals convert decimal interest rates into fractional equivalents for reporting or communication.
The tool handles negative decimals correctly — the numerator will be negative while the denominator remains positive, preserving the sign. It also handles values greater than 1, producing improper fractions (like 1.5 becoming 1500/1000 or 15/10). You can then simplify the result by dividing numerator and denominator by their greatest common divisor to get the fraction in lowest terms.
For repeating decimals that you want expressed as exact fractions (like 0.333... = 1/3), algebraic methods involving equations are needed. This calculator provides the best rational approximation given the selected precision, which is the practical approach used in most real-world applications.
The conversion uses the fundamental relationship between decimals and fractions with powers of ten as denominators:
$$\text{fraction} = \frac{\text{round}(d \times p)}{p}$$
where d is the decimal value and p is the chosen precision (10, 100, 1000, or 10000).
Step-by-step:
To simplify, divide both parts by their GCD. For 75/100, GCD(75,100) = 25, giving 3/4.
$$0.75 = \frac{75}{100} = \frac{75 \div 25}{100 \div 25} = \frac{3}{4}$$
The Numerator is the top number of the resulting fraction, and the Denominator is the bottom number (equal to your chosen precision). The Decimal Check divides the numerator by the denominator so you can verify the fraction matches the original input. If the check differs from your input, it means the decimal was rounded during conversion — try a higher precision for better accuracy. To get the fraction in lowest terms, divide both numerator and denominator by their greatest common divisor.
Inputs
Results
0.75 × 100 = 75, so the fraction is 75/100 which simplifies to 3/4.
Inputs
Results
0.333 × 1000 = 333, giving 333/1000. The exact fraction for 0.333... repeating would be 1/3.
Multiply the decimal by a power of ten (10, 100, 1000, etc.) to remove the decimal point. The result becomes the numerator and the power of ten becomes the denominator. Then simplify by dividing both by their greatest common divisor.
Choose a precision that matches the number of decimal places. For 0.5, use 10. For 0.75, use 100. For 0.125, use 1000. Higher precision gives more accurate results for long decimals but produces larger numerators and denominators.
This calculator provides the closest approximation at the chosen precision. For exact conversion of repeating decimals (like 0.333... = 1/3), algebraic methods are needed. However, using higher precision gets very close.
Find the greatest common divisor (GCD) of the numerator and denominator, then divide both by it. For example, 75/100: GCD(75,100) = 25, so 75÷25 = 3 and 100÷25 = 4, giving 3/4.
Yes. The numerator will be negative and the denominator positive. For example, -0.5 with precision 10 gives -5/10, which simplifies to -1/2.
The calculator produces improper fractions. For 1.5 with precision 10, you get 15/10, which simplifies to 3/2. You can also express this as the mixed number 1 1/2.
Floating-point arithmetic in computers can introduce tiny rounding differences. The rounding step in the calculation minimizes this, but for very long decimals the check may differ in the last few digits.
Terminating decimals have a finite number of digits (like 0.75). Repeating decimals have a pattern that repeats infinitely (like 0.333...). Terminating decimals can be expressed exactly as fractions with power-of-ten denominators; repeating decimals cannot.
First convert the percentage to a decimal by dividing by 100 (e.g., 75% = 0.75), then use this calculator. Or use the dedicated Percent to Fraction Calculator.
Common ones include: 0.5 = 1/2, 0.25 = 1/4, 0.75 = 3/4, 0.333... = 1/3, 0.666... = 2/3, 0.125 = 1/8, 0.2 = 1/5, 0.1 = 1/10.
Roboculator Team
The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.
How helpful was this calculator?
Be the first to rate!
Fraction Calculator
Fractions & Percentages Calculators
Fraction to Decimal Calculator
Fractions & Percentages Calculators
Multiplying Fractions Calculator
Fractions & Percentages Calculators
Dividing Fractions Calculator
Fractions & Percentages Calculators
Comparing Fractions Calculator
Fractions & Percentages Calculators
Equivalent Fractions Calculator
Fractions & Percentages Calculators