Decimal to Fraction Converter - Terminating & Repeating
Math Calculators
Convert any decimal to a simplified fraction. Supports terminating decimals, repeating decimals (e.g. 0.(3) = 1/3), negative numbers, and mixed-number form.
Fraction
3/4
Decimal
0.75
Numerator
3
Denominator
4
Steps
- Shift decimal 2 place(s): 075/10^2
- Reduce the exact integer numerator and denominator by their GCD.
How to convert a decimal to a fraction
Every terminating decimal can be written as an exact fraction by multiplying by the appropriate power of 10. For example, 0.75 becomes 75/100, which simplifies to 3/4 after dividing by GCD(75, 100) = 25.
The converter builds that numerator and denominator from the digits you enter using BigInt
integer arithmetic, then reduces them with an exact GCD. That means a large whole part is not
rounded through a floating-point value before conversion: for example,
9007199254740993.1 becomes 90071992547409931/10. The decimal preview
is only for convenience and may be unavailable for values outside the finite Number range. To
keep the browser calculation predictable, inputs permit up to 1,000 whole-part digits and 10
decimal or repeating digits.
Terminating vs. repeating decimals
A terminating decimal ends after a finite number of digits (0.5, 0.125, 3.14). A repeating decimal has one or more digits that repeat forever (0.333… = 0.(3), 0.1666… = 0.1(6)). Both types represent rational numbers and can be expressed as exact fractions.
Repeating decimal notation
Enter repeating digits inside parentheses. Examples:
0.(3)-> 0.333… -> 1/30.(6)-> 0.666… -> 2/30.1(6)-> 0.1666… -> 1/60.(142857)-> 0.142857142857… -> 1/70.(9)-> 0.999… -> 1 (a well-known mathematical identity)
Mixed numbers
When a fraction is greater than 1, it can also be written as a mixed number. For example, 7/4 = 1 3/4. The calculator shows both forms.
Common decimal-to-fraction conversions
- 0.5 = 1/2
- 0.25 = 1/4
- 0.75 = 3/4
- 0.2 = 1/5
- 0.125 = 1/8
- 0.(3) = 1/3
- 0.(6) = 2/3
Related calculators
- FractionsUse the converted fraction in addition, subtraction, multiplication, or division.
- Continued Fraction ConverterFind progressively better rational approximations for a non-repeating decimal.
- PercentageTurn the decimal into a percentage or use it as a part-to-whole value.
- Scientific Notation ConverterRewrite very small or large decimal values in scientific or engineering notation.