Skip to main content
Viva Calculator

Decimal to Fraction Calculator

Convert between decimals and fractions with simplification

Convert

Method and source check

Last checked:

Automated source and implementation review, including worked examples and documented numerical limits. This review does not provide professional advice or specialist approval.

Method

For decimal input, approximate a fraction by continued fractions within supported range; preserve representable nonzero inputs and keep denominators positive. Fraction input is divided for the decimal display.

approximation target: p/q β‰ˆ entered decimal

fraction-to-decimal: d = numerator/denominator, denominator β‰  0

Variables and units

p,q
approximate integer numerator and positive denominator
d
decimal value

Worked example

0.75 maps to 3/4. Entered 0.333 maps to 333/1000, while 0.333333 may be approximated as 1/3; these are not exact equivalents.

Limitations

Displayed decimal is rounded to six places; the rationalized fraction may approximate the entered decimal within the method tolerance.

  • Decimal input uses a six-decimal input step and display precision: it accepts zero or a magnitude from 0.000001 through 9007199254740991. Smaller nonzero values are rejected instead of silently displaying 0.
  • Approximate rationalization is not exact decimal-place conversion for every input.
  • Finite 0.333 is exactly 333/1000, not exactly 1/3.
  • Fraction mode requires safe whole-number numerator and denominator; the denominator cannot be zero. Display scaling preserves a finite value when multiplying it by 1,000,000 would overflow.
  • 0.000001 remains 1/1000000, not 0/1.
  • Magnitude below 0.000001, such as 1e-320, is rejected with a localized range error.
  • A negative fraction denominator is normalized to positive.

Sources

How to Use

  1. Select your input type (decimal or fraction)
  2. Enter the decimal number or fraction (numerator and denominator)
  3. View both formats with automatic fraction simplification

Convert between decimals and fractions with simplification

Convert decimal numbers to fractions and vice versa with automatic simplification. Method: Treat the entered finite decimal as a target for approximate rationalization using a continued-fraction tolerance; preserve tiny nonzero inputs and normalize a fraction-mode denominator to positive. Also compute the six-decimal display from fraction division.

Converting between these formats is essential in many fields including mathematics, science, cooking, construction, and finance. Understanding both representations helps in choosing the most appropriate format for different situations.

Conversion Methods

To convert a fraction to decimal, divide the numerator by the denominator. For example, 3/4 = 3 Γ· 4 = 0.75.

Decimal input is rationalized approximately; fraction input is divided. 0.75 = 3/4; 0.333 = 333/1000.

Common Decimal to Fraction Conversions

DecimalFractionSimplified
0.55/101/2
0.2525/1001/4
0.7575/1003/4
0.333333/1000333/1000
0.125125/10001/8
0.666666/1000333/500

Simplifying Fractions

Simplifying fractions means reducing them to their lowest terms by dividing both numerator and denominator by their Greatest Common Divisor (GCD). For example, 6/8 simplifies to 3/4 because both can be divided by 2.

A simplified fraction is easier to understand and work with. The calculator reduces the resulting fraction; for decimal input, the fraction can be an approximation rather than an exact decimal-place conversion.

Worked scenario

  • Measured amount: 0.75 β†’ 3/4; 0.333 β†’ 333/1000.

Method, example, rounding, and limits

Method: Treat the entered finite decimal as a target for approximate rationalization using a continued-fraction tolerance; preserve tiny nonzero inputs and normalize a fraction-mode denominator to positive. Also compute the six-decimal display from fraction division.

Worked example: 0.75 β†’ 3/4; 0.333 β†’ 333/1000; 0.333333 β‰ˆ 1/3.

Rounding: 6 decimal places. Displayed values are rounded as stated beside the result.

Limit: An approximate rationalization is not the exact decimal-place fraction for every input. Enter zero or a decimal with magnitude from 0.000001 to 9007199254740991. Fraction-mode numerators and denominators must be whole numbers within Β±9007199254740991, with a nonzero denominator.

Reference: OpenStax. https://openstax.org/books/prealgebra-2e/pages/5-1-decimals

Frequently Asked Questions

How do I convert 0.75 to a fraction?
0.75 has 2 decimal places, so write it as 75/100. Then simplify by dividing both numbers by their GCD (25), giving you 3/4. This calculator does this automatically.
What is 1/3 as a decimal?
1/3 as a decimal is 0.333... (repeating). The decimal representation is infinite because 3 doesn't divide evenly into 1. Most calculators show it as approximately 0.333333.
Why do some decimals convert to complex fractions?
Some decimals, especially those with many decimal places or repeating patterns, may convert to fractions with large numerators and denominators. Simplification helps reduce these to more manageable forms.
Can I convert improper fractions to decimals?
Yes! Improper fractions (where the numerator is larger than the denominator, like 5/4) can be converted to decimals. 5/4 = 1.25. Our calculator handles both proper and improper fractions.