# Decimal to Fraction Calculator

Use our free decimal to fraction calculator to convert any decimal to a fraction. Shows step-by-step work for terminating and repeating decimals.

---

- **Canonical URL:** https://dothecalculation.com/calculators/decimal-to-fraction-calculator
- **Category:** Math calculators
- **Publisher:** Do The Calculation (https://dothecalculation.com)
- **Cost:** Free, no account or sign-up required
- **Privacy:** Runs entirely in the browser; inputs are never sent to a server
- **Methodology:** https://dothecalculation.com/methodology
- **Reviewed by:** Dr. Elena Rostova, PhD, PhD in Pure Mathematics, Sorbonne University (https://dothecalculation.com/about/team/elena-rostova)

---

## Convert decimals into exact fractions

Transform terminating and repeating decimals into simplified rational fractions using place value and algebraic repetition cancellation.

- Terminating decimal conversion
- Repeating decimal algebraic method
- GCD simplification proof

## Why decimals can be rewritten as fractions

Every terminating decimal and every repeating decimal is a rational number. Rational numbers can always be written as a fraction p/q where p and q are integers and q is non-zero. Converting a decimal back to a fraction restores its exact symbolic form, which is especially useful in algebra, geometry, measurement, and symbolic simplification.

## Terminating decimal conversion using place value

A terminating decimal represents a fraction whose denominator is a power of 10. If x = 0.375, then there are 3 digits after the decimal point, so the denominator is 10^3 = 1000:

$$0.375 = \frac{375}{1000}$$

You then simplify by dividing numerator and denominator by their greatest common divisor. Here gcd(375, 1000) = 125, producing 3/8.

## Repeating decimal conversion by algebraic subtraction

Repeating decimals are solved by shifting the repeated block with powers of 10 and subtracting. If x = 0.7777..., then 10x = 7.7777.... Subtracting x from 10x gives 9x = 7, so x = 7/9.

For a mixed repeating decimal such as 0.1666..., let x = 0.1666.... Then 10x = 1.666..., and 100x = 16.666.... Subtracting gives 90x = 15, so x = 15/90 = 1/6 after simplification.

## Greatest Common Divisor and lowest terms

The final fraction should always be simplified to lowest terms. This ensures the ratio is written in its shortest exact representation, which is crucial for algebraic substitution, pattern recognition, and clean mathematical communication.

## Frequently asked questions

### Can every terminating decimal be written as a fraction?

Yes. Every terminating decimal is a rational number with a denominator that is a power of 10 before simplification.

### How do I convert 0.125 to a fraction?

Write it as 125/1000, then simplify by dividing numerator and denominator by 125 to get 1/8.

### How do I convert a repeating decimal like 0.333...?

Let x = 0.333..., then 10x = 3.333.... Subtracting gives 9x = 3, so x = 1/3.

### What is a mixed repeating decimal?

It is a decimal with a non-repeating part followed by a repeating block, such as 0.1666....

### Why do powers of 10 matter in decimal conversion?

Because decimal place value is based on powers of 10, allowing direct conversion into fractional denominators like 10, 100, or 1000.

### What is the role of the GCD?

The greatest common divisor is used to simplify the raw fraction into its lowest terms.

### Do irrational decimals convert into fractions?

No. Irrational numbers, such as pi or the square root of 2, have non-terminating non-repeating decimals and cannot be written as exact fractions.

### Why is exact fractional form useful?

Fractions preserve exact values, while decimals can hide repeating structure or introduce rounding error.

### Can negative decimals be converted too?

Yes. Convert the positive magnitude to a fraction first, then apply the negative sign to the final simplified result.

### How do I convert whole numbers into fractions?

Write any integer n as n/1. Whole numbers are rational numbers with denominator 1.

## Related concepts

- **Repeating decimal** — A decimal whose digit pattern repeats indefinitely.
- **Place value** — The positional value of a digit based on powers of 10.
- **Lowest terms** — A fraction simplified so numerator and denominator share no factor greater than 1.

## Related guides

- [Long Division Answers: Remainder, Decimal, or Fraction? How to Convert Between All Three](https://dothecalculation.com/blog/math/long-division-remainder-decimal-fraction-guide) — The same long division problem has three correct-looking answers — 182 R3, 182.75, and 182¾ — and picking the wrong one is one of the most common ways a technically correct answer gets marked wrong. Here is how to convert between all three, and how to tell which one a question actually wants.
- [Fraction Operations Guide: Add, Subtract, Multiply, Divide](https://dothecalculation.com/blog/math/fraction-operations-guide) — Learn the rules for adding, subtracting, multiplying, and dividing fractions, with simplification steps and live DTC calculator workflows.
- [Ratio and Proportion Guide: Simplify, Solve, Split Totals](https://dothecalculation.com/blog/math/ratio-and-proportion) — Learn how to simplify ratios, solve proportions, and split totals with worked examples tied to the live DTC ratio calculator.

## Related calculators

- [Fraction to Decimal Calculator](https://dothecalculation.com/calculators/fraction-to-decimal-calculator) — Convert fractions to decimals with step-by-step long division and repeating decimal bar notation shown clearly and instantly.
- [Fraction, Percentage, and Decimal Equivalency Calculator](https://dothecalculation.com/calculators/fraction-percentage-decimal-calculator) — Convert between fractions, percentages, and decimals instantly, with clear step-by-step proofs shown for repeating decimals too.
- [Circle Equation & Geometry Solver](https://dothecalculation.com/calculators/circle-solver) — Convert between standard and general circle equation forms, find centers and radii, and compute areas with this free geometry solver.
- [Mixed Number Fraction Calculator](https://dothecalculation.com/calculators/mixed-number-calculator) — Add, subtract, multiply, divide, and simplify mixed number fractions with clear step-by-step conversions and instant results.
- [Extended Euclidean GCD Solver](https://dothecalculation.com/calculators/euclidean-algorithm-calculator) — Compute the GCD of two numbers and find Bezout coefficients using the Extended Euclidean algorithm with clear step-by-step results.
- [Modular Arithmetic & Congruence Solver](https://dothecalculation.com/calculators/modular-arithmetic-calculator) — Perform modular addition, multiplication, and exponentiation, and solve linear modular congruence equations with clear steps.

---

_This calculator is for educational and planning purposes. Verify calculations manually for critical academic, professional, or scientific applications._

---

_Source: [Do The Calculation](https://dothecalculation.com/calculators/decimal-to-fraction-calculator). Quote freely with attribution and a link to this page._
