Math calculator

Free decimal to fraction calculator

Convert any decimal to a simplified fraction — enter a terminating or repeating decimal to see the exact fraction, updated live, as you type.

InputsLive
Decimal Number
Enter any decimal, e.g. 0.75, 1.333, 3.14159
Result
Fraction
333/500
0.666333/500
Original decimal0.666
Numerator333
Denominator500
Decimal back (num ÷ den)0.666

Continued-fraction approximation. Best rational approximation within tolerance 1e-6.

Results are estimates. Consult a professional.

How it's calculated

How the decimal to fraction calculator works

Converting a decimal to a fraction depends on whether the decimal terminates (ends) or repeats. Terminating decimals multiply by a power of 10 to form an integer fraction, then simplify by the GCD. Repeating decimals use an algebraic substitution to eliminate the repeating block.

Terminating decimal (e.g. 0.625):
Count decimal places: 3 → multiply by 10³ = 1000
0.625 = 625 / 1000
GCD(625, 1000) = 125 → 5 / 8
Repeating decimal (e.g. 0.333…):
Let x = 0.333…
10x = 3.333…
10x x = 3 → 9x = 3 → x = 3/9 = 1/3
Khan Academy — Converting decimals to fractions
Example

Worked example: 0.75, 0.333…, and 0.625

Example: Convert 0.75, 0.333…, and 0.625 to fractions

Three conversions — two terminating and one repeating — each using its appropriate method. All results are expressed in lowest terms.

0.75 → 75/100 → GCD(75,100)=25 → 3/4
0.333… → let x=0.333…, 10x=3.333…
10x x = 3 → 9x=3 → x=1/3
0.625 → 625/1000 → GCD(625,1000)=125 → 5/8
3/4 · 1/3 · 5/8
0.75 = 3/4, 0.333… = 1/3, 0.625 = 5/8. All three are in lowest terms — no further simplification is needed.
Quick reference

Common decimal to fraction conversions

The table below lists frequently encountered decimals with their exact fraction equivalents. Memorising these benchmarks makes mental conversion instant.

DecimalFractionType
0.11/10Terminating
0.1251/8Terminating
0.21/5Terminating
0.251/4Terminating
0.333…1/3Repeating
0.3753/8Terminating
0.51/2Terminating
0.6255/8Terminating
0.666…2/3Repeating
0.753/4Terminating
0.8757/8Terminating

Source: standard fraction–decimal equivalences

Practical tips

Tips for decimal to fraction conversion

Converting decimals to fractions is essential in cooking, engineering, and mathematics. These tips prevent the most frequent errors.

  • Count decimal places precisely — for terminating decimals, the power of 10 in the denominator equals the number of digits after the decimal point: 0.0625 has 4 places → 625/10000.
  • Identify the repeating block first — for 0.142857142857…, the full repeating block is 142857 (6 digits). Multiply by 10⁶ and subtract to clear it: 999999x = 142857 → x = 142857/999999 = 1/7.
  • Always simplify to lowest terms — 75/100 and 3/4 are equal, but 3/4 is the correct final form. Compute GCD and divide both parts.
  • Negative decimals stay negative — convert the absolute value to a fraction, then reattach the negative sign: −0.75 = −3/4.
  • Mixed decimals become mixed numbers — 2.5 = 2 + 0.5 = 2½. Convert only the fractional part, then combine with the whole-number part.
Accuracy & limits

Accuracy and limitations

For terminating decimals, the conversion is mathematically exact provided the input has 15 or fewer significant decimal digits (the limit of IEEE 754 double precision). For repeating decimals detected by pattern, the result is exact. If you type a long non-repeating decimal that is actually a rounded form of a repeating decimal (e.g. 0.33333 instead of 0.333…), the calculator treats it as terminating and returns 33333/100000 rather than 1/3 — you must use the repeating-decimal input mode for those cases.

Glossary

Key terms

A decimal that ends after a finite number of digits, such as 0.75 or 0.625; always convertible to a fraction with a denominator that is a power of 10.
A decimal in which one or more digits repeat infinitely, denoted with a bar (e.g. 0.3̄ = 0.333…). Always represents a rational number.
The largest positive integer that divides both numerator and denominator evenly; used to reduce a fraction to lowest terms.
A fraction where GCD(numerator, denominator) = 1; neither part can be divided further by a common integer.
Any number expressible as a ratio p/q of two integers where q ≠ 0; all terminating and repeating decimals are rational.
A number that cannot be expressed as a fraction of two integers (e.g. π, √2); its decimal expansion is non-terminating and non-repeating.
About

About this calculator

Part of our math calculators suite — explore all calculators.

Questions

Frequently asked questions about the free decimal to fraction calculator

A decimal to fraction calculator is a free online tool that helps you convert a decimal to a simplified fraction. Continued-fraction approximation. It runs entirely in your browser with instant results and no sign-up.
JavaScript double-precision floating-point — accurate to about 15-17 significant digits. For arbitrary precision, use the Big Number calculator.
The statistics calculator computes population variance (divides by n). For sample variance, multiply variance by n/(n-1).

Want a calculator built for your business?

Customize any of our 400+ tools to match your brand, or commission a new one tailored to how your business actually calculates — pricing, payroll, quotes, anything. Deployed on your domain, math runs in your visitors' browsers.