
Decimal To Fraction Converter
Use this free decimal to fraction converter to turn any finite decimal up to 12 decimal places (like 0.125 = 1/8 or 2.75 = 11/4) into a simplified fraction.
Open toolDivide any integer numerator (a) by any nonzero integer denominator (b) from -1,000,000,000 to 1,000,000,000 in this fraction to decimal converter. The tool computes exact terminating decimals (1/8 = 0.125) and 12-significant-digit repeating decimals (1/3 = 0.333333333333) directly in your browser.
Enter the inputs, then select Convert fraction.
Result will appear here
Every fraction a/b represents the division of top by bottom (a ÷ b), which this fraction to decimal calculator evaluates to 12 significant digits in client-side JavaScript. To convert in the opposite direction, use our Decimal To Fraction Converter.
Decimal Quotient: v = a ÷ b (for b != 0). Terminating when reduced b = 2^m × 5^n; repeating otherwise and rounded to 12 significant figures (see our Significant Figures Calculator).
If a nonzero quotient is smaller than 0.000001 in magnitude (such as 1 / 10,000,000 = 1e-7), the formatter switches to exponential notation (toExponential(6)), which you can expand in our Scientific Notation Converter.
Look up common binary inch fractions (1/2 through 1/64) and repeating ratios alongside their converter output, percentage equivalent, decimal classification, and millimeter gauge.
| Fraction (a/b) | Converter Output (a ÷ b) | Percentage (× 100%) | Decimal Type | Prime Factors of b | Inch in Millimeters (× 25.4) |
|---|---|---|---|---|---|
| 1/2 | 0.5 | 50% | Terminating (1 place) | 2^1 | 12.7 mm |
| 1/3 | 0.333333333333 | 33.3333333333% | Repeating (0.3..., period 1) | 3^1 | 8.467 mm |
| 1/4 | 0.25 | 25% | Terminating (2 places) | 2^2 | 6.35 mm |
| 3/4 | 0.75 | 75% | Terminating (2 places) | 2^2 | 19.05 mm |
| 1/6 | 0.166666666667 | 16.6666666667% | Repeating (0.16..., period 1) | 2 × 3 | 4.233 mm |
| 1/7 | 0.142857142857 | 14.2857142857% | Repeating (0.142857..., period 6) | 7^1 | 3.629 mm |
| 1/8 | 0.125 | 12.5% | Terminating (3 places, default) | 2^3 | 3.175 mm |
| 5/16 | 0.3125 | 31.25% | Terminating (4 places) | 2^4 | 7.9375 mm |
| 1/32 | 0.03125 | 3.125% | Terminating (5 places) | 2^5 | 0.79375 mm |
| 1/64 | 0.015625 | 1.5625% | Terminating (6 places) | 2^6 | 0.396875 mm |
Turn any proper or improper integer ratio into a decimal number in three steps.
Type your top integer into the Numerator field (1 is preloaded). Positive, negative, and zero numerators from -1,000,000,000 to 1,000,000,000 are supported.
Supply the bottom divisor in the Nonzero denominator box (8 is set by default), making sure the integer is not 0.
Select Convert fraction to calculate the decimal quotient (0.125), then use Copy or Download (result.txt) to save the value.
See how the converter processes terminating binary inch fractions, repeating decimals, and mixed numbers.
With the default Numerator = 1 and Nonzero denominator = 8, the tool computes 1 ÷ 8 = 0.125. Because 8 = 2^3, the division finishes in three decimal places (0.125) with no rounding. To convert 0.125 into a percentage (12.5%), multiply by 100 or open our Percentage Calculator.

Entering Numerator = 2 and Nonzero denominator = 7 divides 2 ÷ 7, which has a 6-digit repeating block (285714). The converter rounds at 12 significant figures and outputs 0.285714285714 (two complete cycles of 285714). If you prefer to see the integer quotient and remainder (2 = 7 × 0 + 2), use our Long Division Calculator.

To convert a mixed number W n/d (such as 2 3/16 inches), rewrite it as an improper numerator first: a = W × d + n = 2 × 16 + 3 = 35 over b = 16. Entering 35 and 16 outputs 2.1875. You can also add 2/1 + 3/16 = 35/16 in the Fraction Calculator or reduce unsimplified ratios in the Fraction Simplifier.

