AI Tools Free

Fraction To Decimal Converter

Divide 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.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Convert fraction.

Your result
Enter your details

Result will appear here

How this fraction to decimal calculator divides numerator by denominator

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.

Diagram showing numerator 1 divided by denominator 8 producing the terminating decimal 0.125
Dividing numerator 1 by denominator 8 (2^3) produces the exact 3-place terminating decimal 0.125.

Fraction to Decimal Conversion Chart (Halves, Eighths, Sixteenths & Repeating)

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 TypePrime Factors of bInch in Millimeters (× 25.4)
1/20.550%Terminating (1 place)2^112.7 mm
1/30.33333333333333.3333333333%Repeating (0.3..., period 1)3^18.467 mm
1/40.2525%Terminating (2 places)2^26.35 mm
3/40.7575%Terminating (2 places)2^219.05 mm
1/60.16666666666716.6666666667%Repeating (0.16..., period 1)2 × 34.233 mm
1/70.14285714285714.2857142857%Repeating (0.142857..., period 6)7^13.629 mm
1/80.12512.5%Terminating (3 places, default)2^33.175 mm
5/160.312531.25%Terminating (4 places)2^47.9375 mm
1/320.031253.125%Terminating (5 places)2^50.79375 mm
1/640.0156251.5625%Terminating (6 places)2^60.396875 mm

How to convert fractions to decimals in 3 steps

Turn any proper or improper integer ratio into a decimal number in three steps.

Enter the integer numerator (a)

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.

Input and settings
Fraction To Decimal Converter Numerator input field populated with 1
Step 1: Enter any integer from -1,000,000,000 to 1,000,000,000 in the Numerator field.

Enter a nonzero denominator (b)

Supply the bottom divisor in the Nonzero denominator box (8 is set by default), making sure the integer is not 0.

Tool result
Fraction To Decimal Converter Nonzero denominator field set to 8 with 0.125 in the result panel
Step 2: Enter a nonzero integer in the Nonzero denominator field and click Convert fraction.

Click Convert fraction to copy or download

Select Convert fraction to calculate the decimal quotient (0.125), then use Copy or Download (result.txt) to save the value.

Review the details
Fraction To Decimal Converter result card showing 0.125 alongside Copy and Download result.txt buttons
Step 3: Copy the decimal output to your clipboard or download result.txt.

Worked examples: fraction to decimal converter for inch gauges & repeating ratios

See how the converter processes terminating binary inch fractions, repeating decimals, and mixed numbers.

Terminating binary inch fraction (1/8 = 0.125)

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.

Worked example converting binary inch fraction 1/8 to exact terminating decimal 0.125
Dividing 1 by 8 (2^3) terminates in three decimal places at 0.125 (12.5%).

Repeating decimal rounded to 12 digits (2/7)

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.

Worked example converting repeating fraction 2/7 to 12 significant digits (0.285714285714)
Dividing 2 by 7 outputs two full cycles of its 6-digit repeating block (0.285714285714).

Mixed numbers and improper fractions (2 3/16 = 2.1875)

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.

Worked example converting mixed number 2 3/16 into improper fraction 35/16 = 2.1875
Enter mixed number 2 3/16 as improper fraction 35/16 to get 2.1875.

How to read terminating, 12-digit repeating, and scientific notation outputs

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.

Comparison of terminating decimals (0.125), 12-digit rounded repeating decimals (0.166666666667), and scientific notation (1e-7)
Terminating decimals strip trailing zeros, repeating decimals round at 12 significant digits, and |v| < 1e-6 uses scientific notation.

Fraction to decimal converter input range (-1B to 1B) and zero-denominator guard

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.

Summary of ±1,000,000,000 integer range, b != 0 guard, and negative sign rules
Accepts whole-number numerators and nonzero denominators from -1,000,000,000 to 1,000,000,000.

Frequently asked questions about fraction to decimal conversion

Answers about using Fraction To Decimal Converter and understanding its results.

How do you convert a fraction to a decimal without a calculator?

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).

How can I tell if a fraction will be a terminating or repeating decimal?

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.

How do I convert a mixed number (like 3 5/8) to a decimal in this tool?

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).

How do you convert a fraction to a decimal and then to a percentage?

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%).

Why does 1/6 display as 0.166666666667 instead of 0.166666666666?

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).

Why did my small fraction output in scientific notation like 1e-7?

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.

Convert your fraction to a decimal now

Choose another tool for your next calculation, conversion, or text task.

Convert fraction