Fraction to Decimal Calculator

Convert any fraction n/d to a decimal by dividing the top by the bottom.

A fraction's decimal value equals numerator ÷ denominator. This calculator performs that division and returns the decimal directly, including negative inputs and a note on whether the result terminates or repeats.

Part of: Math →

Convert a Fraction to a Decimal

Enter numerator and denominator. The calculator divides numerator by denominator and shows the decimal result.

Result will appear here

How to Use the Fraction Decimal Calculator

  1. Select the calculation type that matches your question.
  2. Enter the known values in the appropriate fields.
  3. Click Calculate to get the exact result.
  4. Review the formula shown to understand how the result was derived.

When to use this calculator

How it works

A fraction n/d is defined as the result of dividing n by d. The calculator returns n ÷ d using JavaScript's IEEE-754 division. Fractions whose denominator (in lowest terms) has only 2 and 5 as prime factors produce terminating decimals — like 3/8 = 0.375. All others produce repeating decimals — like 1/3 = 0.333…

Real-world examples

Limitations

Frequently asked questions

What is 1/8 as a decimal?

1/8 = 0.125 exactly. The denominator 8 = 2³ has only 2 as a prime factor, so the result terminates.

Why does 1/3 give 0.333… and not exactly 0.333?

Because 3 is not a factor of any power of 10, the long division never terminates — it repeats forever as 0.333…

Can I enter negative numbers?

Yes. A negative numerator or denominator (but not both) gives a negative decimal; both negative cancel out and give a positive result.

Why does the calculator block zero in the denominator?

Division by zero is mathematically undefined. The tool blocks it instead of returning Infinity or NaN.

Is the result the exact decimal?

It is exact when the fraction terminates (e.g. 3/4 = 0.75). For repeating decimals, the result is the closest 15-digit double-precision approximation.

Related calculators