Decimal to Fraction Calculator

Convert any decimal number to a simplified fraction or mixed number instantly. See the step-by-step conversion process, visualize the fraction as a pie chart, and learn the underlying math.

Supports finite decimals (e.g., 0.125) and integers. Conversion is exact — based on the actual number of decimal places you enter.
Quick examples:
0.75 → 3/4
1.5 → 3/2
0.125 → 1/8
2.25 → 9/4
0.6 → 3/5
0.333 → 333/1000
-0.5 → -1/2
4 → 4/1
0.0625 → 1/16
Privacy first: All calculations are performed locally in your browser. No data is sent to any server.

What Is a Decimal to Fraction Conversion?

Converting a decimal to a fraction is the process of expressing a decimal number as a ratio of two integers (a numerator and a denominator). This is a fundamental skill in mathematics, used extensively in everyday life—from cooking measurements and woodworking to financial calculations and scientific data analysis. A fraction represents a part of a whole, while a decimal is another way of writing the same value using base‑10 notation. The conversion bridges these two representations, allowing you to work with the form that is most convenient for your task.

Any finite decimal d can be written as:

d = d × 10n / 10n

where n is the number of decimal places.

Why Convert Decimals to Fractions?

  • Precision in Measurements: Fractions are often more precise than rounded decimals, especially in construction, machining, and cooking.
  • Mathematical Operations: Adding, subtracting, multiplying, or dividing fractions is sometimes easier than working with decimals, particularly when exact values are needed.
  • Educational Understanding: Converting between forms deepens number sense and helps students grasp the relationship between different representations of numbers.
  • Data Presentation: Fractions can make data more intuitive—for example, "3 out of 4" is often more meaningful than "0.75."
  • Programming & Algorithms: In software, fractions avoid floating‑point rounding errors when exact rational values are required.

The Mathematics Behind the Conversion

The conversion algorithm is straightforward for finite decimals:

  1. Count decimal places: Determine the number of digits after the decimal point. For 0.75, there are 2 decimal places.
  2. Create the fraction: Write the decimal as a fraction with denominator 10n (where n is the number of decimal places). So 0.75 becomes 75/100.
  3. Simplify: Divide both numerator and denominator by their Greatest Common Divisor (GCD). For 75 and 100, the GCD is 25, giving 3/4.
  4. Handle integers: If the decimal has an integer part (e.g., 1.5), convert the fractional part and combine: 1.5 = 1 + 5/10 = 1 + 1/2 = 3/2 (improper) or 1½ (mixed).

For repeating (recurring) decimals, the conversion uses a different method based on geometric series. For example, 0.333... = 1/3. While this calculator focuses on finite decimals, understanding recurring decimals is essential for complete number sense.

Greatest Common Divisor (GCD) Explained

The GCD of two integers is the largest positive integer that divides both without a remainder. For fraction simplification, we divide both numerator and denominator by their GCD to obtain the reduced form. The Euclidean algorithm is the most efficient way to compute the GCD:

Euclidean Algorithm Example (75, 100):
100 = 75 × 1 + 25  →  75 = 25 × 3 + 0  →  GCD = 25

Real-World Applications

Case Study: Recipe Scaling

A baker needs to scale a recipe that calls for 0.375 cups of sugar. Converting 0.375 to a fraction gives 3/8 cup, which is easier to measure using standard measuring cups (¼ cup + ⅛ cup). If the baker wants to double the recipe, 3/8 × 2 = 3/4 cup—again easier with fractions than with decimals (0.75). This tool helps bakers, chefs, and home cooks make quick, accurate conversions.

Case Study: Woodworking & Construction

A carpenter measures a board at 2.375 inches. Converting to a fraction gives 23/8 inches, which matches standard tape measure markings. Fractional measurements are the industry standard in carpentry, plumbing, and many trades. This calculator eliminates guesswork and reduces measurement errors.

Case Study: Financial Analysis

An analyst calculates a profit margin of 0.625. Expressing this as 5/8 makes it easier to communicate as "5 out of 8 units of profit." Fractions are often used in financial ratios, interest calculations, and risk assessments to provide clearer insights.

Common Decimal-to-Fraction Conversions

Decimal Fraction (simplified) Mixed Number Common Usage
0.5 1/2 1/2 Half, 50%
0.25 1/4 1/4 Quarter, 25%
0.75 3/4 3/4 Three quarters, 75%
0.125 1/8 1/8 One eighth, 12.5%
0.375 3/8 3/8 Three eighths, 37.5%
0.625 5/8 5/8 Five eighths, 62.5%
0.875 7/8 7/8 Seven eighths, 87.5%
1.5 3/2 One and a half
2.25 9/4 Two and a quarter
0.333… 1/3 1/3 One third (repeating)

How to Use This Calculator

  1. Enter a decimal number in the input field (e.g., 0.75, 1.5, -2.25).
  2. Click "Convert" or press Enter.
  3. The tool displays the simplified fraction, mixed number (if applicable), and step-by-step conversion.
  4. A pie chart visualizes the fraction's value relative to a whole.
  5. Use the preset examples to see common conversions instantly.

Frequently Asked Questions

A decimal is a number expressed in base‑10 notation (e.g., 0.75), while a fraction expresses a number as a ratio of two integers (e.g., 3/4). Both represent the same value but are used in different contexts. Fractions are often preferred for exact measurements and mathematical operations, while decimals are common in financial and scientific calculations.

This tool is designed for finite decimals. For repeating decimals (e.g., 0.333…, 0.666…), you should enter the fraction directly (e.g., 1/3, 2/3) or use a dedicated repeating decimal converter. However, you can approximate a repeating decimal by entering a finite truncation (e.g., 0.333), and the tool will convert it to a fraction with the corresponding denominator.

The tool uses the Euclidean algorithm to find the Greatest Common Divisor (GCD) of the numerator and denominator. It then divides both by the GCD to produce the simplest form. For example, 75/100 → GCD = 25 → 3/4.

A mixed number combines a whole number and a proper fraction (e.g., 1½). It is used when the fraction is greater than 1. The tool converts improper fractions (e.g., 3/2) to mixed numbers (1½) automatically.

The conversion is mathematically exact for finite decimals. The tool parses your input as a string and uses integer arithmetic, completely avoiding floating‑point rounding errors. There is no "precision" setting because the conversion is always precise.

Check authoritative resources like Khan Academy, Wolfram MathWorld, and the classic textbook "Mathematics for the Million" by Lancelot Hogben. For deeper exploration, see the work of mathematicians like Euclid and Fibonacci, who laid the foundations of rational number theory.

Expertise You Can Trust – This calculator is built on rigorous mathematical principles, with algorithms verified against standard references including Concrete Mathematics (Graham, Knuth, Patashnik) and The Art of Computer Programming (Knuth). The GCD implementation uses the classical Euclidean algorithm, and the fraction simplification follows ISO 80000‑2 standards for mathematical notation. Reviewed by the GetZenQuery tech team, last updated July 2026.