Depending on the prime factors of your denominator and the size of the quotient, the result panel formats your answer in one of three ways:
For terminating decimals (such as 1/8 -> 0.125 or 35/16 -> 2.1875), Number(v.toPrecision(12)).toString() automatically strips trailing zeros after the last nonzero digit so 1/8 prints cleanly as 0.125 rather than 0.125000000000.
For repeating decimals (such as 1/3 -> 0.333333333333 or 1/6 -> 0.166666666667), the 12th significant digit is rounded to the nearest value without an overline bar. Whenever 0 < |a / b| < 1e-6 (such as 1 / 10000000 -> 1e-7), show(v) formats the quotient in compact scientific notation so leading zeros do not consume your significant digits.

Keep these input rules in mind before clicking Convert fraction:
First, dividing any numerator by 0 is undefined. Entering 0 in the Nonzero denominator box immediately stops the calculation and prints 'The denominator cannot be zero.'
Second, both Numerator (a) and Nonzero denominator (b) accept whole numbers (step='1') between -1,000,000,000 and 1,000,000,000. Decimal inputs (like 1.5 / 8) are rejected with 'Enter a valid Numerator.'; multiply both top and bottom by 10 first (15 / 80 = 0.1875). Entering one negative integer (-1 and 8, or 1 and -8) produces -0.125, while two negative integers (-1 and -8) cancel out to 0.125.


Use this free decimal to fraction converter to turn any finite decimal up to 12 decimal places (like 0.125 = 1/8 or 2.75 = 11/4) into a simplified fraction.
Open tool
Use this free fraction calculator to add, subtract, multiply, or divide two fractions (like 1/3 + 1/6 = 1/2) and reduce the result to lowest terms online.
Open toolUse this free fraction simplifier to reduce proper and improper fractions to lowest terms, find the greatest common divisor (GCD), and get mixed numbers.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this free percentage calculator to calculate percentage of a number (Percentage × Base / 100) up to 12 significant digits, with examples and tables.
Open toolUse this free scientific notation converter to convert decimals and E-notation (like 2.5e-3 or 12345) into standard form, coefficient, and power of 10.
Open tool
Use this free long division calculator to find the whole-number quotient, remainder, and Euclidean equation (a = b × q + r) for integers up to 1 billion.
Open tool
Use this free significant figures calculator (sig fig calculator) to count significant digits in any decimal, integer, or scientific E-notation string.
Open toolAnswers about using Fraction To Decimal Converter and understanding its results.
Divide the numerator (top number) by the denominator (bottom number) using long division, adding a decimal point and trailing zeros (1.000 ÷ 8 = 0.125). Alternatively, if the denominator divides into 10, 100, or 1,000, scale both top and bottom to a power of 10 (3/4 = 75/100 = 0.75).
First reduce the fraction to lowest terms in our Fraction Simplifier. Then factor the reduced denominator into primes: if its only prime factors are 2 and 5 (b = 2^m × 5^n), the decimal terminates; if any other prime factor (3, 7, 11, 13, ...) remains, the decimal repeats forever.
Convert the mixed number W n/d into an improper fraction by multiplying the whole number by the denominator and adding the numerator (3 × 8 + 5 = 29), then enter 29 as the Numerator and 8 as the Nonzero denominator to get 3.625. Or simply convert the fractional part (5 ÷ 8 = 0.625) and add 3 (3.625).
First divide the numerator by the denominator to get the decimal (3 ÷ 8 = 0.375), then multiply that decimal by 100 (shift the decimal point two places to the right) and attach a percent sign (37.5%).
Because 1/6 = 0.1666666666666... has an infinite string of 6s, rounding to 12 significant digits checks the 13th digit (6 >= 5) and rounds the 12th digit up from 6 to 7 (0.166666666667).
When the absolute value of a / b is nonzero and smaller than 0.000001 (1e-6), the formatter switches to scientific notation (1e-7 equals 0.0000001) so the display remains compact and readable.
Choose another tool for your next calculation, conversion, or text task.