How to Use the Decimal to Fraction Calculator
This decimal to fraction calculator makes conversions instant — just choose a conversion mode using the toggle at the top. In Decimal → Fraction mode, type any decimal number — terminating (like 0.75) or repeating (like 0.333...) — and the calculator instantly returns the fraction in lowest terms, the mixed number form, and a decimal verification. In Fraction → Decimal mode, enter the numerator and denominator separately to get the exact decimal value and identify whether it terminates or repeats.
For fraction arithmetic and simplification, see our simplify fractions calculator, which reduces any fraction to lowest terms step by step.
How to Convert a Decimal to a Fraction
Converting a terminating decimal to a fraction is a three-step process:
- Count decimal places. For 0.75, there are 2 decimal places.
- Write as a fraction. Place the digits over 10ⁿ (where n is the number of decimal places): 75/100.
- Reduce by GCD. GCD(75, 100) = 25, so 75/100 = 3/4.
For repeating decimals like 0.333..., use the algebraic method: set x = 0.333..., multiply by 10 to get 10x = 3.333..., then subtract to get 9x = 3, so x = 3/9 = 1/3.
Terminating vs. Repeating Decimals
Every fraction (rational number) produces either a terminating or repeating decimal — never a random non-repeating sequence. The type depends entirely on the denominator:
- Terminating: The denominator (in lowest terms) has only 2 and 5 as prime factors. Examples: 1/2 = 0.5, 1/4 = 0.25, 3/8 = 0.375, 1/5 = 0.2, 7/20 = 0.35.
- Repeating: The denominator has any prime factor other than 2 or 5. Examples: 1/3 = 0.333..., 1/7 = 0.142857..., 5/12 = 0.41666..., 2/9 = 0.222....
Non-terminating, non-repeating decimals (like π = 3.14159...) are irrational numbers — they cannot be written as fractions. Our rounding calculator can round any decimal to a specified number of places.
Common Decimal to Fraction Conversions
These are the most frequently needed conversions in everyday math:
- 0.1 = 1/10 — one tenth
- 0.125 = 1/8 — one eighth (common in recipes and measurements)
- 0.25 = 1/4 — one quarter
- 0.333... = 1/3 — one third (repeating)
- 0.375 = 3/8 — three eighths
- 0.5 = 1/2 — one half
- 0.625 = 5/8 — five eighths
- 0.666... = 2/3 — two thirds (repeating)
- 0.75 = 3/4 — three quarters
- 0.875 = 7/8 — seven eighths
Mixed Numbers and Improper Fractions
When the numerator is larger than the denominator, the fraction is called improper. It can be rewritten as a mixed number — a whole number plus a proper fraction. For example, 7/4 = 1¾ and 11/3 = 3⅔. Mixed numbers are easier to visualize (you can immediately see they are between two consecutive whole numbers), while improper fractions are easier to use in multiplication and division.
To convert an improper fraction to a mixed number: divide the numerator by the denominator, use the quotient as the whole number, and the remainder as the new numerator over the original denominator. Our mixed number calculator handles arithmetic with mixed numbers directly, and our remainder calculator finds the remainder from any integer division in one step.
The Greatest Common Divisor and Simplification
Reducing a fraction to lowest terms requires finding the greatest common divisor (GCD) of the numerator and denominator — the largest integer that divides both evenly. The most efficient algorithm is the Euclidean algorithm: repeatedly replace the larger number with the remainder of dividing the larger by the smaller until the remainder is 0. The last non-zero remainder is the GCD.
Example — GCD of 36 and 48: 48 ÷ 36 = 1 remainder 12; 36 ÷ 12 = 3 remainder 0. GCD = 12. So 36/48 = (36 ÷ 12)/(48 ÷ 12) = 3/4. For ratio problems involving fractions, see our proportion calculator.
Sources & References
- Fractions — Math Is Fun — Math Is Fun
- Repeating Decimal — Khan Academy — Khan Academy
- Greatest Common Divisor — Britannica — Britannica