Skip to main content
Math

Decimal to Fraction Converter

Enter any decimal and instantly see it as a simplified fraction (in lowest terms) plus a mixed number. You can also flag the last N fractional digits as a repeating block, so recurring decimals like 0.142857… = 1/7 come back as exact rationals — not just floating-point approximations.

Simplified fraction

3/4

Mixed number

3/4

Decimal check

0.75

Exact — terminates after the given digits.

Examples

Repeating decimal — only the first 12 digits are shown as a sanity check. For instance 1/7 = 0.142857142857… never terminates.

Formula

Terminating: n / 10^k. Repeating: (NR − N) / (10^(|N|+|R|) − 10^|N|), then divide both sides by gcd(num, den) to reach lowest terms.

Frequently asked

How do I know if a decimal is "repeating" — and how many digits do I need to type?

Quick rule: if the denominator (after simplification) has only 2 and 5 as prime factors (4, 8, 25, 100, …) the decimal terminates; any other prime factor (3, 7, 11, 13, …) forces an infinite cycle. So 1/3 = 0.333… and 1/7 = 0.142857142857…. You only need to type one complete period and then set "repeating digits" to the length of that period — six for 0.142857 (= 1/7), one for 0.16 (= 1/6, the "6" repeats).

Is the decimal-to-fraction answer unique? Do 0.3 and 0.333… give the same fraction?

No — those are two different inputs. 0.3 is a terminating decimal exactly equal to 3/10; 0.3 is also an approximation of 0.333… but they are different real numbers. Type 0.3 with repeat = 0 and you get 3/10; type 0.3 with repeat = 1 (i.e. 0.333…) and you get 1/3. The simplified fraction itself is unique (every rational has one lowest-terms form), but the same printed decimal digits can stand for two different rationals.

Why does 0.9 repeating equal 1 exactly? Does typing 0.9 with repeat = 1 really give 1?

Yes. 0.999… = 9/9 = 1 is a classic identity, provable from infinite geometric series, the fraction-conversion trick, or the ε–δ definition of a limit. It is not an approximation — two different decimal expansions both denote the same real number, just like 3/4 = 6/8. The calculator uses the repeating formula (9 − 0) / (10 − 1) = 9/9 = 1, so typing 0.9 with repeat = 1 really does return 1/1 = 1.

Can I use this for the reverse direction (fraction → decimal)?

The tool itself is one-way (decimal → fraction), but the "decimal check" field converts the simplified fraction back to a decimal so you effectively see both directions side by side. Terminating fractions like 3/4 = 0.75 print exactly; repeating ones like 1/7 = 0.142857142857… print to 12-digit precision with an ellipsis.

Related tools

Percentage Calculator

Percent of, percent change, and percent add/subtract in one.

GCD & LCM Calculator

Enter 2–6 positive integers to get the greatest common divisor (HCF / GCD) and least common multiple (LCM), with the Euclidean step chain shown.

Average Calculator (Mean / Median / Mode)

Enter a list of numbers to get the mean, median, mode, range plus standard deviation, variance and total.

Quadratic Equation Solver

Enter the coefficients of ax² + bx + c = 0 to find the real or complex roots, discriminant and vertex.

Password Strength (Entropy) Calculator

Estimate a password's bit entropy, brute-force time and strength tier. All computation happens in your browser.

Scientific Notation Converter

Convert between standard decimal numbers and scientific notation, with significant figures and order of magnitude.

Permutations & Combinations (nPr / nCr) Calculator

Compute permutations P(n,r), combinations C(n,r) and factorial n! — useful for probability problems, lottery odds and combinatorics homework.

Standard Deviation Calculator

Paste a list of numbers to compute mean, median, sample and population variance and standard deviation — with the working shown.

Triangle Calculator (SSS / SAS / ASA)

Solve a triangle from 3 sides, 2 sides + 1 angle, or 2 angles + 1 side — area, perimeter and remaining parts via the law of sines / cosines.

Pythagorean Theorem Calculator

Given any two sides of a right triangle (two legs, or one leg plus the hypotenuse), instantly find the third side, area, perimeter and the two non-right angles.

Circle Calculator (radius / diameter / circumference / area)

Enter any one of radius, diameter, circumference or area to get the other three — useful for design, engineering and DIY.

Roman Numeral Converter

Two-way conversion between Arabic numbers (1–3999) and Roman numerals (I, V, X, L, C, D, M) — handy for typesetting, chapter titles and homework.

Slope & Line Equation Calculator (y = mx + b from Two Points)

Enter two points (x₁, y₁) and (x₂, y₂) to instantly get the slope, y-intercept, line equation y = mx + b, distance, and midpoint — a classroom staple for algebra and coordinate geometry.

Birthday Paradox Calculator

Enter group size n to see the probability that at least two people share a birthday — the classic birthday problem.

Logarithm Calculator (log / ln / log₂ / any base)

Compute logₐ(x) for any base — natural log (ln), common log (log₁₀), binary log (log₂) and a custom base, with the change-of-base steps shown.

Z-Score (Standard Score) Calculator

Enter a value, the mean and the standard deviation to compute the z-score and the corresponding normal-distribution percentile and probabilities.

Screen Pixel Density (PPI) Calculator

Enter the screen resolution and diagonal size to get pixel density (PPI), real width/height, dot pitch and total pixel count.

Hong Kong Mark Six Odds Calculator

Enter the number of tickets / selections and see the actual probability of hitting first, second … prizes in a Mark Six (6-of-49) draw.

Sphere Volume & Surface Area Calculator

Give a sphere any one of radius, diameter, surface area or volume and instantly get the other three — plus the great-circle circumference and area.

Cylinder Volume & Surface Area Calculator

Enter the radius and height of a cylinder to get volume (π r²h), lateral surface, base area and total surface area.

Prime Factorization Calculator

Factor any integer from 2 up to 10¹² into primes, see the canonical exponent form, count and list all divisors.

Geometric Mean Calculator

Compute the n-th root of the product of n positive numbers — the right average for growth rates, returns and ratios — alongside the arithmetic mean for comparison.

Fibonacci Sequence Calculator

Enter any integer n from 0 to 1500 to instantly compute F(n) and F(n−1) with BigInt precision, the consecutive-term ratio (converging to the golden ratio φ) and the first 30 terms of the sequence.